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 COMPONENTS_MUS_PUBLIC_CPP_LIB_COMMAND_BUFFER_CLIENT_IMPL_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_LIB_COMMAND_BUFFER_CLIENT_IMPL_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_COMMAND_BUFFER_CLIENT_IMPL_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_LIB_COMMAND_BUFFER_CLIENT_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 <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "components/mus/public/interfaces/command_buffer.mojom.h" | |
17 #include "gpu/command_buffer/client/gpu_control.h" | 16 #include "gpu/command_buffer/client/gpu_control.h" |
18 #include "gpu/command_buffer/common/command_buffer.h" | 17 #include "gpu/command_buffer/common/command_buffer.h" |
19 #include "gpu/command_buffer/common/command_buffer_id.h" | 18 #include "gpu/command_buffer/common/command_buffer_id.h" |
20 #include "gpu/command_buffer/common/command_buffer_shared.h" | 19 #include "gpu/command_buffer/common/command_buffer_shared.h" |
21 #include "mojo/public/cpp/bindings/binding.h" | 20 #include "mojo/public/cpp/bindings/binding.h" |
| 21 #include "services/ui/public/interfaces/command_buffer.mojom.h" |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class RunLoop; | 24 class RunLoop; |
25 } | 25 } |
26 | 26 |
27 namespace mus { | 27 namespace mus { |
28 class CommandBufferClientImpl; | 28 class CommandBufferClientImpl; |
29 | 29 |
30 class CommandBufferClientImpl : public mus::mojom::CommandBufferClient, | 30 class CommandBufferClientImpl : public mus::mojom::CommandBufferClient, |
31 public gpu::CommandBuffer, | 31 public gpu::CommandBuffer, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // Image IDs are allocated in sequence. | 108 // Image IDs are allocated in sequence. |
109 int next_image_id_; | 109 int next_image_id_; |
110 | 110 |
111 uint64_t next_fence_sync_release_; | 111 uint64_t next_fence_sync_release_; |
112 uint64_t flushed_fence_sync_release_; | 112 uint64_t flushed_fence_sync_release_; |
113 }; | 113 }; |
114 | 114 |
115 } // mus | 115 } // mus |
116 | 116 |
117 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_COMMAND_BUFFER_CLIENT_IMPL_H_ | 117 #endif // SERVICES_UI_PUBLIC_CPP_LIB_COMMAND_BUFFER_CLIENT_IMPL_H_ |
OLD | NEW |