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

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

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests Created 5 years, 3 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
Index: content/renderer/pepper/ppb_graphics_3d_impl.h
diff --git a/content/renderer/pepper/ppb_graphics_3d_impl.h b/content/renderer/pepper/ppb_graphics_3d_impl.h
index 6702c3598848f977f56473642bd87d56bf33b93f..c84343bb4cdd2f120e040c7e5ead55b11dd2d0f0 100644
--- a/content/renderer/pepper/ppb_graphics_3d_impl.h
+++ b/content/renderer/pepper/ppb_graphics_3d_impl.h
@@ -15,6 +15,10 @@ namespace gpu {
struct Capabilities;
}
+namespace ppapi {
+struct CommandBufferIDPair;
+}
+
namespace content {
class CommandBufferProxyImpl;
class GpuChannelHost;
@@ -29,7 +33,8 @@ class PPB_Graphics3D_Impl : public ppapi::PPB_Graphics3D_Shared {
PP_Resource share_context,
const int32_t* attrib_list,
gpu::Capabilities* capabilities,
- base::SharedMemoryHandle* shared_state_handle);
+ base::SharedMemoryHandle* shared_state_handle,
+ ppapi::CommandBufferIDPair* id_pair);
// PPB_Graphics3D_API trusted implementation.
PP_Bool SetGetBuffer(int32_t transfer_buffer_id) override;
@@ -79,7 +84,8 @@ class PPB_Graphics3D_Impl : public ppapi::PPB_Graphics3D_Shared {
bool InitRaw(PPB_Graphics3D_API* share_context,
const int32_t* attrib_list,
gpu::Capabilities* capabilities,
- base::SharedMemoryHandle* shared_state_handle);
+ base::SharedMemoryHandle* shared_state_handle,
+ ppapi::CommandBufferIDPair* id_pair);
// Notifications received from the GPU process.
void OnSwapBuffers();

Powered by Google App Engine
This is Rietveld 408576698