| 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 19 matching lines...) Expand all Loading... |
| 30 namespace base { | 30 namespace base { |
| 31 class MessageLoopProxy; | 31 class MessageLoopProxy; |
| 32 class RunLoop; | 32 class RunLoop; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace cc { | 35 namespace cc { |
| 36 class ContextProvider; | 36 class ContextProvider; |
| 37 class Layer; | 37 class Layer; |
| 38 class LayerTreeDebugState; | 38 class LayerTreeDebugState; |
| 39 class LayerTreeHost; | 39 class LayerTreeHost; |
| 40 class RendererSettings; |
| 40 class SharedBitmapManager; | 41 class SharedBitmapManager; |
| 41 class SurfaceIdAllocator; | 42 class SurfaceIdAllocator; |
| 42 } | 43 } |
| 43 | 44 |
| 44 namespace gfx { | 45 namespace gfx { |
| 45 class Rect; | 46 class Rect; |
| 46 class Size; | 47 class Size; |
| 47 } | 48 } |
| 48 | 49 |
| 49 namespace gpu { | 50 namespace gpu { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 void DidPostSwapBuffers() override; | 264 void DidPostSwapBuffers() override; |
| 264 void DidAbortSwapBuffers() override; | 265 void DidAbortSwapBuffers() override; |
| 265 | 266 |
| 266 int last_started_frame() { return last_started_frame_; } | 267 int last_started_frame() { return last_started_frame_; } |
| 267 int last_ended_frame() { return last_ended_frame_; } | 268 int last_ended_frame() { return last_ended_frame_; } |
| 268 | 269 |
| 269 bool IsLocked() { return compositor_lock_ != NULL; } | 270 bool IsLocked() { return compositor_lock_ != NULL; } |
| 270 | 271 |
| 271 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; | 272 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; |
| 272 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); | 273 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); |
| 274 const cc::RendererSettings& GetRendererSettings() const; |
| 273 | 275 |
| 274 LayerAnimatorCollection* layer_animator_collection() { | 276 LayerAnimatorCollection* layer_animator_collection() { |
| 275 return &layer_animator_collection_; | 277 return &layer_animator_collection_; |
| 276 } | 278 } |
| 277 | 279 |
| 278 cc::SurfaceIdAllocator* surface_id_allocator() { | 280 cc::SurfaceIdAllocator* surface_id_allocator() { |
| 279 return surface_id_allocator_.get(); | 281 return surface_id_allocator_.get(); |
| 280 } | 282 } |
| 281 | 283 |
| 282 private: | 284 private: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 LayerAnimatorCollection layer_animator_collection_; | 337 LayerAnimatorCollection layer_animator_collection_; |
| 336 | 338 |
| 337 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 339 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 338 | 340 |
| 339 DISALLOW_COPY_AND_ASSIGN(Compositor); | 341 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 340 }; | 342 }; |
| 341 | 343 |
| 342 } // namespace ui | 344 } // namespace ui |
| 343 | 345 |
| 344 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 346 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |