Index: content/renderer/pepper/pepper_platform_context_3d.h |
diff --git a/content/renderer/pepper/pepper_platform_context_3d.h b/content/renderer/pepper/pepper_platform_context_3d.h |
index 2520bbd65da868a70dd9edf8b228a6c244e63f1d..dcd42caa611807124a4a436437d08176fbc0afeb 100644 |
--- a/content/renderer/pepper/pepper_platform_context_3d.h |
+++ b/content/renderer/pepper/pepper_platform_context_3d.h |
@@ -31,7 +31,11 @@ class PlatformContext3D { |
bool Init(const int32* attrib_list, PlatformContext3D* share_context); |
// Retrieves the mailbox name for the front buffer backing the context. |
- void GetBackingMailbox(gpu::Mailbox* mailbox); |
+ void GetBackingMailbox(gpu::Mailbox* mailbox, uint32* sync_point); |
+ |
+ // Inserts a new sync point to associate with the backing mailbox, that should |
+ // be waited on before using the mailbox. |
+ void InsertSyncPointForBackingMailbox(); |
// Returns true if the backing texture is always opaque. |
bool IsOpaque(); |
@@ -68,6 +72,7 @@ class PlatformContext3D { |
scoped_refptr<GpuChannelHost> channel_; |
gpu::Mailbox mailbox_; |
+ uint32 sync_point_; |
bool has_alpha_; |
CommandBufferProxyImpl* command_buffer_; |
base::Closure context_lost_callback_; |