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

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

Issue 2521013003: Compositing Layer update for OffscreenCanvas resize (Closed)
Patch Set: test Created 4 years, 1 month 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..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);
};

Powered by Google App Engine
This is Rietveld 408576698