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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 uint32 InsertSyncPoint() override; | 121 uint32 InsertSyncPoint() override; |
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 SetLock(base::Lock*) override; | 127 void SetLock(base::Lock*) override; |
128 bool IsGpuChannelLost() override; | 128 bool IsGpuChannelLost() override; |
129 CommandBufferNamespace GetNamespaceID() const override; | 129 CommandBufferNamespace GetNamespaceID() const override; |
130 uint64_t GetCommandBufferID() const override; | 130 uint64_t GetCommandBufferID() const override; |
| 131 int32_t GetExtraCommandBufferData() const override; |
131 uint64_t GenerateFenceSyncRelease() override; | 132 uint64_t GenerateFenceSyncRelease() override; |
132 bool IsFenceSyncRelease(uint64_t release) override; | 133 bool IsFenceSyncRelease(uint64_t release) override; |
133 bool IsFenceSyncFlushed(uint64_t release) override; | 134 bool IsFenceSyncFlushed(uint64_t release) override; |
134 bool IsFenceSyncFlushReceived(uint64_t release) override; | 135 bool IsFenceSyncFlushReceived(uint64_t release) override; |
135 void SignalSyncToken(const SyncToken& sync_token, | 136 void SignalSyncToken(const SyncToken& sync_token, |
136 const base::Closure& callback) override; | 137 const base::Closure& callback) override; |
137 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override; | 138 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override; |
138 | 139 |
139 // The serializer interface to the GPU service (i.e. thread). | 140 // The serializer interface to the GPU service (i.e. thread). |
140 class Service { | 141 class Service { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 SyncPointManager* sync_point_manager_; // Non-owning. | 319 SyncPointManager* sync_point_manager_; // Non-owning. |
319 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 320 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
320 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> | 321 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> |
321 framebuffer_completeness_cache_; | 322 framebuffer_completeness_cache_; |
322 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 323 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
323 }; | 324 }; |
324 | 325 |
325 } // namespace gpu | 326 } // namespace gpu |
326 | 327 |
327 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 328 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |