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

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

Issue 2479563005: Create manager to track OffscreenCanvasSurfaceImpl instances (Closed)
Patch Set: 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/CanvasSurfaceLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
index 4355caed2a27dd712a886705e5bd9e97539d3cf5..8faf2a5adf8874993789fe7ecdbee3a1610e8e57 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
@@ -23,9 +23,10 @@ CanvasSurfaceLayerBridge::CanvasSurfaceLayerBridge(
CanvasSurfaceLayerBridge::~CanvasSurfaceLayerBridge() {}
-bool CanvasSurfaceLayerBridge::createSurfaceLayer(int canvasWidth,
+bool CanvasSurfaceLayerBridge::createSurfaceLayer(int canvasId,
+ int canvasWidth,
int canvasHeight) {
- if (!m_service->GetSurfaceId(&m_surfaceId))
+ if (!m_service->GetSurfaceId(canvasId, &m_surfaceId))
return false;
cc::SurfaceLayer::SatisfyCallback satisfyCallback =

Powered by Google App Engine
This is Rietveld 408576698