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/output_surface_client.h" | 14 #include "cc/output_surface_client.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 "cc/tile_manager.h" | 18 #include "cc/tile_manager.h" |
19 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.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 LayerImpl; | 28 class LayerImpl; |
28 class LayerTreeHostImplTimeSourceAdapter; | 29 class LayerTreeHostImplTimeSourceAdapter; |
29 class LayerTreeImpl; | 30 class LayerTreeImpl; |
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 164 |
164 // RendererClient implementation | 165 // RendererClient implementation |
165 virtual const gfx::Size& deviceViewportSize() const OVERRIDE; | 166 virtual const gfx::Size& deviceViewportSize() const OVERRIDE; |
166 virtual const LayerTreeSettings& settings() const OVERRIDE; | 167 virtual const LayerTreeSettings& settings() const OVERRIDE; |
167 virtual void didLoseOutputSurface() OVERRIDE; | 168 virtual void didLoseOutputSurface() OVERRIDE; |
168 virtual void onSwapBuffersComplete() OVERRIDE; | 169 virtual void onSwapBuffersComplete() OVERRIDE; |
169 virtual void setFullRootLayerDamage() OVERRIDE; | 170 virtual void setFullRootLayerDamage() OVERRIDE; |
170 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR
IDE; | 171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR
IDE; |
171 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O
VERRIDE; | 172 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O
VERRIDE; |
172 virtual bool hasImplThread() const OVERRIDE; | 173 virtual bool hasImplThread() const OVERRIDE; |
| 174 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const OVERRIDE
; |
173 | 175 |
174 // TileManagerClient implementation. | 176 // TileManagerClient implementation. |
175 virtual void ScheduleManageTiles() OVERRIDE; | 177 virtual void ScheduleManageTiles() OVERRIDE; |
176 virtual void ScheduleCheckForCompletedSetPixels() OVERRIDE; | 178 virtual void ScheduleCheckForCompletedSetPixels() OVERRIDE; |
177 | 179 |
178 // OutputSurfaceClient implementation. | 180 // OutputSurfaceClient implementation. |
179 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE; | 181 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE; |
180 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE
RRIDE; | 182 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE
RRIDE; |
181 | 183 |
182 // Called from LayerTreeImpl. | 184 // Called from LayerTreeImpl. |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 size_t m_lastSentMemoryVisibleBytes; | 400 size_t m_lastSentMemoryVisibleBytes; |
399 size_t m_lastSentMemoryVisibleAndNearbyBytes; | 401 size_t m_lastSentMemoryVisibleAndNearbyBytes; |
400 size_t m_lastSentMemoryUseBytes; | 402 size_t m_lastSentMemoryUseBytes; |
401 | 403 |
402 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 404 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
403 }; | 405 }; |
404 | 406 |
405 } // namespace cc | 407 } // namespace cc |
406 | 408 |
407 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 409 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |