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

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

Issue 1680613002: Adding momentum/overscroll to views:: ScrollViews Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Tableview layout. aaaand I think we are done Created 4 years, 4 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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class LayerExternalScrollOffsetListener; 42 class LayerExternalScrollOffsetListener;
43 class LayerTreeDebugState; 43 class LayerTreeDebugState;
44 class LayerTreeImpl; 44 class LayerTreeImpl;
45 class LayerTreeSettings; 45 class LayerTreeSettings;
46 class MemoryHistory; 46 class MemoryHistory;
47 class OutputSurface; 47 class OutputSurface;
48 class PageScaleAnimation; 48 class PageScaleAnimation;
49 class PictureLayerImpl; 49 class PictureLayerImpl;
50 class TaskRunnerProvider; 50 class TaskRunnerProvider;
51 class ResourceProvider; 51 class ResourceProvider;
52 class ScrollElasticityHelper;
52 class TileManager; 53 class TileManager;
53 class UIResourceRequest; 54 class UIResourceRequest;
54 class VideoFrameControllerClient; 55 class VideoFrameControllerClient;
55 struct PendingPageScaleAnimation; 56 struct PendingPageScaleAnimation;
56 struct RendererCapabilities; 57 struct RendererCapabilities;
57 58
58 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; 59 typedef std::vector<UIResourceRequest> UIResourceRequestQueue;
59 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; 60 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls;
60 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; 61 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll;
61 62
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 LayerImpl* FindActiveTreeLayerById(int id); 101 LayerImpl* FindActiveTreeLayerById(int id);
101 LayerImpl* FindPendingTreeLayerById(int id); 102 LayerImpl* FindPendingTreeLayerById(int id);
102 bool PinchGestureActive() const; 103 bool PinchGestureActive() const;
103 BeginFrameArgs CurrentBeginFrameArgs() const; 104 BeginFrameArgs CurrentBeginFrameArgs() const;
104 base::TimeDelta CurrentBeginFrameInterval() const; 105 base::TimeDelta CurrentBeginFrameInterval() const;
105 gfx::Rect DeviceViewport() const; 106 gfx::Rect DeviceViewport() const;
106 gfx::Size DrawViewportSize() const; 107 gfx::Size DrawViewportSize() const;
107 const gfx::Rect ViewportRectForTilePriority() const; 108 const gfx::Rect ViewportRectForTilePriority() const;
108 std::unique_ptr<ScrollbarAnimationController> 109 std::unique_ptr<ScrollbarAnimationController>
109 CreateScrollbarAnimationController(int scroll_layer_id); 110 CreateScrollbarAnimationController(int scroll_layer_id);
111 std::unique_ptr<ScrollElasticityHelper> CreateScrollElasticityHelper(
112 int scroll_layer_id);
110 void DidAnimateScrollOffset(); 113 void DidAnimateScrollOffset();
111 bool use_gpu_rasterization() const; 114 bool use_gpu_rasterization() const;
112 GpuRasterizationStatus GetGpuRasterizationStatus() const; 115 GpuRasterizationStatus GetGpuRasterizationStatus() const;
113 bool create_low_res_tiling() const; 116 bool create_low_res_tiling() const;
114 bool RequiresHighResToDraw() const; 117 bool RequiresHighResToDraw() const;
115 bool SmoothnessTakesPriority() const; 118 bool SmoothnessTakesPriority() const;
116 VideoFrameControllerClient* GetVideoFrameControllerClient() const; 119 VideoFrameControllerClient* GetVideoFrameControllerClient() const;
117 AnimationHost* animation_host() const { 120 AnimationHost* animation_host() const {
118 return layer_tree_host_impl_->animation_host(); 121 return layer_tree_host_impl_->animation_host();
119 } 122 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool has_transparent_background() const { 210 bool has_transparent_background() const {
208 return has_transparent_background_; 211 return has_transparent_background_;
209 } 212 }
210 void set_has_transparent_background(bool transparent) { 213 void set_has_transparent_background(bool transparent) {
211 has_transparent_background_ = transparent; 214 has_transparent_background_ = transparent;
212 } 215 }
213 216
214 void UpdatePropertyTreeScrollingAndAnimationFromMainThread(); 217 void UpdatePropertyTreeScrollingAndAnimationFromMainThread();
215 void UpdatePropertyTreeScrollOffset(PropertyTrees* property_trees) { 218 void UpdatePropertyTreeScrollOffset(PropertyTrees* property_trees) {
216 property_trees_.scroll_tree.UpdateScrollOffsetMap( 219 property_trees_.scroll_tree.UpdateScrollOffsetMap(
217 &property_trees->scroll_tree.scroll_offset_map(), this); 220 &property_trees->scroll_tree, this);
218 } 221 }
219 void SetPageScaleOnActiveTree(float active_page_scale); 222 void SetPageScaleOnActiveTree(float active_page_scale);
220 void PushPageScaleFromMainThread(float page_scale_factor, 223 void PushPageScaleFromMainThread(float page_scale_factor,
221 float min_page_scale_factor, 224 float min_page_scale_factor,
222 float max_page_scale_factor); 225 float max_page_scale_factor);
223 float current_page_scale_factor() const { 226 float current_page_scale_factor() const {
224 return page_scale_factor()->Current(IsActiveTree()); 227 return page_scale_factor()->Current(IsActiveTree());
225 } 228 }
226 float min_page_scale_factor() const { return min_page_scale_factor_; } 229 float min_page_scale_factor() const { return min_page_scale_factor_; }
227 float max_page_scale_factor() const { return max_page_scale_factor_; } 230 float max_page_scale_factor() const { return max_page_scale_factor_; }
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 563
561 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 564 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
562 565
563 private: 566 private:
564 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 567 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
565 }; 568 };
566 569
567 } // namespace cc 570 } // namespace cc
568 571
569 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 572 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698