Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: fix obsolete test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 eb015b8570b2f6222ba2bdad98516f0d2b89f713..e43b2c29730a7c42d38adf7487d475f9488361e0 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
@@ -26,6 +26,7 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
uint32_t localId,
uint64_t nonceHigh,
uint64_t nonceLow,
+ int canvasId,
int width,
int height);
@@ -34,6 +35,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;
@@ -58,12 +60,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&,

Powered by Google App Engine
This is Rietveld 408576698