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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 unsigned internalformat, | 110 unsigned internalformat, |
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 uint32 CreateStreamTextureImage(int32 image_id) override; |
120 void SetLock(base::Lock* lock) override; | 121 void SetLock(base::Lock* lock) override; |
121 bool IsGpuChannelLost() override; | 122 bool IsGpuChannelLost() override; |
122 | 123 |
123 int GetRouteID() const; | 124 int GetRouteID() const; |
124 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); | 125 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); |
125 void SetContextLostCallback(const base::Closure& callback); | 126 void SetContextLostCallback(const base::Closure& callback); |
126 | 127 |
127 typedef base::Callback<void(const gpu::MemoryAllocation&)> | 128 typedef base::Callback<void(const gpu::MemoryAllocation&)> |
128 MemoryAllocationChangedCallback; | 129 MemoryAllocationChangedCallback; |
129 void SetMemoryAllocationChangedCallback( | 130 void SetMemoryAllocationChangedCallback( |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 228 |
228 SwapBuffersCompletionCallback swap_buffers_completion_callback_; | 229 SwapBuffersCompletionCallback swap_buffers_completion_callback_; |
229 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; | 230 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; |
230 | 231 |
231 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 232 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
232 }; | 233 }; |
233 | 234 |
234 } // namespace content | 235 } // namespace content |
235 | 236 |
236 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 237 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |