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

Unified Diff: cc/surfaces/compositor_frame_sink_support_client.h

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
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.cc ('k') | cc/surfaces/compositor_frame_sink_support_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/compositor_frame_sink_support_client.h
diff --git a/cc/surfaces/compositor_frame_sink_support_client.h b/cc/surfaces/compositor_frame_sink_support_client.h
index e3f6dab23e141af7ecbce53857713369cd04b3dc..905f6db8ec7436196941b9a05275a4caacb747b2 100644
--- a/cc/surfaces/compositor_frame_sink_support_client.h
+++ b/cc/surfaces/compositor_frame_sink_support_client.h
@@ -7,8 +7,14 @@
#include "cc/resources/returned_resource.h"
+namespace gfx {
+class Rect;
+}
+
namespace cc {
+class LocalSurfaceId;
+
struct BeginFrameArgs;
class CompositorFrameSinkSupportClient {
@@ -29,7 +35,8 @@ class CompositorFrameSinkSupportClient {
virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0;
// Called when surface is being scheduled for a draw.
- virtual void WillDrawSurface() = 0;
+ virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id,
+ const gfx::Rect& damage_rect) = 0;
protected:
virtual ~CompositorFrameSinkSupportClient() {}
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.cc ('k') | cc/surfaces/compositor_frame_sink_support_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698