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

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: Fix tests Created 6 years, 5 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/output/viewport_selection_bound.cc ('k') | cc/trees/layer_tree_host.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 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>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/cancelable_callback.h" 15 #include "base/cancelable_callback.h"
16 #include "base/containers/hash_tables.h" 16 #include "base/containers/hash_tables.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "base/timer/timer.h" 21 #include "base/timer/timer.h"
22 #include "cc/animation/animation_events.h" 22 #include "cc/animation/animation_events.h"
23 #include "cc/base/cc_export.h" 23 #include "cc/base/cc_export.h"
24 #include "cc/base/scoped_ptr_vector.h" 24 #include "cc/base/scoped_ptr_vector.h"
25 #include "cc/base/swap_promise.h" 25 #include "cc/base/swap_promise.h"
26 #include "cc/base/swap_promise_monitor.h" 26 #include "cc/base/swap_promise_monitor.h"
27 #include "cc/debug/micro_benchmark.h" 27 #include "cc/debug/micro_benchmark.h"
28 #include "cc/debug/micro_benchmark_controller.h" 28 #include "cc/debug/micro_benchmark_controller.h"
29 #include "cc/input/input_handler.h" 29 #include "cc/input/input_handler.h"
30 #include "cc/input/layer_selection_bound.h"
30 #include "cc/input/scrollbar.h" 31 #include "cc/input/scrollbar.h"
31 #include "cc/input/top_controls_state.h" 32 #include "cc/input/top_controls_state.h"
32 #include "cc/layers/layer_lists.h" 33 #include "cc/layers/layer_lists.h"
33 #include "cc/output/output_surface.h" 34 #include "cc/output/output_surface.h"
34 #include "cc/resources/resource_format.h" 35 #include "cc/resources/resource_format.h"
35 #include "cc/resources/scoped_ui_resource.h" 36 #include "cc/resources/scoped_ui_resource.h"
36 #include "cc/trees/layer_tree_host_client.h" 37 #include "cc/trees/layer_tree_host_client.h"
37 #include "cc/trees/layer_tree_host_common.h" 38 #include "cc/trees/layer_tree_host_common.h"
38 #include "cc/trees/layer_tree_settings.h" 39 #include "cc/trees/layer_tree_settings.h"
39 #include "cc/trees/proxy.h" 40 #include "cc/trees/proxy.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 scoped_refptr<Layer> page_scale_layer, 172 scoped_refptr<Layer> page_scale_layer,
172 scoped_refptr<Layer> inner_viewport_scroll_layer, 173 scoped_refptr<Layer> inner_viewport_scroll_layer,
173 scoped_refptr<Layer> outer_viewport_scroll_layer); 174 scoped_refptr<Layer> outer_viewport_scroll_layer);
174 Layer* inner_viewport_scroll_layer() const { 175 Layer* inner_viewport_scroll_layer() const {
175 return inner_viewport_scroll_layer_.get(); 176 return inner_viewport_scroll_layer_.get();
176 } 177 }
177 Layer* outer_viewport_scroll_layer() const { 178 Layer* outer_viewport_scroll_layer() const {
178 return outer_viewport_scroll_layer_.get(); 179 return outer_viewport_scroll_layer_.get();
179 } 180 }
180 181
182 void RegisterSelection(const LayerSelectionBound& anchor,
183 const LayerSelectionBound& focus);
184
181 const LayerTreeSettings& settings() const { return settings_; } 185 const LayerTreeSettings& settings() const { return settings_; }
182 186
183 void SetDebugState(const LayerTreeDebugState& debug_state); 187 void SetDebugState(const LayerTreeDebugState& debug_state);
184 const LayerTreeDebugState& debug_state() const { return debug_state_; } 188 const LayerTreeDebugState& debug_state() const { return debug_state_; }
185 189
186 bool has_gpu_rasterization_trigger() const { 190 bool has_gpu_rasterization_trigger() const {
187 return has_gpu_rasterization_trigger_; 191 return has_gpu_rasterization_trigger_;
188 } 192 }
189 void SetHasGpuRasterizationTrigger(bool has_trigger); 193 void SetHasGpuRasterizationTrigger(bool has_trigger);
190 bool UseGpuRasterization() const; 194 bool UseGpuRasterization() const;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 int64 total_num_cc_layers_will_use_lcd_text; 436 int64 total_num_cc_layers_will_use_lcd_text;
433 }; 437 };
434 LCDTextMetrics lcd_text_metrics_; 438 LCDTextMetrics lcd_text_metrics_;
435 int id_; 439 int id_;
436 bool next_commit_forces_redraw_; 440 bool next_commit_forces_redraw_;
437 441
438 scoped_refptr<Layer> page_scale_layer_; 442 scoped_refptr<Layer> page_scale_layer_;
439 scoped_refptr<Layer> inner_viewport_scroll_layer_; 443 scoped_refptr<Layer> inner_viewport_scroll_layer_;
440 scoped_refptr<Layer> outer_viewport_scroll_layer_; 444 scoped_refptr<Layer> outer_viewport_scroll_layer_;
441 445
446 LayerSelectionBound selection_anchor_;
447 LayerSelectionBound selection_focus_;
448
442 SharedBitmapManager* shared_bitmap_manager_; 449 SharedBitmapManager* shared_bitmap_manager_;
443 450
444 ScopedPtrVector<SwapPromise> swap_promise_list_; 451 ScopedPtrVector<SwapPromise> swap_promise_list_;
445 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 452 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
446 453
447 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 454 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
448 }; 455 };
449 456
450 } // namespace cc 457 } // namespace cc
451 458
452 #endif // CC_TREES_LAYER_TREE_HOST_H_ 459 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/output/viewport_selection_bound.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698