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

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

Issue 2644653003: Make OffscreenCanvas animation in sync with its placeholder canvas's parent frame rate (Closed)
Patch Set: rebase again Created 3 years, 11 months 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/CanvasSurfaceLayerBridge.h
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
index 89a473ae56313d53a6f932df8edd0c6650feda3e..ce5051281f2986e70d71f1e75f78c7aa7b52a651 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
@@ -22,6 +22,7 @@ class SurfaceInfo;
namespace blink {
class WebLayer;
+class WebLayerTreeView;
class PLATFORM_EXPORT CanvasSurfaceLayerBridgeObserver {
public:
@@ -34,7 +35,8 @@ class PLATFORM_EXPORT CanvasSurfaceLayerBridgeObserver {
class PLATFORM_EXPORT CanvasSurfaceLayerBridge
: NON_EXPORTED_BASE(public mojom::blink::OffscreenCanvasSurfaceClient) {
public:
- explicit CanvasSurfaceLayerBridge(CanvasSurfaceLayerBridgeObserver*);
+ explicit CanvasSurfaceLayerBridge(CanvasSurfaceLayerBridgeObserver*,
+ WebLayerTreeView*);
~CanvasSurfaceLayerBridge();
void createSolidColorLayer();
WebLayer* getWebLayer() const { return m_webLayer.get(); }
@@ -58,8 +60,9 @@ class PLATFORM_EXPORT CanvasSurfaceLayerBridge
mojom::blink::OffscreenCanvasSurfacePtr m_service;
mojo::Binding<mojom::blink::OffscreenCanvasSurfaceClient> m_binding;
- cc::FrameSinkId m_frameSinkId;
+ const cc::FrameSinkId m_frameSinkId;
cc::SurfaceId m_currentSurfaceId;
+ const cc::FrameSinkId m_parentFrameSinkId;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698