| OLD | NEW |
| 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 WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ppapi/shared_impl/resource.h" | 10 #include "ppapi/shared_impl/resource.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const int32_t* attrib_list); | 38 const int32_t* attrib_list); |
| 39 | 39 |
| 40 // Resource override. | 40 // Resource override. |
| 41 virtual ::ppapi::thunk::PPB_Context3D_API* AsPPB_Context3D_API(); | 41 virtual ::ppapi::thunk::PPB_Context3D_API* AsPPB_Context3D_API(); |
| 42 | 42 |
| 43 // PPB_Context3D_API implementation. | 43 // PPB_Context3D_API implementation. |
| 44 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) OVERRIDE; | 44 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) OVERRIDE; |
| 45 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) OVERRIDE; | 45 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) OVERRIDE; |
| 46 virtual int32_t GetBoundSurfaces(PP_Resource* draw, | 46 virtual int32_t GetBoundSurfaces(PP_Resource* draw, |
| 47 PP_Resource* read) OVERRIDE; | 47 PP_Resource* read) OVERRIDE; |
| 48 virtual PP_Bool InitializeTrusted(int32_t size) OVERRIDE; | 48 virtual PP_Bool InitializeTrusted() OVERRIDE; |
| 49 virtual PP_Bool GetRingBuffer(int* shm_handle, | 49 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE; |
| 50 uint32_t* shm_size) OVERRIDE; | |
| 51 virtual PP_Context3DTrustedState GetState() OVERRIDE; | 50 virtual PP_Context3DTrustedState GetState() OVERRIDE; |
| 52 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; | 51 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; |
| 53 virtual PP_Context3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; | 52 virtual PP_Context3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; |
| 54 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; | 53 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; |
| 55 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; | 54 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; |
| 56 virtual PP_Bool GetTransferBuffer(int32_t id, | 55 virtual PP_Bool GetTransferBuffer(int32_t id, |
| 57 int* shm_handle, | 56 int* shm_handle, |
| 58 uint32_t* shm_size) OVERRIDE; | 57 uint32_t* shm_size) OVERRIDE; |
| 59 virtual PP_Context3DTrustedState FlushSyncFast( | 58 virtual PP_Context3DTrustedState FlushSyncFast( |
| 60 int32_t put_offset, | 59 int32_t put_offset, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 108 |
| 110 base::WeakPtrFactory<PPB_Context3D_Impl> weak_ptr_factory_; | 109 base::WeakPtrFactory<PPB_Context3D_Impl> weak_ptr_factory_; |
| 111 | 110 |
| 112 DISALLOW_COPY_AND_ASSIGN(PPB_Context3D_Impl); | 111 DISALLOW_COPY_AND_ASSIGN(PPB_Context3D_Impl); |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 } // namespace ppapi | 114 } // namespace ppapi |
| 116 } // namespace webkit | 115 } // namespace webkit |
| 117 | 116 |
| 118 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ | 117 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ |
| OLD | NEW |