| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_GLES2_COMMAND_BUFFER_LOCAL_H_ | 5 #ifndef SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 6 #define SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_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 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/threading/non_thread_safe.h" | 17 #include "base/threading/non_thread_safe.h" |
| 18 #include "components/mus/gles2/command_buffer_driver.h" | |
| 19 #include "components/mus/public/interfaces/command_buffer.mojom.h" | |
| 20 #include "gpu/command_buffer/client/gpu_control.h" | 18 #include "gpu/command_buffer/client/gpu_control.h" |
| 21 #include "gpu/command_buffer/common/command_buffer.h" | 19 #include "gpu/command_buffer/common/command_buffer.h" |
| 22 #include "gpu/command_buffer/common/command_buffer_id.h" | 20 #include "gpu/command_buffer/common/command_buffer_id.h" |
| 23 #include "gpu/command_buffer/common/command_buffer_shared.h" | 21 #include "gpu/command_buffer/common/command_buffer_shared.h" |
| 22 #include "services/ui/gles2/command_buffer_driver.h" |
| 23 #include "services/ui/public/interfaces/command_buffer.mojom.h" |
| 24 #include "ui/gfx/geometry/size.h" | 24 #include "ui/gfx/geometry/size.h" |
| 25 #include "ui/gfx/gpu_memory_buffer.h" | 25 #include "ui/gfx/gpu_memory_buffer.h" |
| 26 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 class WaitableEvent; | 29 class WaitableEvent; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace gl { | 32 namespace gl { |
| 33 class GLContext; | 33 class GLContext; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 // This weak factory will be invalidated in the client thread, so all weak | 176 // This weak factory will be invalidated in the client thread, so all weak |
| 177 // pointers have to be dereferenced in the client thread too. | 177 // pointers have to be dereferenced in the client thread too. |
| 178 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 178 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
| 179 | 179 |
| 180 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 180 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // namespace mus | 183 } // namespace mus |
| 184 | 184 |
| 185 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 185 #endif // SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| OLD | NEW |