| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 unsigned usage) override; | 111 unsigned usage) override; |
| 112 uint32 InsertSyncPoint() override; | 112 uint32 InsertSyncPoint() override; |
| 113 uint32_t InsertFutureSyncPoint() override; | 113 uint32_t InsertFutureSyncPoint() override; |
| 114 void RetireSyncPoint(uint32_t sync_point) override; | 114 void RetireSyncPoint(uint32_t sync_point) override; |
| 115 void SignalSyncPoint(uint32 sync_point, | 115 void SignalSyncPoint(uint32 sync_point, |
| 116 const base::Closure& callback) override; | 116 const base::Closure& callback) override; |
| 117 void SignalQuery(uint32 query, const base::Closure& callback) override; | 117 void SignalQuery(uint32 query, const base::Closure& callback) override; |
| 118 void SetSurfaceVisible(bool visible) override; | 118 void SetSurfaceVisible(bool visible) override; |
| 119 uint32 CreateStreamTexture(uint32 texture_id) override; | 119 uint32 CreateStreamTexture(uint32 texture_id) override; |
| 120 void SetLock(base::Lock* lock) override; | 120 void SetLock(base::Lock* lock) override; |
| 121 bool IsGpuChannelLost() override; |
| 121 | 122 |
| 122 int GetRouteID() const; | 123 int GetRouteID() const; |
| 123 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); | 124 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); |
| 124 void SetContextLostCallback(const base::Closure& callback); | 125 void SetContextLostCallback(const base::Closure& callback); |
| 125 | 126 |
| 126 typedef base::Callback<void(const gpu::MemoryAllocation&)> | 127 typedef base::Callback<void(const gpu::MemoryAllocation&)> |
| 127 MemoryAllocationChangedCallback; | 128 MemoryAllocationChangedCallback; |
| 128 void SetMemoryAllocationChangedCallback( | 129 void SetMemoryAllocationChangedCallback( |
| 129 const MemoryAllocationChangedCallback& callback); | 130 const MemoryAllocationChangedCallback& callback); |
| 130 void AddDeletionObserver(DeletionObserver* observer); | 131 void AddDeletionObserver(DeletionObserver* observer); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 232 |
| 232 SwapBuffersCompletionCallback swap_buffers_completion_callback_; | 233 SwapBuffersCompletionCallback swap_buffers_completion_callback_; |
| 233 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; | 234 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; |
| 234 | 235 |
| 235 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 236 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 236 }; | 237 }; |
| 237 | 238 |
| 238 } // namespace content | 239 } // namespace content |
| 239 | 240 |
| 240 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 241 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |