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

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: safeguard 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..74e0da967b51a282cf9402f3ce1865c5967c365d 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(); }
@@ -60,6 +62,7 @@ class PLATFORM_EXPORT CanvasSurfaceLayerBridge
cc::FrameSinkId m_frameSinkId;
Fady Samuel 2017/01/19 04:05:43 const?
xlai (Olivia) 2017/01/19 16:43:56 Done.
cc::SurfaceId m_currentSurfaceId;
+ cc::FrameSinkId m_parentFrameSinkId;
Fady Samuel 2017/01/19 04:05:43 const?
xlai (Olivia) 2017/01/19 16:43:56 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698