OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 uint32 InsertFutureSyncPoint() override; | 122 uint32 InsertFutureSyncPoint() override; |
123 void RetireSyncPoint(uint32 sync_point) override; | 123 void RetireSyncPoint(uint32 sync_point) override; |
124 void SignalSyncPoint(uint32 sync_point, | 124 void SignalSyncPoint(uint32 sync_point, |
125 const base::Closure& callback) override; | 125 const base::Closure& callback) override; |
126 void SignalQuery(uint32 query_id, const base::Closure& callback) override; | 126 void SignalQuery(uint32 query_id, const base::Closure& callback) override; |
127 void SetSurfaceVisible(bool visible) override; | 127 void SetSurfaceVisible(bool visible) override; |
128 void SetLock(base::Lock*) override; | 128 void SetLock(base::Lock*) override; |
129 bool IsGpuChannelLost() override; | 129 bool IsGpuChannelLost() override; |
130 CommandBufferNamespace GetNamespaceID() const override; | 130 CommandBufferNamespace GetNamespaceID() const override; |
131 uint64_t GetCommandBufferID() const override; | 131 uint64_t GetCommandBufferID() const override; |
| 132 uint32_t GetExtraCommandBufferData() const override; |
132 uint64_t GenerateFenceSyncRelease() override; | 133 uint64_t GenerateFenceSyncRelease() override; |
133 bool IsFenceSyncRelease(uint64_t release) override; | 134 bool IsFenceSyncRelease(uint64_t release) override; |
134 bool IsFenceSyncFlushed(uint64_t release) override; | 135 bool IsFenceSyncFlushed(uint64_t release) override; |
135 bool IsFenceSyncFlushReceived(uint64_t release) override; | 136 bool IsFenceSyncFlushReceived(uint64_t release) override; |
136 void SignalSyncToken(const SyncToken& sync_token, | 137 void SignalSyncToken(const SyncToken& sync_token, |
137 const base::Closure& callback) override; | 138 const base::Closure& callback) override; |
138 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override; | 139 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override; |
139 | 140 |
140 // The serializer interface to the GPU service (i.e. thread). | 141 // The serializer interface to the GPU service (i.e. thread). |
141 class Service { | 142 class Service { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 SyncPointManager* sync_point_manager_; // Non-owning. | 320 SyncPointManager* sync_point_manager_; // Non-owning. |
320 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 321 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
321 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> | 322 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> |
322 framebuffer_completeness_cache_; | 323 framebuffer_completeness_cache_; |
323 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 324 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
324 }; | 325 }; |
325 | 326 |
326 } // namespace gpu | 327 } // namespace gpu |
327 | 328 |
328 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 329 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |