Index: content/browser/renderer_host/offscreen_canvas_surface_impl.h |
diff --git a/content/browser/renderer_host/offscreen_canvas_surface_impl.h b/content/browser/renderer_host/offscreen_canvas_surface_impl.h |
index 77ddecaf43de8780eeb8fc1a89313d7c67c410ac..a9c23981b41f208c0a7d7d20f53a2dc79b7bd6c5 100644 |
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.h |
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.h |
@@ -22,18 +22,27 @@ class CONTENT_EXPORT OffscreenCanvasSurfaceImpl |
static void Create(blink::mojom::OffscreenCanvasSurfaceRequest request); |
// blink::mojom::OffscreenCanvasSurface implementation. |
- void GetSurfaceId(GetSurfaceIdCallback callback) override; |
+ void GetSurfaceId(blink::mojom::OffscreenCanvasSurfaceClientPtr client, |
+ GetSurfaceIdCallback callback) override; |
void Require(const cc::SurfaceId& surface_id, |
const cc::SurfaceSequence& sequence) override; |
void Satisfy(const cc::SurfaceSequence& sequence) override; |
const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; } |
+ cc::LocalFrameId GenerateLocalFrameId() { |
+ return id_allocator_->GenerateId(); |
+ } |
+ |
+ void OnSurfaceSizeChanged(const cc::SurfaceId& new_surface_id, |
+ gfx::Size new_surface_size); |
private: |
// Surface-related state |
std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; |
cc::FrameSinkId frame_sink_id_; |
+ blink::mojom::OffscreenCanvasSurfaceClientPtr client_; |
+ |
DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl); |
}; |