Commit 7dac05b1 authored by Lee Salzman's avatar Lee Salzman Committed by Pier Angelo Vendrame
Browse files

Bug 2025877. r=gfx-reviewers,bradwerth

parent e2c4af43
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -303,6 +303,10 @@ bool OffscreenCanvasDisplayHelper::CommitFrameToCompositor(
    }
  }

  if (!mCanvasElement || !mImageContainer) {
    return false;
  }

  // We save any current surface because we might need it in GetSnapshot. If we
  // are on a worker thread and not WebGL, then this will be the only way we can
  // access the pixel data on the main thread.