Index: cc/surfaces/surface_factory.h |
diff --git a/cc/surfaces/surface_factory.h b/cc/surfaces/surface_factory.h |
index 7abd9292d3f4770483f776ff75e16471a55f44cf..b6b627fb28ae3a202771e0d34557181d121f45d4 100644 |
--- a/cc/surfaces/surface_factory.h |
+++ b/cc/surfaces/surface_factory.h |
@@ -27,6 +27,8 @@ class Surface; |
class SurfaceFactoryClient; |
class SurfaceManager; |
+enum class SurfaceDrawStatus { DRAW_SKIPPED, DRAWN }; |
+ |
// A SurfaceFactory is used to create surfaces that may share resources and |
// receive returned resources for frames submitted to those surfaces. Resources |
// submitted to frames created by a particular factory will be returned to that |
@@ -35,9 +37,7 @@ class SurfaceManager; |
class CC_SURFACES_EXPORT SurfaceFactory |
: public base::SupportsWeakPtr<SurfaceFactory> { |
public: |
- // This callback is called with true if the frame was drawn, or false if it |
- // was discarded. |
- using DrawCallback = base::Callback<void(bool)>; |
+ using DrawCallback = base::Callback<void(SurfaceDrawStatus)>; |
SurfaceFactory(SurfaceManager* manager, SurfaceFactoryClient* client); |
~SurfaceFactory(); |