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

Side by Side Diff: gpu/ipc/service/gpu_command_buffer_stub.h

Issue 2763753002: gpu: Add callback for yielding command buffer execution. (Closed)
Patch Set: no need to !!pause Created 3 years, 8 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
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <deque> 11 #include <deque>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "gpu/command_buffer/common/command_buffer_id.h" 20 #include "gpu/command_buffer/common/command_buffer_id.h"
21 #include "gpu/command_buffer/common/constants.h" 21 #include "gpu/command_buffer/common/constants.h"
22 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 22 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
23 #include "gpu/command_buffer/service/command_buffer_service.h" 23 #include "gpu/command_buffer/service/command_buffer_service.h"
24 #include "gpu/command_buffer/service/command_executor.h"
25 #include "gpu/command_buffer/service/context_group.h" 24 #include "gpu/command_buffer/service/context_group.h"
26 #include "gpu/command_buffer/service/sequence_id.h" 25 #include "gpu/command_buffer/service/sequence_id.h"
27 #include "gpu/gpu_export.h" 26 #include "gpu/gpu_export.h"
28 #include "gpu/ipc/common/surface_handle.h" 27 #include "gpu/ipc/common/surface_handle.h"
29 #include "gpu/ipc/service/gpu_memory_manager.h" 28 #include "gpu/ipc/service/gpu_memory_manager.h"
30 #include "gpu/ipc/service/image_transport_surface_delegate.h" 29 #include "gpu/ipc/service/image_transport_surface_delegate.h"
31 #include "ipc/ipc_listener.h" 30 #include "ipc/ipc_listener.h"
32 #include "ipc/ipc_sender.h" 31 #include "ipc/ipc_sender.h"
33 #include "ui/events/latency_info.h" 32 #include "ui/events/latency_info.h"
34 #include "ui/gfx/geometry/size.h" 33 #include "ui/gfx/geometry/size.h"
35 #include "ui/gfx/gpu_memory_buffer.h" 34 #include "ui/gfx/gpu_memory_buffer.h"
36 #include "ui/gfx/swap_result.h" 35 #include "ui/gfx/swap_result.h"
37 #include "ui/gl/gl_surface.h" 36 #include "ui/gl/gl_surface.h"
38 #include "ui/gl/gpu_preference.h" 37 #include "ui/gl/gpu_preference.h"
39 #include "url/gurl.h" 38 #include "url/gurl.h"
40 39
40 struct GPUCreateCommandBufferConfig;
41 struct GpuCommandBufferMsg_CreateImage_Params;
42
41 namespace gl { 43 namespace gl {
42 class GLShareGroup; 44 class GLShareGroup;
43 } 45 }
44 46
45 namespace gpu { 47 namespace gpu {
46 struct Mailbox; 48 struct Mailbox;
47 struct SyncToken; 49 struct SyncToken;
50 struct WaitForCommandState;
51 class CommandExecutor;
52 class GpuChannel;
48 class SyncPointClientState; 53 class SyncPointClientState;
49 }
50
51 struct GPUCreateCommandBufferConfig;
52 struct GpuCommandBufferMsg_CreateImage_Params;
53
54 namespace gpu {
55
56 class GpuChannel;
57 struct WaitForCommandState;
58 54
59 class GPU_EXPORT GpuCommandBufferStub 55 class GPU_EXPORT GpuCommandBufferStub
60 : public IPC::Listener, 56 : public IPC::Listener,
61 public IPC::Sender, 57 public IPC::Sender,
62 public ImageTransportSurfaceDelegate, 58 public ImageTransportSurfaceDelegate,
63 public base::SupportsWeakPtr<GpuCommandBufferStub> { 59 public base::SupportsWeakPtr<GpuCommandBufferStub> {
64 public: 60 public:
65 class DestructionObserver { 61 class DestructionObserver {
66 public: 62 public:
67 // Called in Destroy(), before the context/surface are released. 63 // Called in Destroy(), before the context/surface are released.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 251
256 std::unique_ptr<WaitForCommandState> wait_for_token_; 252 std::unique_ptr<WaitForCommandState> wait_for_token_;
257 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; 253 std::unique_ptr<WaitForCommandState> wait_for_get_offset_;
258 254
259 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 255 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
260 }; 256 };
261 257
262 } // namespace gpu 258 } // namespace gpu
263 259
264 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 260 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698