Index: cc/surfaces/surface_aggregator_client.h |
diff --git a/cc/surfaces/surface_aggregator_client.h b/cc/surfaces/surface_aggregator_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d00af2a63d5b6c156f8bbd1b67a5d8bd243c168c |
--- /dev/null |
+++ b/cc/surfaces/surface_aggregator_client.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+#ifndef CC_SURFACES_SURFACE_AGGREGATOR_CLIENT_H_ |
+#define CC_SURFACES_SURFACE_AGGREGATOR_CLIENT_H_ |
+ |
+#include "cc/surfaces/local_surface_id.h" |
+#include "cc/surfaces/surfaces_export.h" |
+#include "ui/gfx/geometry/rect.h" |
+ |
+namespace cc { |
+ |
+class CC_SURFACES_EXPORT SurfaceAggregatorClient { |
+ public: |
+ virtual ~SurfaceAggregatorClient() {} |
+ |
+ // WillDrawSurface is called when the surface is scheduled for a draw. |
+ virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id, |
+ const gfx::Rect& damage_rect) = 0; |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_SURFACES_SURFACE_AGGREGATOR_CLIENT_H_ |