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 UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // Notifies the compositor that compositing is complete. | 306 // Notifies the compositor that compositing is complete. |
307 void NotifyEnd(); | 307 void NotifyEnd(); |
308 | 308 |
309 gfx::Size size_; | 309 gfx::Size size_; |
310 | 310 |
311 ui::ContextFactory* context_factory_; | 311 ui::ContextFactory* context_factory_; |
312 | 312 |
313 // The root of the Layer tree drawn by this compositor. | 313 // The root of the Layer tree drawn by this compositor. |
314 Layer* root_layer_; | 314 Layer* root_layer_; |
315 | 315 |
316 ObserverList<CompositorObserver> observer_list_; | 316 ObserverList<CompositorObserver, true> observer_list_; |
317 ObserverList<CompositorAnimationObserver> animation_observer_list_; | 317 ObserverList<CompositorAnimationObserver> animation_observer_list_; |
318 | 318 |
319 gfx::AcceleratedWidget widget_; | 319 gfx::AcceleratedWidget widget_; |
320 scoped_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 320 scoped_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
321 scoped_refptr<cc::Layer> root_web_layer_; | 321 scoped_refptr<cc::Layer> root_web_layer_; |
322 scoped_ptr<cc::LayerTreeHost> host_; | 322 scoped_ptr<cc::LayerTreeHost> host_; |
323 scoped_refptr<base::MessageLoopProxy> compositor_thread_loop_; | 323 scoped_refptr<base::MessageLoopProxy> compositor_thread_loop_; |
324 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 324 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
325 | 325 |
326 // The manager of vsync parameters for this compositor. | 326 // The manager of vsync parameters for this compositor. |
(...skipping 24 matching lines...) Expand all Loading... |
351 LayerAnimatorCollection layer_animator_collection_; | 351 LayerAnimatorCollection layer_animator_collection_; |
352 | 352 |
353 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 353 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
354 | 354 |
355 DISALLOW_COPY_AND_ASSIGN(Compositor); | 355 DISALLOW_COPY_AND_ASSIGN(Compositor); |
356 }; | 356 }; |
357 | 357 |
358 } // namespace ui | 358 } // namespace ui |
359 | 359 |
360 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 360 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |