Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2824693002: Refactor LayerTreeImpl's scrollbar map to be keyed on element ids (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 // Prevents notifying the |client_| when an impl side invalidation request is 315 // Prevents notifying the |client_| when an impl side invalidation request is
316 // made. When unblocked, the disabled request will immediately be called. 316 // made. When unblocked, the disabled request will immediately be called.
317 virtual void BlockImplSideInvalidationRequestsForTesting(bool block); 317 virtual void BlockImplSideInvalidationRequestsForTesting(bool block);
318 318
319 // Resets all of the trees to an empty state. 319 // Resets all of the trees to an empty state.
320 void ResetTreesForTesting(); 320 void ResetTreesForTesting();
321 321
322 size_t SourceAnimationFrameNumberForTesting() const; 322 size_t SourceAnimationFrameNumberForTesting() const;
323 323
324 void RegisterScrollbarAnimationController(int scroll_layer_id, 324 void RegisterScrollbarAnimationController(ElementId scroll_element_id);
325 ElementId scroll_element_id);
326 void UnregisterScrollbarAnimationController(ElementId scroll_element_id); 325 void UnregisterScrollbarAnimationController(ElementId scroll_element_id);
327 ScrollbarAnimationController* ScrollbarAnimationControllerForElementId( 326 ScrollbarAnimationController* ScrollbarAnimationControllerForElementId(
328 ElementId scroll_element_id) const; 327 ElementId scroll_element_id) const;
329 328
330 DrawMode GetDrawMode() const; 329 DrawMode GetDrawMode() const;
331 330
332 // Viewport size in draw space: this size is in physical pixels and is used 331 // Viewport size in draw space: this size is in physical pixels and is used
333 // for draw properties, tilings, quads and render passes. 332 // for draw properties, tilings, quads and render passes.
334 gfx::Size DrawViewportSize() const; 333 gfx::Size DrawViewportSize() const;
335 334
(...skipping 12 matching lines...) Expand all
348 TreePriority tree_priority) override; 347 TreePriority tree_priority) override;
349 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; 348 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override;
350 gfx::ColorSpace GetRasterColorSpace() const override; 349 gfx::ColorSpace GetRasterColorSpace() const override;
351 void RequestImplSideInvalidation() override; 350 void RequestImplSideInvalidation() override;
352 351
353 // ScrollbarAnimationControllerClient implementation. 352 // ScrollbarAnimationControllerClient implementation.
354 void PostDelayedScrollbarAnimationTask(const base::Closure& task, 353 void PostDelayedScrollbarAnimationTask(const base::Closure& task,
355 base::TimeDelta delay) override; 354 base::TimeDelta delay) override;
356 void SetNeedsAnimateForScrollbarAnimation() override; 355 void SetNeedsAnimateForScrollbarAnimation() override;
357 void SetNeedsRedrawForScrollbarAnimation() override; 356 void SetNeedsRedrawForScrollbarAnimation() override;
358 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override; 357 ScrollbarSet ScrollbarsFor(ElementId scroll_element_id) const override;
359 void DidChangeScrollbarVisibility() override; 358 void DidChangeScrollbarVisibility() override;
360 359
361 // VideoBeginFrameSource implementation. 360 // VideoBeginFrameSource implementation.
362 void AddVideoFrameController(VideoFrameController* controller) override; 361 void AddVideoFrameController(VideoFrameController* controller) override;
363 void RemoveVideoFrameController(VideoFrameController* controller) override; 362 void RemoveVideoFrameController(VideoFrameController* controller) override;
364 363
365 // CompositorFrameSinkClient implementation. 364 // CompositorFrameSinkClient implementation.
366 void SetBeginFrameSource(BeginFrameSource* source) override; 365 void SetBeginFrameSource(BeginFrameSource* source) override;
367 void SetExternalTilePriorityConstraints( 366 void SetExternalTilePriorityConstraints(
368 const gfx::Rect& viewport_rect, 367 const gfx::Rect& viewport_rect,
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 bool has_scrolled_by_touch_; 869 bool has_scrolled_by_touch_;
871 870
872 bool touchpad_and_wheel_scroll_latching_enabled_; 871 bool touchpad_and_wheel_scroll_latching_enabled_;
873 872
874 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 873 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
875 }; 874 };
876 875
877 } // namespace cc 876 } // namespace cc
878 877
879 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 878 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698