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

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

Issue 23171014: Fix UpdateTilePriorities viewport in Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 221292 Created 7 years, 3 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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // --------------------------------------------------------------------------- 59 // ---------------------------------------------------------------------------
60 const LayerTreeSettings& settings() const; 60 const LayerTreeSettings& settings() const;
61 const RendererCapabilities& GetRendererCapabilities() const; 61 const RendererCapabilities& GetRendererCapabilities() const;
62 ContextProvider* context_provider() const; 62 ContextProvider* context_provider() const;
63 OutputSurface* output_surface() const; 63 OutputSurface* output_surface() const;
64 ResourceProvider* resource_provider() const; 64 ResourceProvider* resource_provider() const;
65 TileManager* tile_manager() const; 65 TileManager* tile_manager() const;
66 FrameRateCounter* frame_rate_counter() const; 66 FrameRateCounter* frame_rate_counter() const;
67 PaintTimeCounter* paint_time_counter() const; 67 PaintTimeCounter* paint_time_counter() const;
68 MemoryHistory* memory_history() const; 68 MemoryHistory* memory_history() const;
69 bool device_viewport_valid_for_tile_management() const;
69 bool IsActiveTree() const; 70 bool IsActiveTree() const;
70 bool IsPendingTree() const; 71 bool IsPendingTree() const;
71 bool IsRecycleTree() const; 72 bool IsRecycleTree() const;
72 LayerImpl* FindActiveTreeLayerById(int id); 73 LayerImpl* FindActiveTreeLayerById(int id);
73 LayerImpl* FindPendingTreeLayerById(int id); 74 LayerImpl* FindPendingTreeLayerById(int id);
74 int MaxTextureSize() const; 75 int MaxTextureSize() const;
75 bool PinchGestureActive() const; 76 bool PinchGestureActive() const;
76 base::TimeTicks CurrentFrameTimeTicks() const; 77 base::TimeTicks CurrentFrameTimeTicks() const;
77 base::Time CurrentFrameTime() const; 78 base::Time CurrentFrameTime() const;
78 base::TimeTicks CurrentPhysicalTimeTicks() const; 79 base::TimeTicks CurrentPhysicalTimeTicks() const;
79 void SetNeedsCommit(); 80 void SetNeedsCommit();
81 gfx::Size DrawViewportSize() const;
80 82
81 // Tree specific methods exposed to layer-impl tree. 83 // Tree specific methods exposed to layer-impl tree.
82 // --------------------------------------------------------------------------- 84 // ---------------------------------------------------------------------------
83 void SetNeedsRedraw(); 85 void SetNeedsRedraw();
84 86
85 // TODO(nduca): These are implemented in cc files temporarily, but will become 87 // TODO(nduca): These are implemented in cc files temporarily, but will become
86 // trivial accessors in a followup patch. 88 // trivial accessors in a followup patch.
87 const LayerTreeDebugState& debug_state() const; 89 const LayerTreeDebugState& debug_state() const;
88 float device_scale_factor() const; 90 float device_scale_factor() const;
89 gfx::Size device_viewport_size() const;
90 DebugRectHistory* debug_rect_history() const; 91 DebugRectHistory* debug_rect_history() const;
91 scoped_ptr<base::Value> AsValue() const; 92 scoped_ptr<base::Value> AsValue() const;
92 93
93 // Other public methods 94 // Other public methods
94 // --------------------------------------------------------------------------- 95 // ---------------------------------------------------------------------------
95 LayerImpl* root_layer() const { return root_layer_.get(); } 96 LayerImpl* root_layer() const { return root_layer_.get(); }
96 void SetRootLayer(scoped_ptr<LayerImpl>); 97 void SetRootLayer(scoped_ptr<LayerImpl>);
97 scoped_ptr<LayerImpl> DetachLayerTree(); 98 scoped_ptr<LayerImpl> DetachLayerTree();
98 99
99 void PushPropertiesTo(LayerTreeImpl* tree_impl); 100 void PushPropertiesTo(LayerTreeImpl* tree_impl);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 256
256 UIResourceRequestQueue ui_resource_request_queue_; 257 UIResourceRequestQueue ui_resource_request_queue_;
257 258
258 private: 259 private:
259 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 260 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
260 }; 261 };
261 262
262 } // namespace cc 263 } // namespace cc
263 264
264 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 265 #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