| 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(const LayerList& render_surface_layer_list, | 266   void PaintLayerContents(const LayerList& render_surface_layer_list, | 
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 357     LCDTextMetrics() | 358     LCDTextMetrics() | 
| 358         : total_num_cc_layers(0), | 359         : total_num_cc_layers(0), | 
| 359           total_num_cc_layers_can_use_lcd_text(0), | 360           total_num_cc_layers_can_use_lcd_text(0), | 
| 360           total_num_cc_layers_will_use_lcd_text(0) {} | 361           total_num_cc_layers_will_use_lcd_text(0) {} | 
| 361 | 362 | 
| 362     int64 total_num_cc_layers; | 363     int64 total_num_cc_layers; | 
| 363     int64 total_num_cc_layers_can_use_lcd_text; | 364     int64 total_num_cc_layers_can_use_lcd_text; | 
| 364     int64 total_num_cc_layers_will_use_lcd_text; | 365     int64 total_num_cc_layers_will_use_lcd_text; | 
| 365   }; | 366   }; | 
| 366   LCDTextMetrics lcd_text_metrics_; | 367   LCDTextMetrics lcd_text_metrics_; | 
|  | 368   int tree_id_; | 
| 367 | 369 | 
| 368   DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 370   DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 
| 369 }; | 371 }; | 
| 370 | 372 | 
| 371 }  // namespace cc | 373 }  // namespace cc | 
| 372 | 374 | 
| 373 #endif  // CC_TREES_LAYER_TREE_HOST_H_ | 375 #endif  // CC_TREES_LAYER_TREE_HOST_H_ | 
| OLD | NEW | 
|---|