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

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

Issue 2521013003: Compositing Layer update for OffscreenCanvas resize (Closed)
Patch Set: 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/CanvasSurfaceLayerBridgeTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeTest.cpp b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeTest.cpp
index a63002e7c6fcdaffb9eac477da9cfc80ec69847d..261e416f50d48dfba48a008d2c18e2516b2b0729 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeTest.cpp
@@ -27,7 +27,8 @@ class MockOffscreenCanvasSurface final
mojom::blink::OffscreenCanvasSurfacePtr GetProxy();
- void GetSurfaceId(GetSurfaceIdCallback) override;
+ void GetSurfaceId(mojom::blink::OffscreenCanvasSurfaceClientPtr,
+ GetSurfaceIdCallback) override;
void Require(const cc::SurfaceId&, const cc::SurfaceSequence&) override {}
void Satisfy(const cc::SurfaceSequence&) override {}
@@ -62,7 +63,9 @@ mojom::blink::OffscreenCanvasSurfacePtr MockOffscreenCanvasSurface::GetProxy() {
return m_binding.CreateInterfacePtrAndBind();
}
-void MockOffscreenCanvasSurface::GetSurfaceId(GetSurfaceIdCallback callback) {
+void MockOffscreenCanvasSurface::GetSurfaceId(
+ mojom::blink::OffscreenCanvasSurfaceClientPtr client,
+ GetSurfaceIdCallback callback) {
std::move(callback).Run(
cc::SurfaceId(cc::FrameSinkId(10, 11),
cc::LocalFrameId(15, base::UnguessableToken::Create())));

Powered by Google App Engine
This is Rietveld 408576698