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

Side by Side Diff: ppapi/thunk/ppb_context_3d_api.h

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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ 5 #ifndef PPAPI_THUNK_PPB_CONTEXT_3D_API_H_
6 #define PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ 6 #define PPAPI_THUNK_PPB_CONTEXT_3D_API_H_
7 7
8 #include "ppapi/c/dev/ppb_context_3d_dev.h" 8 #include "ppapi/c/dev/ppb_context_3d_dev.h"
9 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" 9 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h"
10 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" 10 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
(...skipping 10 matching lines...) Expand all
21 class PPB_Context3D_API { 21 class PPB_Context3D_API {
22 public: 22 public:
23 virtual ~PPB_Context3D_API() {} 23 virtual ~PPB_Context3D_API() {}
24 24
25 // Context3D. 25 // Context3D.
26 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) = 0; 26 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) = 0;
27 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) = 0; 27 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) = 0;
28 virtual int32_t GetBoundSurfaces(PP_Resource* draw, PP_Resource* read) = 0; 28 virtual int32_t GetBoundSurfaces(PP_Resource* draw, PP_Resource* read) = 0;
29 29
30 // Context3DTrusted. 30 // Context3DTrusted.
31 virtual PP_Bool InitializeTrusted(int32_t size) = 0; 31 virtual PP_Bool InitializeTrusted() = 0;
32 virtual PP_Bool GetRingBuffer(int* shm_handle, 32 virtual PP_Bool SetGetBuffer(int32_t shm_id) = 0;
33 uint32_t* shm_size) = 0;
34 virtual PP_Context3DTrustedState GetState() = 0; 33 virtual PP_Context3DTrustedState GetState() = 0;
35 virtual PP_Bool Flush(int32_t put_offset) = 0; 34 virtual PP_Bool Flush(int32_t put_offset) = 0;
36 virtual PP_Context3DTrustedState FlushSync(int32_t put_offset) = 0; 35 virtual PP_Context3DTrustedState FlushSync(int32_t put_offset) = 0;
37 virtual int32_t CreateTransferBuffer(uint32_t size) = 0; 36 virtual int32_t CreateTransferBuffer(uint32_t size) = 0;
38 virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0; 37 virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0;
39 virtual PP_Bool GetTransferBuffer(int32_t id, 38 virtual PP_Bool GetTransferBuffer(int32_t id,
40 int* shm_handle, 39 int* shm_handle,
41 uint32_t* shm_size) = 0; 40 uint32_t* shm_size) = 0;
42 virtual PP_Context3DTrustedState FlushSyncFast(int32_t put_offset, 41 virtual PP_Context3DTrustedState FlushSyncFast(int32_t put_offset,
43 int32_t last_known_get) = 0; 42 int32_t last_known_get) = 0;
(...skipping 11 matching lines...) Expand all
55 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0; 54 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0;
56 55
57 // For binding with OpenGLES interface. 56 // For binding with OpenGLES interface.
58 virtual gpu::gles2::GLES2Implementation* GetGLES2Impl() = 0; 57 virtual gpu::gles2::GLES2Implementation* GetGLES2Impl() = 0;
59 }; 58 };
60 59
61 } // namespace thunk 60 } // namespace thunk
62 } // namespace ppapi 61 } // namespace ppapi
63 62
64 #endif // PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ 63 #endif // PPAPI_THUNK_PPB_CONTEXT_3D_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698