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

Unified Diff: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c Created 3 years, 10 months 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_compositor_frame_sink.cc
diff --git a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
index 29306b4b8f5992e90d885693020f6ccab07cd471..e52843a67363f6df7f6561d03b275ea2fa1de32c 100644
--- a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
+++ b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
@@ -80,9 +80,11 @@ void OffscreenCanvasCompositorFrameSink::ReclaimResources(
client_->ReclaimResources(resources);
}
-void OffscreenCanvasCompositorFrameSink::WillDrawSurface() {
+void OffscreenCanvasCompositorFrameSink::WillDrawSurface(
+ const cc::LocalSurfaceId& local_surface_id,
+ const gfx::Rect& damage_rect) {
if (client_)
- client_->WillDrawSurface();
+ client_->WillDrawSurface(local_surface_id, damage_rect);
}
void OffscreenCanvasCompositorFrameSink::OnClientConnectionLost() {

Powered by Google App Engine
This is Rietveld 408576698