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

Unified Diff: content/browser/renderer_host/offscreen_canvas_surface_impl.h

Issue 2584643002: Revamp OffscreenCanvas commit flow (Closed)
Patch Set: Furnish Created 4 years 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698