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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/cancelable_callback.h" | 9 #include "base/cancelable_callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/observer_list.h" |
| 14 #include "cc/output/begin_frame_args.h" |
| 15 #include "cc/resources/ui_resource_client.h" |
13 #include "cc/trees/layer_tree_host_client.h" | 16 #include "cc/trees/layer_tree_host_client.h" |
14 #include "cc/trees/layer_tree_host_single_thread_client.h" | 17 #include "cc/trees/layer_tree_host_single_thread_client.h" |
15 #include "content/browser/android/ui_resource_provider_impl.h" | 18 #include "content/browser/android/ui_resource_provider_impl.h" |
16 #include "content/browser/renderer_host/image_transport_factory_android.h" | 19 #include "content/browser/renderer_host/image_transport_factory_android.h" |
17 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
18 #include "content/common/gpu/client/context_provider_command_buffer.h" | 21 #include "content/common/gpu/client/context_provider_command_buffer.h" |
19 #include "content/public/browser/android/compositor.h" | 22 #include "content/public/browser/android/compositor.h" |
20 #include "gpu/command_buffer/common/capabilities.h" | 23 #include "gpu/command_buffer/common/capabilities.h" |
21 #include "third_party/khronos/GLES2/gl2.h" | 24 #include "third_party/khronos/GLES2/gl2.h" |
22 #include "ui/base/android/system_ui_resource_manager.h" | 25 #include "ui/base/android/system_ui_resource_manager.h" |
23 #include "ui/base/android/window_android_compositor.h" | 26 #include "ui/base/android/window_android_compositor.h" |
| 27 #include "ui/base/compositor/compositor_begin_frame_observer.h" |
24 | 28 |
25 class SkBitmap; | 29 class SkBitmap; |
26 struct ANativeWindow; | 30 struct ANativeWindow; |
27 | 31 |
28 namespace cc { | 32 namespace cc { |
29 class Layer; | 33 class Layer; |
30 class LayerTreeHost; | 34 class LayerTreeHost; |
31 } | 35 } |
32 | 36 |
33 namespace content { | 37 namespace content { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 base::TimeTicks last_vsync_; | 187 base::TimeTicks last_vsync_; |
184 | 188 |
185 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 189 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
186 | 190 |
187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 191 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
188 }; | 192 }; |
189 | 193 |
190 } // namespace content | 194 } // namespace content |
191 | 195 |
192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 196 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |