OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GRAPHICS_3D_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
10 #include "ppapi/shared_impl/resource.h" | 10 #include "ppapi/shared_impl/resource.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; | 31 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; |
32 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; | 32 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; |
33 virtual PP_Bool GetTransferBuffer(int32_t id, | 33 virtual PP_Bool GetTransferBuffer(int32_t id, |
34 int* shm_handle, | 34 int* shm_handle, |
35 uint32_t* shm_size) OVERRIDE; | 35 uint32_t* shm_size) OVERRIDE; |
36 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; | 36 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; |
37 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; | 37 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; |
38 virtual PP_Graphics3DTrustedState FlushSyncFast( | 38 virtual PP_Graphics3DTrustedState FlushSyncFast( |
39 int32_t put_offset, | 39 int32_t put_offset, |
40 int32_t last_known_get) OVERRIDE; | 40 int32_t last_known_get) OVERRIDE; |
| 41 virtual uint32_t InsertSyncPoint() OVERRIDE; |
41 | 42 |
42 // Binds/unbinds the graphics of this context with the associated instance. | 43 // Binds/unbinds the graphics of this context with the associated instance. |
43 // Returns true if binding/unbinding is successful. | 44 // Returns true if binding/unbinding is successful. |
44 bool BindToInstance(bool bind); | 45 bool BindToInstance(bool bind); |
45 | 46 |
46 // Returns the id of texture that can be used by the compositor. | 47 // Returns the id of texture that can be used by the compositor. |
47 unsigned int GetBackingTextureId(); | 48 unsigned int GetBackingTextureId(); |
48 | 49 |
49 // Returns true if the backing texture is always opaque. | 50 // Returns true if the backing texture is always opaque. |
50 bool IsOpaque(); | 51 bool IsOpaque(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; | 90 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; |
90 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; | 91 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); | 93 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace ppapi | 96 } // namespace ppapi |
96 } // namespace webkit | 97 } // namespace webkit |
97 | 98 |
98 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 99 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
OLD | NEW |