| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 #include "cc/animation_events.h" | 11 #include "cc/animation_events.h" |
| 12 #include "cc/cc_export.h" | 12 #include "cc/cc_export.h" |
| 13 #include "cc/input_handler.h" | 13 #include "cc/input_handler.h" |
| 14 #include "cc/layer_sorter.h" | 14 #include "cc/layer_sorter.h" |
| 15 #include "cc/render_pass.h" | 15 #include "cc/render_pass.h" |
| 16 #include "cc/render_pass_sink.h" | 16 #include "cc/render_pass_sink.h" |
| 17 #include "cc/renderer.h" | 17 #include "cc/renderer.h" |
| 18 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
| 19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 20 #include <public/WebCompositorOutputSurfaceClient.h> | 20 #include <public/WebCompositorOutputSurfaceClient.h> |
| 21 | 21 |
| 22 namespace cc { | 22 namespace cc { |
| 23 | 23 |
| 24 class CompletionEvent; | 24 class CompletionEvent; |
| 25 class CompositorFrameMetadata; |
| 25 class DebugRectHistory; | 26 class DebugRectHistory; |
| 26 class FrameRateCounter; | 27 class FrameRateCounter; |
| 27 class HeadsUpDisplayLayerImpl; | 28 class HeadsUpDisplayLayerImpl; |
| 28 class LayerImpl; | 29 class LayerImpl; |
| 29 class LayerTreeHostImplTimeSourceAdapter; | 30 class LayerTreeHostImplTimeSourceAdapter; |
| 30 class PageScaleAnimation; | 31 class PageScaleAnimation; |
| 31 class RenderPassDrawQuad; | 32 class RenderPassDrawQuad; |
| 32 class ResourceProvider; | 33 class ResourceProvider; |
| 33 struct RendererCapabilities; | 34 struct RendererCapabilities; |
| 34 struct RenderingStats; | 35 struct RenderingStats; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 313 |
| 313 void sendDidLoseContextRecursive(LayerImpl*); | 314 void sendDidLoseContextRecursive(LayerImpl*); |
| 314 void clearRenderSurfaces(); | 315 void clearRenderSurfaces(); |
| 315 bool ensureRenderSurfaceLayerList(); | 316 bool ensureRenderSurfaceLayerList(); |
| 316 void clearCurrentlyScrollingLayer(); | 317 void clearCurrentlyScrollingLayer(); |
| 317 | 318 |
| 318 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); | 319 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); |
| 319 | 320 |
| 320 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; | 321 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; |
| 321 | 322 |
| 323 CompositorFrameMetadata makeCompositorFrameMetadata() const; |
| 324 |
| 322 scoped_ptr<GraphicsContext> m_context; | 325 scoped_ptr<GraphicsContext> m_context; |
| 323 scoped_ptr<ResourceProvider> m_resourceProvider; | 326 scoped_ptr<ResourceProvider> m_resourceProvider; |
| 324 scoped_ptr<Renderer> m_renderer; | 327 scoped_ptr<Renderer> m_renderer; |
| 325 scoped_ptr<LayerImpl> m_rootLayerImpl; | 328 scoped_ptr<LayerImpl> m_rootLayerImpl; |
| 326 LayerImpl* m_rootScrollLayerImpl; | 329 LayerImpl* m_rootScrollLayerImpl; |
| 327 LayerImpl* m_currentlyScrollingLayerImpl; | 330 LayerImpl* m_currentlyScrollingLayerImpl; |
| 328 HeadsUpDisplayLayerImpl* m_hudLayerImpl; | 331 HeadsUpDisplayLayerImpl* m_hudLayerImpl; |
| 329 int m_scrollingLayerIdFromPreviousTree; | 332 int m_scrollingLayerIdFromPreviousTree; |
| 330 bool m_scrollDeltaIsInViewportSpace; | 333 bool m_scrollDeltaIsInViewportSpace; |
| 331 LayerTreeSettings m_settings; | 334 LayerTreeSettings m_settings; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 362 | 365 |
| 363 size_t m_numImplThreadScrolls; | 366 size_t m_numImplThreadScrolls; |
| 364 size_t m_numMainThreadScrolls; | 367 size_t m_numMainThreadScrolls; |
| 365 | 368 |
| 366 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 369 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 367 }; | 370 }; |
| 368 | 371 |
| 369 } // namespace cc | 372 } // namespace cc |
| 370 | 373 |
| 371 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 374 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |