Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1594)

Unified Diff: content/renderer/pepper/pepper_platform_context_3d.h

Issue 195623004: Merge 254840 "ppapi: Send sync point whenever the pepper texture..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_platform_context_3d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_platform_context_3d.h
===================================================================
--- content/renderer/pepper/pepper_platform_context_3d.h (revision 256299)
+++ content/renderer/pepper/pepper_platform_context_3d.h (working copy)
@@ -31,8 +31,12 @@
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 @@
scoped_refptr<GpuChannelHost> channel_;
gpu::Mailbox mailbox_;
+ uint32 sync_point_;
bool has_alpha_;
CommandBufferProxyImpl* command_buffer_;
base::Closure context_lost_callback_;
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_platform_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698