| 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; |
| 101 | 107 |
| 102 void SetMemoryAllocationChangedCallback( | 108 void SetMemoryAllocationChangedCallback( |
| 103 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& | 109 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& |
| 104 callback); | 110 callback); |
| 105 | 111 |
| 106 void AddDeletionObserver(DeletionObserver* observer); | 112 void AddDeletionObserver(DeletionObserver* observer); |
| 107 void RemoveDeletionObserver(DeletionObserver* observer); | 113 void RemoveDeletionObserver(DeletionObserver* observer); |
| 108 | 114 |
| 109 bool DiscardBackbuffer(); | 115 bool DiscardBackbuffer(); |
| 110 bool EnsureBackbuffer(); | 116 bool EnsureBackbuffer(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Tasks to be invoked in SignalSyncPoint responses. | 208 // Tasks to be invoked in SignalSyncPoint responses. |
| 203 uint32 next_signal_id_; | 209 uint32 next_signal_id_; |
| 204 SignalTaskMap signal_tasks_; | 210 SignalTaskMap signal_tasks_; |
| 205 | 211 |
| 206 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 212 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 207 }; | 213 }; |
| 208 | 214 |
| 209 } // namespace content | 215 } // namespace content |
| 210 | 216 |
| 211 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 217 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |