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

Side by Side Diff: gpu/ipc/client/command_buffer_proxy_impl.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 (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 GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <queue> 13 #include <queue>
14 #include <string> 14 #include <string>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/containers/hash_tables.h" 18 #include "base/containers/hash_tables.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/observer_list.h" 22 #include "base/observer_list.h"
23 #include "base/single_thread_task_runner.h" 23 #include "base/single_thread_task_runner.h"
24 #include "base/threading/thread_checker.h" 24 #include "base/threading/thread_checker.h"
25 #include "gpu/command_buffer/client/gpu_control.h" 25 #include "gpu/command_buffer/client/gpu_control.h"
26 #include "gpu/command_buffer/common/command_buffer.h" 26 #include "gpu/command_buffer/common/command_buffer.h"
27 #include "gpu/command_buffer/common/command_buffer_id.h" 27 #include "gpu/command_buffer/common/command_buffer_id.h"
28 #include "gpu/command_buffer/common/command_buffer_shared.h" 28 #include "gpu/command_buffer/common/command_buffer_shared.h"
29 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 29 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
30 #include "gpu/command_buffer/common/gpu_stream_constants.h"
30 #include "gpu/gpu_export.h" 31 #include "gpu/gpu_export.h"
31 #include "gpu/ipc/common/gpu_stream_constants.h"
32 #include "gpu/ipc/common/surface_handle.h" 32 #include "gpu/ipc/common/surface_handle.h"
33 #include "ipc/ipc_listener.h" 33 #include "ipc/ipc_listener.h"
34 #include "ui/gfx/swap_result.h" 34 #include "ui/gfx/swap_result.h"
35 #include "ui/gl/gpu_preference.h" 35 #include "ui/gl/gpu_preference.h"
36 #include "ui/latency/latency_info.h" 36 #include "ui/latency/latency_info.h"
37 37
38 struct GPUCommandBufferConsoleMessage; 38 struct GPUCommandBufferConsoleMessage;
39 struct GPUCreateCommandBufferConfig; 39 struct GPUCreateCommandBufferConfig;
40 struct GpuCommandBufferMsg_SwapBuffersCompleted_Params; 40 struct GpuCommandBufferMsg_SwapBuffersCompleted_Params;
41 class GURL; 41 class GURL;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void SetGpuControlClient(GpuControlClient* client) override; 108 void SetGpuControlClient(GpuControlClient* client) override;
109 gpu::Capabilities GetCapabilities() override; 109 gpu::Capabilities GetCapabilities() override;
110 int32_t CreateImage(ClientBuffer buffer, 110 int32_t CreateImage(ClientBuffer buffer,
111 size_t width, 111 size_t width,
112 size_t height, 112 size_t height,
113 unsigned internal_format) override; 113 unsigned internal_format) override;
114 void DestroyImage(int32_t id) override; 114 void DestroyImage(int32_t id) override;
115 void SignalQuery(uint32_t query, const base::Closure& callback) override; 115 void SignalQuery(uint32_t query, const base::Closure& callback) override;
116 void SetLock(base::Lock* lock) override; 116 void SetLock(base::Lock* lock) override;
117 void EnsureWorkVisible() override; 117 void EnsureWorkVisible() override;
118 void EnsureWorkVisibleAsync() override;
118 gpu::CommandBufferNamespace GetNamespaceID() const override; 119 gpu::CommandBufferNamespace GetNamespaceID() const override;
119 gpu::CommandBufferId GetCommandBufferID() const override; 120 gpu::CommandBufferId GetCommandBufferID() const override;
120 int32_t GetExtraCommandBufferData() const override; 121 int32_t GetExtraCommandBufferData() const override;
121 uint64_t GenerateFenceSyncRelease() override; 122 uint64_t GenerateFenceSyncRelease() override;
122 bool IsFenceSyncRelease(uint64_t release) override; 123 bool IsFenceSyncRelease(uint64_t release) override;
123 bool IsFenceSyncFlushed(uint64_t release) override; 124 bool IsFenceSyncFlushed(uint64_t release) override;
124 bool IsFenceSyncFlushReceived(uint64_t release) override; 125 bool IsFenceSyncFlushReceived(uint64_t release) override;
125 bool IsFenceSyncReleased(uint64_t release) override; 126 bool IsFenceSyncReleased(uint64_t release) override;
126 void SignalSyncToken(const gpu::SyncToken& sync_token, 127 void SignalSyncToken(const gpu::SyncToken& sync_token,
127 const base::Closure& callback) override; 128 const base::Closure& callback) override;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 296
296 base::WeakPtr<CommandBufferProxyImpl> weak_this_; 297 base::WeakPtr<CommandBufferProxyImpl> weak_this_;
297 scoped_refptr<base::SequencedTaskRunner> callback_thread_; 298 scoped_refptr<base::SequencedTaskRunner> callback_thread_;
298 299
299 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 300 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
300 }; 301 };
301 302
302 } // namespace gpu 303 } // namespace gpu
303 304
304 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 305 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698