OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_GPU_CONTROL_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "gpu/command_buffer/common/capabilities.h" | 15 #include "gpu/command_buffer/common/capabilities.h" |
16 #include "gpu/command_buffer/common/command_buffer_id.h" | 16 #include "gpu/command_buffer/common/command_buffer_id.h" |
17 #include "gpu/command_buffer/common/constants.h" | 17 #include "gpu/command_buffer/common/constants.h" |
18 #include "gpu/command_buffer/common/mailbox.h" | 18 #include "gpu/command_buffer/common/mailbox.h" |
19 #include "gpu/gpu_export.h" | 19 #include "gpu/gpu_export.h" |
20 | 20 |
21 extern "C" typedef struct _ClientBuffer* ClientBuffer; | 21 extern "C" typedef struct _ClientBuffer* ClientBuffer; |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class Lock; | 24 class Lock; |
25 } | 25 } |
26 | 26 |
27 namespace gfx { | |
28 class GpuMemoryBuffer; | |
29 } | |
30 | |
31 namespace gpu { | 27 namespace gpu { |
32 class GpuControlClient; | 28 class GpuControlClient; |
33 struct SyncToken; | 29 struct SyncToken; |
34 | 30 |
35 // Common interface for GpuControl implementations. | 31 // Common interface for GpuControl implementations. |
36 class GPU_EXPORT GpuControl { | 32 class GPU_EXPORT GpuControl { |
37 public: | 33 public: |
38 GpuControl() {} | 34 GpuControl() {} |
39 virtual ~GpuControl() {} | 35 virtual ~GpuControl() {} |
40 | 36 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // be enqueued first so does not need to be flushed. | 104 // be enqueued first so does not need to be flushed. |
109 virtual bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) = 0; | 105 virtual bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) = 0; |
110 | 106 |
111 private: | 107 private: |
112 DISALLOW_COPY_AND_ASSIGN(GpuControl); | 108 DISALLOW_COPY_AND_ASSIGN(GpuControl); |
113 }; | 109 }; |
114 | 110 |
115 } // namespace gpu | 111 } // namespace gpu |
116 | 112 |
117 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ | 113 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ |
OLD | NEW |