| Index: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
|
| index d37162726e803ac8d750350a9756d47e23188ac2..2bd0fe5240f4d596b795fd4e608cdeea5e825ac8 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
|
| @@ -25,6 +25,7 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
|
| uint32_t sinkId,
|
| uint32_t localId,
|
| uint64_t nonce,
|
| + int canvasId,
|
| int width,
|
| int height);
|
|
|
| @@ -33,6 +34,7 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
|
| void dispatchFrame(RefPtr<StaticBitmapImage>,
|
| double commitStartTime,
|
| bool isWebGLSoftwareRendering = false) override;
|
| + void reclaimResource(unsigned resourceId) override;
|
|
|
| // cc::mojom::blink::MojoCompositorFrameSinkClient implementation.
|
| void DidReceiveCompositorFrameAck() override;
|
| @@ -57,12 +59,15 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
|
| HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages;
|
| HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps;
|
| HashMap<unsigned, GLuint> m_cachedTextureIds;
|
| + HashSet<unsigned> m_spareResourceLocks;
|
|
|
| bool verifyImageSize(const IntSize);
|
|
|
| cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink;
|
| mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding;
|
|
|
| + int m_placeholderCanvasId;
|
| +
|
| void setTransferableResourceToSharedBitmap(cc::TransferableResource&,
|
| RefPtr<StaticBitmapImage>);
|
| void setTransferableResourceToSharedGPUContext(cc::TransferableResource&,
|
|
|