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/containers/scoped_ptr_hash_map.h" | 11 #include "base/containers/scoped_ptr_hash_map.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "cc/resources/ui_resource_client.h" | 14 #include "cc/resources/ui_resource_client.h" |
15 #include "cc/trees/layer_tree_host_client.h" | 15 #include "cc/trees/layer_tree_host_client.h" |
16 #include "cc/trees/layer_tree_host_single_thread_client.h" | 16 #include "cc/trees/layer_tree_host_single_thread_client.h" |
17 #include "content/browser/android/ui_resource_provider_impl.h" | 17 #include "content/browser/android/ui_resource_provider_impl.h" |
18 #include "content/browser/renderer_host/image_transport_factory_android.h" | 18 #include "content/browser/renderer_host/image_transport_factory_android.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/public/browser/android/compositor.h" | 20 #include "content/public/browser/android/compositor.h" |
21 #include "third_party/khronos/GLES2/gl2.h" | 21 #include "third_party/khronos/GLES2/gl2.h" |
22 #include "ui/base/android/window_android_compositor.h" | 22 #include "ui/base/android/window_android_compositor.h" |
23 | 23 |
24 class SkBitmap; | 24 class SkBitmap; |
25 struct ANativeWindow; | 25 struct ANativeWindow; |
26 | 26 |
27 namespace cc { | 27 namespace cc { |
28 class InputHandlerClient; | |
29 class Layer; | 28 class Layer; |
30 class LayerTreeHost; | 29 class LayerTreeHost; |
31 } | 30 } |
32 | 31 |
33 namespace content { | 32 namespace content { |
34 class CompositorClient; | 33 class CompositorClient; |
35 class GraphicsContext; | |
36 class UIResourceProvider; | 34 class UIResourceProvider; |
37 | 35 |
38 // ----------------------------------------------------------------------------- | 36 // ----------------------------------------------------------------------------- |
39 // Browser-side compositor that manages a tree of content and UI layers. | 37 // Browser-side compositor that manages a tree of content and UI layers. |
40 // ----------------------------------------------------------------------------- | 38 // ----------------------------------------------------------------------------- |
41 class CONTENT_EXPORT CompositorImpl | 39 class CONTENT_EXPORT CompositorImpl |
42 : public Compositor, | 40 : public Compositor, |
43 public cc::LayerTreeHostClient, | 41 public cc::LayerTreeHostClient, |
44 public cc::LayerTreeHostSingleThreadClient, | 42 public cc::LayerTreeHostSingleThreadClient, |
45 public ImageTransportFactoryAndroidObserver, | 43 public ImageTransportFactoryAndroidObserver, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 base::TimeTicks last_vsync_; | 178 base::TimeTicks last_vsync_; |
181 | 179 |
182 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 180 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
183 | 181 |
184 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 182 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
185 }; | 183 }; |
186 | 184 |
187 } // namespace content | 185 } // namespace content |
188 | 186 |
189 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 187 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |