Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 | 253 |
| 254 // Obtains a thorough dump of the LayerTreeHost as a value. | 254 // Obtains a thorough dump of the LayerTreeHost as a value. |
| 255 scoped_ptr<base::Value> AsValue() const; | 255 scoped_ptr<base::Value> AsValue() const; |
| 256 | 256 |
| 257 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 257 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| 258 | 258 |
| 259 void IncrementLCDTextMetrics( | 259 void IncrementLCDTextMetrics( |
| 260 bool update_total_num_cc_layers_can_use_lcd_text, | 260 bool update_total_num_cc_layers_can_use_lcd_text, |
| 261 bool update_total_num_cc_layers_will_use_lcd_text); | 261 bool update_total_num_cc_layers_will_use_lcd_text); |
| 262 | 262 |
| 263 uint64 id() const { return reinterpret_cast<uint64>(this); } | |
|
nduca
2013/06/26 05:08:46
int64 please, like layer.
also, this isn't stable
| |
| 264 | |
| 263 protected: | 265 protected: |
| 264 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); | 266 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); |
| 265 bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 267 bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 266 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); | 268 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); |
| 267 | 269 |
| 268 private: | 270 private: |
| 269 bool InitializeProxy(scoped_ptr<Proxy> proxy); | 271 bool InitializeProxy(scoped_ptr<Proxy> proxy); |
| 270 | 272 |
| 271 bool PaintLayerContents(const LayerList& render_surface_layer_list, | 273 bool PaintLayerContents(const LayerList& render_surface_layer_list, |
| 272 ResourceUpdateQueue* quue); | 274 ResourceUpdateQueue* quue); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 358 LCDTextMetrics() | 360 LCDTextMetrics() |
| 359 : total_num_cc_layers(0), | 361 : total_num_cc_layers(0), |
| 360 total_num_cc_layers_can_use_lcd_text(0), | 362 total_num_cc_layers_can_use_lcd_text(0), |
| 361 total_num_cc_layers_will_use_lcd_text(0) {} | 363 total_num_cc_layers_will_use_lcd_text(0) {} |
| 362 | 364 |
| 363 int64 total_num_cc_layers; | 365 int64 total_num_cc_layers; |
| 364 int64 total_num_cc_layers_can_use_lcd_text; | 366 int64 total_num_cc_layers_can_use_lcd_text; |
| 365 int64 total_num_cc_layers_will_use_lcd_text; | 367 int64 total_num_cc_layers_will_use_lcd_text; |
| 366 }; | 368 }; |
| 367 LCDTextMetrics lcd_text_metrics_; | 369 LCDTextMetrics lcd_text_metrics_; |
| 370 uint64 instrumentation_cookie_; | |
| 368 | 371 |
| 369 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 372 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 370 }; | 373 }; |
| 371 | 374 |
| 372 } // namespace cc | 375 } // namespace cc |
| 373 | 376 |
| 374 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 377 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |