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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.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/core/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index 9366ebfe73b95b24ce071896b444d2144c4c7587..650aff0f764455e5ae227944669cf1b7757885d3 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -1349,14 +1349,14 @@ String HTMLCanvasElement::getIdFromControl(const Element* element) {
return String();
}
-bool HTMLCanvasElement::createSurfaceLayer() {
+bool HTMLCanvasElement::createSurfaceLayer(int canvasId) {
DCHECK(!m_surfaceLayerBridge);
mojom::blink::OffscreenCanvasSurfacePtr service;
Platform::current()->interfaceProvider()->getInterface(
mojo::GetProxy(&service));
m_surfaceLayerBridge =
wrapUnique(new CanvasSurfaceLayerBridge(std::move(service)));
- return m_surfaceLayerBridge->createSurfaceLayer(this->width(),
+ return m_surfaceLayerBridge->createSurfaceLayer(canvasId, this->width(),
this->height());
}

Powered by Google App Engine
This is Rietveld 408576698