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" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 void OnGpuChannelEstablished(); | 150 void OnGpuChannelEstablished(); |
151 void OnGpuChannelTimeout(); | 151 void OnGpuChannelTimeout(); |
152 | 152 |
153 // root_layer_ is the persistent internal root layer, while subroot_layer_ | 153 // root_layer_ is the persistent internal root layer, while subroot_layer_ |
154 // is the one attached by the compositor client. | 154 // is the one attached by the compositor client. |
155 scoped_refptr<cc::Layer> root_layer_; | 155 scoped_refptr<cc::Layer> root_layer_; |
156 scoped_refptr<cc::Layer> subroot_layer_; | 156 scoped_refptr<cc::Layer> subroot_layer_; |
157 | 157 |
158 scoped_ptr<cc::LayerTreeHost> host_; | 158 scoped_ptr<cc::LayerTreeHost> host_; |
159 ui::UIResourceProvider ui_resource_provider_; | 159 scoped_ptr<ui::UIResourceProvider> ui_resource_provider_; |
160 ui::ResourceManagerImpl resource_manager_; | 160 scoped_ptr<ui::ResourceManagerImpl> resource_manager_; |
161 | 161 |
162 scoped_ptr<cc::OnscreenDisplayClient> display_client_; | 162 scoped_ptr<cc::OnscreenDisplayClient> display_client_; |
163 scoped_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 163 scoped_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
164 | 164 |
165 gfx::Size size_; | 165 gfx::Size size_; |
166 bool has_transparent_background_; | 166 bool has_transparent_background_; |
167 float device_scale_factor_; | 167 float device_scale_factor_; |
168 | 168 |
169 ANativeWindow* window_; | 169 ANativeWindow* window_; |
170 int surface_id_; | 170 int surface_id_; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 base::ObserverList<VSyncObserver, true> observer_list_; | 216 base::ObserverList<VSyncObserver, true> observer_list_; |
217 | 217 |
218 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 218 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 220 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
221 }; | 221 }; |
222 | 222 |
223 } // namespace content | 223 } // namespace content |
224 | 224 |
225 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 225 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |