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

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

Issue 265883013: cc: Add a flag to layers that returns true if the layer is in RSLL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: perftest fix Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_common_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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; 238 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
239 void ProcessUIResourceRequestQueue(); 239 void ProcessUIResourceRequestQueue();
240 240
241 bool IsUIResourceOpaque(UIResourceId uid) const; 241 bool IsUIResourceOpaque(UIResourceId uid) const;
242 242
243 void AddLayerWithCopyOutputRequest(LayerImpl* layer); 243 void AddLayerWithCopyOutputRequest(LayerImpl* layer);
244 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); 244 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer);
245 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; 245 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const;
246 246
247 int current_render_surface_list_id() const {
248 return render_surface_layer_list_id_;
249 }
250
247 protected: 251 protected:
248 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); 252 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
249 253
250 LayerTreeHostImpl* layer_tree_host_impl_; 254 LayerTreeHostImpl* layer_tree_host_impl_;
251 int source_frame_number_; 255 int source_frame_number_;
252 scoped_ptr<LayerImpl> root_layer_; 256 scoped_ptr<LayerImpl> root_layer_;
253 HeadsUpDisplayLayerImpl* hud_layer_; 257 HeadsUpDisplayLayerImpl* hud_layer_;
254 LayerImpl* currently_scrolling_layer_; 258 LayerImpl* currently_scrolling_layer_;
255 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 259 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
256 scoped_ptr<LayerScrollOffsetDelegateProxy> 260 scoped_ptr<LayerScrollOffsetDelegateProxy>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // In impl-side painting mode, this is true when the tree may contain 294 // In impl-side painting mode, this is true when the tree may contain
291 // structural differences relative to the active tree. 295 // structural differences relative to the active tree.
292 bool needs_full_tree_sync_; 296 bool needs_full_tree_sync_;
293 297
294 bool next_activation_forces_redraw_; 298 bool next_activation_forces_redraw_;
295 299
296 ScopedPtrVector<SwapPromise> swap_promise_list_; 300 ScopedPtrVector<SwapPromise> swap_promise_list_;
297 301
298 UIResourceRequestQueue ui_resource_request_queue_; 302 UIResourceRequestQueue ui_resource_request_queue_;
299 303
304 int render_surface_layer_list_id_;
305
300 private: 306 private:
301 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 307 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
302 }; 308 };
303 309
304 } // namespace cc 310 } // namespace cc
305 311
306 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 312 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698