| OLD | NEW |
| 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/cancelable_callback.h" | 12 #include "base/cancelable_callback.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
| 18 #include "cc/surfaces/frame_sink_id.h" | 18 #include "cc/surfaces/frame_sink_id.h" |
| 19 #include "cc/trees/layer_tree_host_client.h" | 19 #include "cc/trees/layer_tree_host_client.h" |
| 20 #include "cc/trees/layer_tree_host_single_thread_client.h" | 20 #include "cc/trees/layer_tree_host_single_thread_client.h" |
| 21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 22 #include "content/common/gpu/client/context_provider_command_buffer.h" | |
| 23 #include "content/public/browser/android/compositor.h" | 22 #include "content/public/browser/android/compositor.h" |
| 24 #include "gpu/command_buffer/common/capabilities.h" | 23 #include "gpu/command_buffer/common/capabilities.h" |
| 25 #include "gpu/ipc/common/surface_handle.h" | 24 #include "gpu/ipc/common/surface_handle.h" |
| 25 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" |
| 26 #include "third_party/khronos/GLES2/gl2.h" | 26 #include "third_party/khronos/GLES2/gl2.h" |
| 27 #include "ui/android/context_provider_factory.h" | 27 #include "ui/android/context_provider_factory.h" |
| 28 #include "ui/android/resources/resource_manager_impl.h" | 28 #include "ui/android/resources/resource_manager_impl.h" |
| 29 #include "ui/android/resources/ui_resource_provider.h" | 29 #include "ui/android/resources/ui_resource_provider.h" |
| 30 #include "ui/android/window_android_compositor.h" | 30 #include "ui/android/window_android_compositor.h" |
| 31 | 31 |
| 32 struct ANativeWindow; | 32 struct ANativeWindow; |
| 33 | 33 |
| 34 namespace cc { | 34 namespace cc { |
| 35 class AnimationHost; | 35 class AnimationHost; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 gpu::Capabilities gpu_capabilities_; | 184 gpu::Capabilities gpu_capabilities_; |
| 185 bool needs_begin_frames_; | 185 bool needs_begin_frames_; |
| 186 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 186 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 188 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace content | 191 } // namespace content |
| 192 | 192 |
| 193 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 193 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |