Index: cc/output/output_surface_client.h |
diff --git a/cc/output/output_surface_client.h b/cc/output/output_surface_client.h |
index 32dec38ff879774fa9367e33e6e3b1cc181de526..8ff092259674ec08e4d381e29b9fe25c3e01a855 100644 |
--- a/cc/output/output_surface_client.h |
+++ b/cc/output/output_surface_client.h |
@@ -5,6 +5,7 @@ |
#ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
#define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
+#include "base/memory/ref_counted.h" |
#include "base/time.h" |
#include "cc/base/cc_export.h" |
#include "ui/gfx/rect.h" |
@@ -12,9 +13,15 @@ |
namespace cc { |
class CompositorFrameAck; |
+class ContextProvider; |
class CC_EXPORT OutputSurfaceClient { |
public: |
+ // Called to synchronously re-initialize using the Context3D. Upon returning |
+ // the compositor should be able to draw using GL what was previously |
+ // committed. |
joth
2013/05/21 02:08:00
// Will only be called by OutputSurfaces that hold
|
+ virtual bool InitializeForGL( |
+ scoped_refptr<ContextProvider> offscreen_context_provider) = 0; |
virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0; |
virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
base::TimeDelta interval) = 0; |