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

Side by Side Diff: ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc

Issue 7737013: Move PPAPI graphics3d and opengles interfaces out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_thunk.cc ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/thunk/thunk.h" 5 #include "ppapi/thunk/thunk.h"
6 #include "ppapi/thunk/enter.h" 6 #include "ppapi/thunk/enter.h"
7 #include "ppapi/thunk/ppb_graphics_3d_api.h" 7 #include "ppapi/thunk/ppb_graphics_3d_api.h"
8 #include "ppapi/thunk/resource_creation_api.h" 8 #include "ppapi/thunk/resource_creation_api.h"
9 9
10 namespace ppapi { 10 namespace ppapi {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 PP_Graphics3DTrustedState FlushSyncFast(PP_Resource context, 94 PP_Graphics3DTrustedState FlushSyncFast(PP_Resource context,
95 int32_t put_offset, 95 int32_t put_offset,
96 int32_t last_known_get) { 96 int32_t last_known_get) {
97 EnterGraphics3D enter(context, true); 97 EnterGraphics3D enter(context, true);
98 if (enter.failed()) 98 if (enter.failed())
99 return GetErrorState(); 99 return GetErrorState();
100 return enter.object()->FlushSyncFast(put_offset, last_known_get); 100 return enter.object()->FlushSyncFast(put_offset, last_known_get);
101 } 101 }
102 102
103 const PPB_Graphics3DTrusted_Dev g_ppb_graphics_3d_trusted_thunk = { 103 const PPB_Graphics3DTrusted g_ppb_graphics_3d_trusted_thunk = {
104 &CreateRaw, 104 &CreateRaw,
105 &InitCommandBuffer, 105 &InitCommandBuffer,
106 &GetRingBuffer, 106 &GetRingBuffer,
107 &GetState, 107 &GetState,
108 &CreateTransferBuffer, 108 &CreateTransferBuffer,
109 &DestroyTransferBuffer, 109 &DestroyTransferBuffer,
110 &GetTransferBuffer, 110 &GetTransferBuffer,
111 &Flush, 111 &Flush,
112 &FlushSync, 112 &FlushSync,
113 &FlushSyncFast, 113 &FlushSyncFast,
114 }; 114 };
115 115
116 } // namespace 116 } // namespace
117 117
118 const PPB_Graphics3DTrusted_Dev* GetPPB_Graphics3DTrusted_Thunk() { 118 const PPB_Graphics3DTrusted* GetPPB_Graphics3DTrusted_Thunk() {
119 return &g_ppb_graphics_3d_trusted_thunk; 119 return &g_ppb_graphics_3d_trusted_thunk;
120 } 120 }
121 121
122 } // namespace thunk 122 } // namespace thunk
123 } // namespace ppapi 123 } // namespace ppapi
124 124
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_thunk.cc ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698