Index: webkit/plugins/ppapi/ppb_surface_3d_impl.h |
diff --git a/webkit/plugins/ppapi/ppb_surface_3d_impl.h b/webkit/plugins/ppapi/ppb_surface_3d_impl.h |
index d09689ed48d984d035b70daaf54afdec7aa9544b..0cd06437a4dd634dcc3ab990f898f4b3be9199b6 100644 |
--- a/webkit/plugins/ppapi/ppb_surface_3d_impl.h |
+++ b/webkit/plugins/ppapi/ppb_surface_3d_impl.h |
@@ -49,7 +49,10 @@ class PPB_Surface3D_Impl : public Resource { |
unsigned int GetBackingTextureId(); |
- bool SwapBuffers(); |
+ bool SwapBuffers(PP_CompletionCallback callback); |
+ |
+ void ViewInitiatedPaint(); |
+ void ViewFlushedPaint(); |
private: |
// Called when SwapBuffers is complete. |
@@ -59,6 +62,10 @@ class PPB_Surface3D_Impl : public Resource { |
PluginInstance* instance_; |
bool bound_to_instance_; |
+ // True when the page's SwapBuffers has been issued but not returned yet. |
+ bool swap_initiated_; |
+ PP_CompletionCallback swap_callback_; |
+ |
// The context this surface is currently bound to. |
PluginDelegate::PlatformContext3D* context_; |