Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: gpu/ipc/in_process_command_buffer.h

Issue 2383753002: gpu: Add GpuFence framework.
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 CommandBufferNamespace GetNamespaceID() const override; 122 CommandBufferNamespace GetNamespaceID() const override;
123 CommandBufferId GetCommandBufferID() const override; 123 CommandBufferId GetCommandBufferID() const override;
124 int32_t GetExtraCommandBufferData() const override; 124 int32_t GetExtraCommandBufferData() const override;
125 uint64_t GenerateFenceSyncRelease() override; 125 uint64_t GenerateFenceSyncRelease() override;
126 bool IsFenceSyncRelease(uint64_t release) override; 126 bool IsFenceSyncRelease(uint64_t release) override;
127 bool IsFenceSyncFlushed(uint64_t release) override; 127 bool IsFenceSyncFlushed(uint64_t release) override;
128 bool IsFenceSyncFlushReceived(uint64_t release) override; 128 bool IsFenceSyncFlushReceived(uint64_t release) override;
129 void SignalSyncToken(const SyncToken& sync_token, 129 void SignalSyncToken(const SyncToken& sync_token,
130 const base::Closure& callback) override; 130 const base::Closure& callback) override;
131 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override; 131 bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) override;
132 int32_t CreateFence(ClientFence fence) override;
133 void DestroyFence(int32_t id) override;
132 134
133 // The serializer interface to the GPU service (i.e. thread). 135 // The serializer interface to the GPU service (i.e. thread).
134 class Service { 136 class Service {
135 public: 137 public:
136 Service(); 138 Service();
137 Service(const gpu::GpuPreferences& gpu_preferences); 139 Service(const gpu::GpuPreferences& gpu_preferences);
138 virtual ~Service(); 140 virtual ~Service();
139 141
140 virtual void AddRef() const = 0; 142 virtual void AddRef() const = 0;
141 virtual void Release() const = 0; 143 virtual void Release() const = 0;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 SyncPointManager* sync_point_manager_; // Non-owning. 308 SyncPointManager* sync_point_manager_; // Non-owning.
307 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 309 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
308 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 310 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
309 framebuffer_completeness_cache_; 311 framebuffer_completeness_cache_;
310 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); 312 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread);
311 }; 313 };
312 314
313 } // namespace gpu 315 } // namespace gpu
314 316
315 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 317 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698