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

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

Issue 2345423002: Remove CanvasSurfaceLayerBridgeClient (Closed)
Patch Set: Revert one more thing Created 4 years, 3 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 9a6a52d85a56b6a06d90dc8de91b8744ee2c1c40..91d080c9283d3ae52af51b6fd705d528b1dd1e39 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
@@ -8,7 +8,7 @@
#include "base/memory/ref_counted.h"
#include "cc/surfaces/surface_id.h"
#include "platform/PlatformExport.h"
-#include "platform/graphics/CanvasSurfaceLayerBridgeClient.h"
+#include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom-blink.h"
#include <memory>
namespace cc {
@@ -22,12 +22,11 @@ class WebLayer;
class PLATFORM_EXPORT CanvasSurfaceLayerBridge {
public:
- explicit CanvasSurfaceLayerBridge(std::unique_ptr<CanvasSurfaceLayerBridgeClient>);
+ explicit CanvasSurfaceLayerBridge(mojom::blink::OffscreenCanvasSurfacePtr);
~CanvasSurfaceLayerBridge();
bool createSurfaceLayer(int canvasWidth, int canvasHeight);
WebLayer* getWebLayer() const { return m_webLayer.get(); }
const cc::SurfaceId& getSurfaceId() const { return m_surfaceId; }
- CanvasSurfaceLayerBridgeClient* getClient() const { return m_client.get(); }
void satisfyCallback(const cc::SurfaceSequence&);
void requireCallback(const cc::SurfaceId&, const cc::SurfaceSequence&);
@@ -35,7 +34,7 @@ public:
private:
scoped_refptr<cc::SurfaceLayer> m_surfaceLayer;
std::unique_ptr<WebLayer> m_webLayer;
- std::unique_ptr<CanvasSurfaceLayerBridgeClient> m_client;
+ mojom::blink::OffscreenCanvasSurfacePtr m_service;
cc::SurfaceId m_surfaceId;
};
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698