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; |
}; |