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

Unified Diff: ppapi/thunk/ppb_context_3d_trusted_thunk.cc

Issue 8566059: Add CommandBuffer::SetGetBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: etc Created 9 years, 1 month 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: ppapi/thunk/ppb_context_3d_trusted_thunk.cc
diff --git a/ppapi/thunk/ppb_context_3d_trusted_thunk.cc b/ppapi/thunk/ppb_context_3d_trusted_thunk.cc
index 312898a6fa789a77b89912c22aa1a9feba8f10e3..9def598fe28c11ff98461e0510269ca46263091e 100644
--- a/ppapi/thunk/ppb_context_3d_trusted_thunk.cc
+++ b/ppapi/thunk/ppb_context_3d_trusted_thunk.cc
@@ -31,20 +31,11 @@ PP_Resource CreateRaw(PP_Instance instance,
attrib_list);
}
-PP_Bool Initialize(PP_Resource context, int32_t size) {
+PP_Bool Initialize(PP_Resource context) {
EnterContext3D enter(context, true);
if (enter.failed())
return PP_FALSE;
- return enter.object()->InitializeTrusted(size);
-}
-
-PP_Bool GetRingBuffer(PP_Resource context,
- int* shm_handle,
- uint32_t* shm_size) {
- EnterContext3D enter(context, true);
- if (enter.failed())
- return PP_FALSE;
- return enter.object()->GetRingBuffer(shm_handle, shm_size);
+ return enter.object()->InitializeTrusted();
}
PP_Context3DTrustedState GetState(PP_Resource context) {
@@ -104,7 +95,6 @@ PP_Context3DTrustedState FlushSyncFast(PP_Resource context,
const PPB_Context3DTrusted_Dev g_ppb_context_3d_trusted_thunk = {
&CreateRaw,
&Initialize,
- &GetRingBuffer,
&GetState,
&Flush,
&FlushSync,

Powered by Google App Engine
This is Rietveld 408576698