| 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_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // excludes the URL bar and non-overlay scrollbars and is in DIP (and | 225 // excludes the URL bar and non-overlay scrollbars and is in DIP (and |
| 226 // invariant relative to page scale). | 226 // invariant relative to page scale). |
| 227 gfx::SizeF UnscaledScrollableViewportSize() const; | 227 gfx::SizeF UnscaledScrollableViewportSize() const; |
| 228 float VerticalAdjust() const; | 228 float VerticalAdjust() const; |
| 229 | 229 |
| 230 // RendererClient implementation. | 230 // RendererClient implementation. |
| 231 virtual void SetFullRootLayerDamage() OVERRIDE; | 231 virtual void SetFullRootLayerDamage() OVERRIDE; |
| 232 | 232 |
| 233 // TileManagerClient implementation. | 233 // TileManagerClient implementation. |
| 234 virtual void NotifyReadyToActivate() OVERRIDE; | 234 virtual void NotifyReadyToActivate() OVERRIDE; |
| 235 virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE; | 235 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; |
| 236 | 236 |
| 237 // ScrollbarAnimationControllerClient implementation. | 237 // ScrollbarAnimationControllerClient implementation. |
| 238 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, | 238 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, |
| 239 base::TimeDelta delay) OVERRIDE; | 239 base::TimeDelta delay) OVERRIDE; |
| 240 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; | 240 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; |
| 241 | 241 |
| 242 // OutputSurfaceClient implementation. | 242 // OutputSurfaceClient implementation. |
| 243 virtual void DeferredInitialize() OVERRIDE; | 243 virtual void DeferredInitialize() OVERRIDE; |
| 244 virtual void ReleaseGL() OVERRIDE; | 244 virtual void ReleaseGL() OVERRIDE; |
| 245 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 245 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 Proxy* proxy_; | 481 Proxy* proxy_; |
| 482 | 482 |
| 483 private: | 483 private: |
| 484 void CreateAndSetRenderer( | 484 void CreateAndSetRenderer( |
| 485 OutputSurface* output_surface, | 485 OutputSurface* output_surface, |
| 486 ResourceProvider* resource_provider, | 486 ResourceProvider* resource_provider, |
| 487 bool skip_gl_renderer); | 487 bool skip_gl_renderer); |
| 488 void CreateAndSetTileManager(ResourceProvider* resource_provider, | 488 void CreateAndSetTileManager(ResourceProvider* resource_provider, |
| 489 ContextProvider* context_provider, | 489 ContextProvider* context_provider, |
| 490 bool use_zero_copy, | 490 bool use_zero_copy, |
| 491 bool use_one_copy, | 491 bool use_one_copy); |
| 492 bool allow_rasterize_on_demand); | |
| 493 void ReleaseTreeResources(); | 492 void ReleaseTreeResources(); |
| 494 void EnforceZeroBudget(bool zero_budget); | 493 void EnforceZeroBudget(bool zero_budget); |
| 495 | 494 |
| 496 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 495 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
| 497 void AnimatePageScale(base::TimeTicks monotonic_time); | 496 void AnimatePageScale(base::TimeTicks monotonic_time); |
| 498 void AnimateScrollbars(base::TimeTicks monotonic_time); | 497 void AnimateScrollbars(base::TimeTicks monotonic_time); |
| 499 void AnimateTopControls(base::TimeTicks monotonic_time); | 498 void AnimateTopControls(base::TimeTicks monotonic_time); |
| 500 | 499 |
| 501 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 500 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
| 502 LayerImpl* layer_impl, | 501 LayerImpl* layer_impl, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 678 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 680 | 679 |
| 681 size_t transfer_buffer_memory_limit_; | 680 size_t transfer_buffer_memory_limit_; |
| 682 | 681 |
| 683 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 682 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 684 }; | 683 }; |
| 685 | 684 |
| 686 } // namespace cc | 685 } // namespace cc |
| 687 | 686 |
| 688 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 687 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |