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

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

Issue 2036663003: Establish mojo service between Canvas (blink) and SurfaceManager (browser) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OWNERS change on offscreencanvas folder Created 4 years, 6 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/CanvasSurfaceLayerBridgeClient.h
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeClient.h b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..72265db89bf7de36201e96dd261929ac35732490
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeClient.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CanvasSurfaceLayerBridgeClient_h
+#define CanvasSurfaceLayerBridgeClient_h
+
+#include "cc/surfaces/surface_id.h"
+#include "cc/surfaces/surface_sequence.h"
+#include "platform/PlatformExport.h"
+
+namespace blink {
+
+// This class is an interface for all mojo calls from CanvasSurfaceLayerBridge
+// to OffscreenCanvasSurfaceService.
+class PLATFORM_EXPORT CanvasSurfaceLayerBridgeClient {
dcheng 2016/09/15 20:45:11 Apparently this class just exists as a layer of in
xlai (Olivia) 2016/09/15 22:53:10 This class was added since Patch Set 7 and it was
danakj 2016/09/15 23:48:47 I think what Daniel is getting at is that we shoul
dcheng 2016/09/18 17:24:42 I have a CL for this (https://codereview.chromium.
+public:
+ virtual ~CanvasSurfaceLayerBridgeClient() {};
+
+ // Calls that help initial creation of SurfaceLayer.
+ virtual bool syncGetSurfaceId(cc::SurfaceId*) = 0;
+ virtual void asyncRequestSurfaceCreation(const cc::SurfaceId&) = 0;
+
+ // Calls that ensure correct destruction order of surface.
+ virtual void asyncRequire(cc::SurfaceId, cc::SurfaceSequence) = 0;
+ virtual void asyncSatisfy(cc::SurfaceSequence) = 0;
+};
+
+} // namespace blink
+
+#endif // CanvasSurfaceLayerBridgeClient_h

Powered by Google App Engine
This is Rietveld 408576698