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

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

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 6 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 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_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 scoped_refptr<Layer> page_scale_layer, 171 scoped_refptr<Layer> page_scale_layer,
172 scoped_refptr<Layer> inner_viewport_scroll_layer, 172 scoped_refptr<Layer> inner_viewport_scroll_layer,
173 scoped_refptr<Layer> outer_viewport_scroll_layer); 173 scoped_refptr<Layer> outer_viewport_scroll_layer);
174 Layer* inner_viewport_scroll_layer() const { 174 Layer* inner_viewport_scroll_layer() const {
175 return inner_viewport_scroll_layer_.get(); 175 return inner_viewport_scroll_layer_.get();
176 } 176 }
177 Layer* outer_viewport_scroll_layer() const { 177 Layer* outer_viewport_scroll_layer() const {
178 return outer_viewport_scroll_layer_.get(); 178 return outer_viewport_scroll_layer_.get();
179 } 179 }
180 180
181 void RegisterSelection(scoped_refptr<Layer> start_layer,
182 const SelectionHandle& start_handle,
183 scoped_refptr<Layer> end_layer,
184 const SelectionHandle& end_handle);
185
181 const LayerTreeSettings& settings() const { return settings_; } 186 const LayerTreeSettings& settings() const { return settings_; }
182 187
183 void SetDebugState(const LayerTreeDebugState& debug_state); 188 void SetDebugState(const LayerTreeDebugState& debug_state);
184 const LayerTreeDebugState& debug_state() const { return debug_state_; } 189 const LayerTreeDebugState& debug_state() const { return debug_state_; }
185 190
186 bool has_gpu_rasterization_trigger() const { 191 bool has_gpu_rasterization_trigger() const {
187 return has_gpu_rasterization_trigger_; 192 return has_gpu_rasterization_trigger_;
188 } 193 }
189 void set_has_gpu_rasterization_trigger(bool has_trigger) { 194 void set_has_gpu_rasterization_trigger(bool has_trigger) {
190 has_gpu_rasterization_trigger_ = has_trigger; 195 has_gpu_rasterization_trigger_ = has_trigger;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 int64 total_num_cc_layers_will_use_lcd_text; 439 int64 total_num_cc_layers_will_use_lcd_text;
435 }; 440 };
436 LCDTextMetrics lcd_text_metrics_; 441 LCDTextMetrics lcd_text_metrics_;
437 int id_; 442 int id_;
438 bool next_commit_forces_redraw_; 443 bool next_commit_forces_redraw_;
439 444
440 scoped_refptr<Layer> page_scale_layer_; 445 scoped_refptr<Layer> page_scale_layer_;
441 scoped_refptr<Layer> inner_viewport_scroll_layer_; 446 scoped_refptr<Layer> inner_viewport_scroll_layer_;
442 scoped_refptr<Layer> outer_viewport_scroll_layer_; 447 scoped_refptr<Layer> outer_viewport_scroll_layer_;
443 448
449 scoped_refptr<Layer> start_selection_layer_;
450 scoped_refptr<Layer> end_selection_layer_;
451 SelectionHandle start_selection_handle_;
452 SelectionHandle end_selection_handle_;
453
444 SharedBitmapManager* shared_bitmap_manager_; 454 SharedBitmapManager* shared_bitmap_manager_;
445 455
446 ScopedPtrVector<SwapPromise> swap_promise_list_; 456 ScopedPtrVector<SwapPromise> swap_promise_list_;
447 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 457 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
448 458
449 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 459 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
450 }; 460 };
451 461
452 } // namespace cc 462 } // namespace cc
453 463
454 #endif // CC_TREES_LAYER_TREE_HOST_H_ 464 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698