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 CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
7 | 7 |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "gpu/command_buffer/common/mailbox.h" | 10 #include "gpu/command_buffer/common/mailbox.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 PP_Resource share_context, | 29 PP_Resource share_context, |
30 const int32_t* attrib_list, | 30 const int32_t* attrib_list, |
31 gpu::Capabilities* capabilities, | 31 gpu::Capabilities* capabilities, |
32 base::SharedMemoryHandle* shared_state_handle); | 32 base::SharedMemoryHandle* shared_state_handle); |
33 | 33 |
34 // PPB_Graphics3D_API trusted implementation. | 34 // PPB_Graphics3D_API trusted implementation. |
35 PP_Bool SetGetBuffer(int32_t transfer_buffer_id) override; | 35 PP_Bool SetGetBuffer(int32_t transfer_buffer_id) override; |
36 scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, | 36 scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, |
37 int32* id) override; | 37 int32* id) override; |
38 PP_Bool DestroyTransferBuffer(int32_t id) override; | 38 PP_Bool DestroyTransferBuffer(int32_t id) override; |
39 PP_Bool Flush(int32_t put_offset) override; | 39 PP_Bool Flush(int32_t put_offset, |
| 40 const std::vector<uint32>& sync_points) override; |
40 gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, | 41 gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, |
41 int32_t end) override; | 42 int32_t end) override; |
42 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start, | 43 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start, |
43 int32_t end) override; | 44 int32_t end) override; |
44 uint32_t InsertSyncPoint() override; | 45 uint32_t InsertSyncPoint() override; |
45 uint32_t InsertFutureSyncPoint() override; | 46 uint32_t InsertFutureSyncPoint() override; |
46 void RetireSyncPoint(uint32_t) override; | 47 void RetireSyncPoint(uint32_t) override; |
47 | 48 |
48 // Binds/unbinds the graphics of this context with the associated instance. | 49 // Binds/unbinds the graphics of this context with the associated instance. |
49 // Returns true if binding/unbinding is successful. | 50 // Returns true if binding/unbinding is successful. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 CommandBufferProxyImpl* command_buffer_; | 102 CommandBufferProxyImpl* command_buffer_; |
102 | 103 |
103 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; | 104 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); | 106 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); |
106 }; | 107 }; |
107 | 108 |
108 } // namespace content | 109 } // namespace content |
109 | 110 |
110 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ | 111 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
OLD | NEW |