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

Unified Diff: ppapi/thunk/ppb_graphics_3d_api.h

Issue 7431001: Re-land r92885, which was reverted in r92891. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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 | « ppapi/tests/all_c_includes.h ('k') | ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_graphics_3d_api.h
===================================================================
--- ppapi/thunk/ppb_graphics_3d_api.h (revision 92908)
+++ ppapi/thunk/ppb_graphics_3d_api.h (working copy)
@@ -6,6 +6,7 @@
#define PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_
#include "ppapi/c/dev/ppb_graphics_3d_dev.h"
+#include "ppapi/c/dev/ppb_graphics_3d_trusted_dev.h"
namespace ppapi {
namespace thunk {
@@ -14,9 +15,28 @@
public:
virtual ~PPB_Graphics3D_API() {}
+ // Graphics3D API.
virtual int32_t GetAttribs(int32_t* attrib_list) = 0;
virtual int32_t SetAttribs(int32_t* attrib_list) = 0;
virtual int32_t SwapBuffers(PP_CompletionCallback callback) = 0;
+
+ // Graphics3DTrusted API.
+ virtual PP_Bool InitCommandBuffer(int32_t size) = 0;
+ virtual PP_Bool GetRingBuffer(int* shm_handle,
+ uint32_t* shm_size) = 0;
+ virtual PP_Graphics3DTrustedState GetState() = 0;
+ virtual int32_t CreateTransferBuffer(uint32_t size) = 0;
+ virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0;
+ virtual PP_Bool GetTransferBuffer(int32_t id,
+ int* shm_handle,
+ uint32_t* shm_size) = 0;
+ virtual PP_Bool Flush(int32_t put_offset) = 0;
+ virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) = 0;
+ virtual PP_Graphics3DTrustedState FlushSyncFast(int32_t put_offset,
+ int32_t last_known_get) = 0;
+
+ // TODO(alokp): Implement GLESChromiumTextureMapping here after
+ // deprecating Context3D.
};
} // namespace thunk
« no previous file with comments | « ppapi/tests/all_c_includes.h ('k') | ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698