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

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

Issue 1411663002: cc: Split Proxy to eliminate unnecessary dependencies on the impl side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 26 matching lines...) Expand all
37 class HeadsUpDisplayLayerImpl; 37 class HeadsUpDisplayLayerImpl;
38 class LayerExternalScrollOffsetListener; 38 class LayerExternalScrollOffsetListener;
39 class LayerScrollOffsetDelegate; 39 class LayerScrollOffsetDelegate;
40 class LayerTreeDebugState; 40 class LayerTreeDebugState;
41 class LayerTreeImpl; 41 class LayerTreeImpl;
42 class LayerTreeSettings; 42 class LayerTreeSettings;
43 class MemoryHistory; 43 class MemoryHistory;
44 class OutputSurface; 44 class OutputSurface;
45 class PageScaleAnimation; 45 class PageScaleAnimation;
46 class PictureLayerImpl; 46 class PictureLayerImpl;
47 class Proxy; 47 class ThreadVerifier;
48 class ResourceProvider; 48 class ResourceProvider;
49 class TileManager; 49 class TileManager;
50 class UIResourceRequest; 50 class UIResourceRequest;
51 class VideoFrameControllerClient; 51 class VideoFrameControllerClient;
52 struct PendingPageScaleAnimation; 52 struct PendingPageScaleAnimation;
53 struct RendererCapabilities; 53 struct RendererCapabilities;
54 54
55 typedef std::vector<UIResourceRequest> UIResourceRequestQueue; 55 typedef std::vector<UIResourceRequest> UIResourceRequestQueue;
56 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls; 56 typedef SyncedProperty<AdditionGroup<float>> SyncedTopControls;
57 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll; 57 typedef SyncedProperty<AdditionGroup<gfx::Vector2dF>> SyncedElasticOverscroll;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 gfx::Rect DeviceViewport() const; 99 gfx::Rect DeviceViewport() const;
100 gfx::Size DrawViewportSize() const; 100 gfx::Size DrawViewportSize() const;
101 const gfx::Rect ViewportRectForTilePriority() const; 101 const gfx::Rect ViewportRectForTilePriority() const;
102 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( 102 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController(
103 int scroll_layer_id); 103 int scroll_layer_id);
104 void DidAnimateScrollOffset(); 104 void DidAnimateScrollOffset();
105 void InputScrollAnimationFinished(); 105 void InputScrollAnimationFinished();
106 bool use_gpu_rasterization() const; 106 bool use_gpu_rasterization() const;
107 GpuRasterizationStatus GetGpuRasterizationStatus() const; 107 GpuRasterizationStatus GetGpuRasterizationStatus() const;
108 bool create_low_res_tiling() const; 108 bool create_low_res_tiling() const;
109 BlockingTaskRunner* BlockingMainThreadTaskRunner() const; 109 BlockingTaskRunner* BlockingMainThreadTaskRunner() const;
vmpstr 2015/10/16 18:42:25 I think this function can go if you just have a ta
Khushal 2015/10/17 00:06:30 Done.
110 bool RequiresHighResToDraw() const; 110 bool RequiresHighResToDraw() const;
111 bool SmoothnessTakesPriority() const; 111 bool SmoothnessTakesPriority() const;
112 VideoFrameControllerClient* GetVideoFrameControllerClient() const; 112 VideoFrameControllerClient* GetVideoFrameControllerClient() const;
113 113
114 // Tree specific methods exposed to layer-impl tree. 114 // Tree specific methods exposed to layer-impl tree.
115 // --------------------------------------------------------------------------- 115 // ---------------------------------------------------------------------------
116 void SetNeedsRedraw(); 116 void SetNeedsRedraw();
117 117
118 // Tracing methods. 118 // Tracing methods.
119 // --------------------------------------------------------------------------- 119 // ---------------------------------------------------------------------------
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 AnimationRegistrar* GetAnimationRegistrar() const; 259 AnimationRegistrar* GetAnimationRegistrar() const;
260 260
261 void DidBecomeActive(); 261 void DidBecomeActive();
262 262
263 // Set on the active tree when the viewport size recently changed 263 // Set on the active tree when the viewport size recently changed
264 // and the active tree's size is now out of date. 264 // and the active tree's size is now out of date.
265 bool ViewportSizeInvalid() const; 265 bool ViewportSizeInvalid() const;
266 void SetViewportSizeInvalid(); 266 void SetViewportSizeInvalid();
267 void ResetViewportSizeInvalid(); 267 void ResetViewportSizeInvalid();
268 268
269 // Useful for debug assertions, probably shouldn't be used for anything else. 269 // Useful for debug assertions, probably shouldn't be used for anything else.
vmpstr 2015/10/16 18:42:25 I think this comment is a lie, since we use this t
Khushal 2015/10/17 00:06:30 Done. Changed it to be more accurate.
270 Proxy* proxy() const; 270 ThreadVerifier* thread_verifier() const;
271 271
272 // Distribute the root scroll between outer and inner viewport scroll layer. 272 // Distribute the root scroll between outer and inner viewport scroll layer.
273 // The outer viewport scroll layer scrolls first. 273 // The outer viewport scroll layer scrolls first.
274 void DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset); 274 void DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset);
275 275
276 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) { 276 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) {
277 layer_tree_host_impl_->ApplyScroll(layer, scroll_state); 277 layer_tree_host_impl_->ApplyScroll(layer, scroll_state);
278 } 278 }
279 279
280 // Call this function when you expect there to be a swap buffer. 280 // Call this function when you expect there to be a swap buffer.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 494
495 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 495 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
496 496
497 private: 497 private:
498 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 498 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
499 }; 499 };
500 500
501 } // namespace cc 501 } // namespace cc
502 502
503 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 503 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698