| 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..f1498fa8a215776f389118c5cb1743788953225c 100644
|
| --- a/content/browser/renderer_host/offscreen_canvas_surface_impl.h
|
| +++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.h
|
| @@ -21,8 +21,13 @@ class CONTENT_EXPORT OffscreenCanvasSurfaceImpl
|
|
|
| static void Create(blink::mojom::OffscreenCanvasSurfaceRequest request);
|
|
|
| + void OnSurfaceCreated(const cc::SurfaceId& surface_id,
|
| + const gfx::Size& frame_size,
|
| + float device_scale_factor);
|
| +
|
| // blink::mojom::OffscreenCanvasSurface implementation.
|
| - void GetSurfaceId(GetSurfaceIdCallback callback) override;
|
| + void SetClient(blink::mojom::OffscreenCanvasSurfaceClientPtr,
|
| + const cc::FrameSinkId&) override;
|
| void Require(const cc::SurfaceId& surface_id,
|
| const cc::SurfaceSequence& sequence) override;
|
| void Satisfy(const cc::SurfaceSequence& sequence) override;
|
| @@ -30,9 +35,11 @@ class CONTENT_EXPORT OffscreenCanvasSurfaceImpl
|
| const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; }
|
|
|
| private:
|
| + blink::mojom::OffscreenCanvasSurfaceClientPtr client_;
|
| +
|
| // Surface-related state
|
| - std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_;
|
| cc::FrameSinkId frame_sink_id_;
|
| + cc::LocalFrameId current_local_frame_id_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl);
|
| };
|
|
|