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_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual void SetGetOffset(int32 get_offset) OVERRIDE; | 91 virtual void SetGetOffset(int32 get_offset) OVERRIDE; |
92 virtual gpu::Buffer CreateTransferBuffer(size_t size, | 92 virtual gpu::Buffer CreateTransferBuffer(size_t size, |
93 int32* id) OVERRIDE; | 93 int32* id) OVERRIDE; |
94 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; | 94 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; |
95 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE; | 95 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE; |
96 virtual void SetToken(int32 token) OVERRIDE; | 96 virtual void SetToken(int32 token) OVERRIDE; |
97 virtual void SetParseError(gpu::error::Error error) OVERRIDE; | 97 virtual void SetParseError(gpu::error::Error error) OVERRIDE; |
98 virtual void SetContextLostReason( | 98 virtual void SetContextLostReason( |
99 gpu::error::ContextLostReason reason) OVERRIDE; | 99 gpu::error::ContextLostReason reason) OVERRIDE; |
100 virtual uint32 InsertSyncPoint() OVERRIDE; | 100 virtual uint32 InsertSyncPoint() OVERRIDE; |
| 101 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( |
| 102 size_t width, |
| 103 size_t height, |
| 104 unsigned internalformat, |
| 105 int32* id) OVERRIDE; |
| 106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; |
| 107 virtual gfx::GLImage* GetImage(int32 id) OVERRIDE; |
101 | 108 |
102 void SetMemoryAllocationChangedCallback( | 109 void SetMemoryAllocationChangedCallback( |
103 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& | 110 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& |
104 callback); | 111 callback); |
105 | 112 |
106 void AddDeletionObserver(DeletionObserver* observer); | 113 void AddDeletionObserver(DeletionObserver* observer); |
107 void RemoveDeletionObserver(DeletionObserver* observer); | 114 void RemoveDeletionObserver(DeletionObserver* observer); |
108 | 115 |
109 bool DiscardBackbuffer(); | 116 bool DiscardBackbuffer(); |
110 bool EnsureBackbuffer(); | 117 bool EnsureBackbuffer(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // Tasks to be invoked in SignalSyncPoint responses. | 209 // Tasks to be invoked in SignalSyncPoint responses. |
203 uint32 next_signal_id_; | 210 uint32 next_signal_id_; |
204 SignalTaskMap signal_tasks_; | 211 SignalTaskMap signal_tasks_; |
205 | 212 |
206 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 213 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
207 }; | 214 }; |
208 | 215 |
209 } // namespace content | 216 } // namespace content |
210 | 217 |
211 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 218 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |