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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 months 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void SetGpuControlClient(GpuControlClient*) override; 115 void SetGpuControlClient(GpuControlClient*) override;
116 gpu::Capabilities GetCapabilities() override; 116 gpu::Capabilities GetCapabilities() override;
117 int32_t CreateImage(ClientBuffer buffer, 117 int32_t CreateImage(ClientBuffer buffer,
118 size_t width, 118 size_t width,
119 size_t height, 119 size_t height,
120 unsigned internalformat) override; 120 unsigned internalformat) override;
121 void DestroyImage(int32_t id) override; 121 void DestroyImage(int32_t id) override;
122 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; 122 void SignalQuery(uint32_t query_id, const base::Closure& callback) override;
123 void SetLock(base::Lock*) override; 123 void SetLock(base::Lock*) override;
124 void EnsureWorkVisible() override; 124 void EnsureWorkVisible() override;
125 void EnsureWorkVisibleAsync() override;
125 CommandBufferNamespace GetNamespaceID() const override; 126 CommandBufferNamespace GetNamespaceID() const override;
126 CommandBufferId GetCommandBufferID() const override; 127 CommandBufferId GetCommandBufferID() const override;
127 int32_t GetExtraCommandBufferData() const override; 128 int32_t GetExtraCommandBufferData() const override;
128 uint64_t GenerateFenceSyncRelease() override; 129 uint64_t GenerateFenceSyncRelease() override;
129 bool IsFenceSyncRelease(uint64_t release) override; 130 bool IsFenceSyncRelease(uint64_t release) override;
130 bool IsFenceSyncFlushed(uint64_t release) override; 131 bool IsFenceSyncFlushed(uint64_t release) override;
131 bool IsFenceSyncFlushReceived(uint64_t release) override; 132 bool IsFenceSyncFlushReceived(uint64_t release) override;
132 bool IsFenceSyncReleased(uint64_t release) override; 133 bool IsFenceSyncReleased(uint64_t release) override;
133 void SignalSyncToken(const SyncToken& sync_token, 134 void SignalSyncToken(const SyncToken& sync_token,
134 const base::Closure& callback) override; 135 const base::Closure& callback) override;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 343 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
343 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; 344 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_;
344 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 345 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
345 346
346 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 347 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
347 }; 348 };
348 349
349 } // namespace gpu 350 } // namespace gpu
350 351
351 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 352 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698