| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 } | 246 } |
| 247 | 247 |
| 248 bool BlocksPendingCommit() const; | 248 bool BlocksPendingCommit() const; |
| 249 | 249 |
| 250 // Obtains a thorough dump of the LayerTreeHost as a value. | 250 // Obtains a thorough dump of the LayerTreeHost as a value. |
| 251 scoped_ptr<base::Value> AsValue() const; | 251 scoped_ptr<base::Value> AsValue() const; |
| 252 | 252 |
| 253 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 253 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| 254 | 254 |
| 255 bool UsingSharedMemoryResources(); | 255 bool UsingSharedMemoryResources(); |
| 256 int id() const { return tree_id_; } |
| 256 | 257 |
| 257 protected: | 258 protected: |
| 258 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); | 259 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); |
| 259 bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 260 bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 260 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); | 261 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); |
| 261 | 262 |
| 262 private: | 263 private: |
| 263 bool InitializeProxy(scoped_ptr<Proxy> proxy); | 264 bool InitializeProxy(scoped_ptr<Proxy> proxy); |
| 264 | 265 |
| 265 void PaintLayerContents( | 266 void PaintLayerContents( |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 LCDTextMetrics() | 361 LCDTextMetrics() |
| 361 : total_num_cc_layers(0), | 362 : total_num_cc_layers(0), |
| 362 total_num_cc_layers_can_use_lcd_text(0), | 363 total_num_cc_layers_can_use_lcd_text(0), |
| 363 total_num_cc_layers_will_use_lcd_text(0) {} | 364 total_num_cc_layers_will_use_lcd_text(0) {} |
| 364 | 365 |
| 365 int64 total_num_cc_layers; | 366 int64 total_num_cc_layers; |
| 366 int64 total_num_cc_layers_can_use_lcd_text; | 367 int64 total_num_cc_layers_can_use_lcd_text; |
| 367 int64 total_num_cc_layers_will_use_lcd_text; | 368 int64 total_num_cc_layers_will_use_lcd_text; |
| 368 }; | 369 }; |
| 369 LCDTextMetrics lcd_text_metrics_; | 370 LCDTextMetrics lcd_text_metrics_; |
| 371 int tree_id_; |
| 370 | 372 |
| 371 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 373 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 372 }; | 374 }; |
| 373 | 375 |
| 374 } // namespace cc | 376 } // namespace cc |
| 375 | 377 |
| 376 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 378 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |