| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 315 |
| 316 // Prevents notifying the |client_| when an impl side invalidation request is | 316 // Prevents notifying the |client_| when an impl side invalidation request is |
| 317 // made. When unblocked, the disabled request will immediately be called. | 317 // made. When unblocked, the disabled request will immediately be called. |
| 318 virtual void BlockImplSideInvalidationRequestsForTesting(bool block); | 318 virtual void BlockImplSideInvalidationRequestsForTesting(bool block); |
| 319 | 319 |
| 320 // Resets all of the trees to an empty state. | 320 // Resets all of the trees to an empty state. |
| 321 void ResetTreesForTesting(); | 321 void ResetTreesForTesting(); |
| 322 | 322 |
| 323 size_t SourceAnimationFrameNumberForTesting() const; | 323 size_t SourceAnimationFrameNumberForTesting() const; |
| 324 | 324 |
| 325 void RegisterScrollbarAnimationController(int scroll_layer_id, | 325 void RegisterScrollbarAnimationController(ElementId scroll_element_id); |
| 326 ElementId scroll_element_id); | |
| 327 void UnregisterScrollbarAnimationController(ElementId scroll_element_id); | 326 void UnregisterScrollbarAnimationController(ElementId scroll_element_id); |
| 328 ScrollbarAnimationController* ScrollbarAnimationControllerForElementId( | 327 ScrollbarAnimationController* ScrollbarAnimationControllerForElementId( |
| 329 ElementId scroll_element_id) const; | 328 ElementId scroll_element_id) const; |
| 330 | 329 |
| 331 DrawMode GetDrawMode() const; | 330 DrawMode GetDrawMode() const; |
| 332 | 331 |
| 333 // Viewport size in draw space: this size is in physical pixels and is used | 332 // Viewport size in draw space: this size is in physical pixels and is used |
| 334 // for draw properties, tilings, quads and render passes. | 333 // for draw properties, tilings, quads and render passes. |
| 335 gfx::Size DrawViewportSize() const; | 334 gfx::Size DrawViewportSize() const; |
| 336 | 335 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 349 TreePriority tree_priority) override; | 348 TreePriority tree_priority) override; |
| 350 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; | 349 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; |
| 351 gfx::ColorSpace GetRasterColorSpace() const override; | 350 gfx::ColorSpace GetRasterColorSpace() const override; |
| 352 void RequestImplSideInvalidation() override; | 351 void RequestImplSideInvalidation() override; |
| 353 | 352 |
| 354 // ScrollbarAnimationControllerClient implementation. | 353 // ScrollbarAnimationControllerClient implementation. |
| 355 void PostDelayedScrollbarAnimationTask(const base::Closure& task, | 354 void PostDelayedScrollbarAnimationTask(const base::Closure& task, |
| 356 base::TimeDelta delay) override; | 355 base::TimeDelta delay) override; |
| 357 void SetNeedsAnimateForScrollbarAnimation() override; | 356 void SetNeedsAnimateForScrollbarAnimation() override; |
| 358 void SetNeedsRedrawForScrollbarAnimation() override; | 357 void SetNeedsRedrawForScrollbarAnimation() override; |
| 359 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override; | 358 ScrollbarSet ScrollbarsFor(ElementId scroll_element_id) const override; |
| 360 void DidChangeScrollbarVisibility() override; | 359 void DidChangeScrollbarVisibility() override; |
| 361 | 360 |
| 362 // VideoBeginFrameSource implementation. | 361 // VideoBeginFrameSource implementation. |
| 363 void AddVideoFrameController(VideoFrameController* controller) override; | 362 void AddVideoFrameController(VideoFrameController* controller) override; |
| 364 void RemoveVideoFrameController(VideoFrameController* controller) override; | 363 void RemoveVideoFrameController(VideoFrameController* controller) override; |
| 365 | 364 |
| 366 // CompositorFrameSinkClient implementation. | 365 // CompositorFrameSinkClient implementation. |
| 367 void SetBeginFrameSource(BeginFrameSource* source) override; | 366 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 368 void SetExternalTilePriorityConstraints( | 367 void SetExternalTilePriorityConstraints( |
| 369 const gfx::Rect& viewport_rect, | 368 const gfx::Rect& viewport_rect, |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 bool has_scrolled_by_touch_; | 873 bool has_scrolled_by_touch_; |
| 875 | 874 |
| 876 bool touchpad_and_wheel_scroll_latching_enabled_; | 875 bool touchpad_and_wheel_scroll_latching_enabled_; |
| 877 | 876 |
| 878 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 877 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 879 }; | 878 }; |
| 880 | 879 |
| 881 } // namespace cc | 880 } // namespace cc |
| 882 | 881 |
| 883 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 882 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |