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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 size_t height, | 112 size_t height, |
113 unsigned internalformat, | 113 unsigned internalformat, |
114 unsigned usage) override; | 114 unsigned usage) override; |
115 uint32 InsertSyncPoint() override; | 115 uint32 InsertSyncPoint() override; |
116 uint32_t InsertFutureSyncPoint() override; | 116 uint32_t InsertFutureSyncPoint() override; |
117 void RetireSyncPoint(uint32_t sync_point) override; | 117 void RetireSyncPoint(uint32_t sync_point) override; |
118 void SignalSyncPoint(uint32 sync_point, | 118 void SignalSyncPoint(uint32 sync_point, |
119 const base::Closure& callback) override; | 119 const base::Closure& callback) override; |
120 void SignalQuery(uint32 query, const base::Closure& callback) override; | 120 void SignalQuery(uint32 query, const base::Closure& callback) override; |
121 void SetSurfaceVisible(bool visible) override; | 121 void SetSurfaceVisible(bool visible) override; |
122 uint32 CreateStreamTexture(uint32 texture_id) override; | |
123 void SetLock(base::Lock* lock) override; | 122 void SetLock(base::Lock* lock) override; |
124 bool IsGpuChannelLost() override; | 123 bool IsGpuChannelLost() override; |
125 gpu::CommandBufferNamespace GetNamespaceID() const override; | 124 gpu::CommandBufferNamespace GetNamespaceID() const override; |
126 uint64_t GetCommandBufferID() const override; | 125 uint64_t GetCommandBufferID() const override; |
127 uint64_t GenerateFenceSyncRelease() override; | 126 uint64_t GenerateFenceSyncRelease() override; |
128 bool IsFenceSyncRelease(uint64_t release) override; | 127 bool IsFenceSyncRelease(uint64_t release) override; |
129 bool IsFenceSyncFlushed(uint64_t release) override; | 128 bool IsFenceSyncFlushed(uint64_t release) override; |
130 bool IsFenceSyncFlushReceived(uint64_t release) override; | 129 bool IsFenceSyncFlushReceived(uint64_t release) override; |
131 void SignalSyncToken(const gpu::SyncToken& sync_token, | 130 void SignalSyncToken(const gpu::SyncToken& sync_token, |
132 const base::Closure& callback) override; | 131 const base::Closure& callback) override; |
(...skipping 30 matching lines...) Expand all Loading... |
163 | 162 |
164 int32 route_id() const { return route_id_; } | 163 int32 route_id() const { return route_id_; } |
165 | 164 |
166 int32 stream_id() const { return stream_id_; } | 165 int32 stream_id() const { return stream_id_; } |
167 | 166 |
168 GpuChannelHost* channel() const { return channel_; } | 167 GpuChannelHost* channel() const { return channel_; } |
169 | 168 |
170 base::SharedMemoryHandle GetSharedStateHandle() const { | 169 base::SharedMemoryHandle GetSharedStateHandle() const { |
171 return shared_state_shm_->handle(); | 170 return shared_state_shm_->handle(); |
172 } | 171 } |
| 172 uint32 CreateStreamTexture(uint32 texture_id); |
173 | 173 |
174 private: | 174 private: |
175 typedef std::map<int32, scoped_refptr<gpu::Buffer> > TransferBufferMap; | 175 typedef std::map<int32, scoped_refptr<gpu::Buffer> > TransferBufferMap; |
176 typedef base::hash_map<uint32, base::Closure> SignalTaskMap; | 176 typedef base::hash_map<uint32, base::Closure> SignalTaskMap; |
177 | 177 |
178 void CheckLock() { | 178 void CheckLock() { |
179 if (lock_) | 179 if (lock_) |
180 lock_->AssertAcquired(); | 180 lock_->AssertAcquired(); |
181 } | 181 } |
182 | 182 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 SwapBuffersCompletionCallback swap_buffers_completion_callback_; | 253 SwapBuffersCompletionCallback swap_buffers_completion_callback_; |
254 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; | 254 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; |
255 | 255 |
256 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 256 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
257 }; | 257 }; |
258 | 258 |
259 } // namespace content | 259 } // namespace content |
260 | 260 |
261 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 261 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |