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

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

Issue 60353002: cc: add DevTools instrumentation for impl-side frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tree_id -> layer_tree_host_id, also use StaticAtomicSequenceNumber to allocate it Created 7 years, 1 month 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 | Annotate | Revision Log
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 <string> 10 #include <string>
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 virtual UIResourceId CreateUIResource(UIResourceClient* client); 305 virtual UIResourceId CreateUIResource(UIResourceClient* client);
306 // Deletes a UI resource. May safely be called more than once. 306 // Deletes a UI resource. May safely be called more than once.
307 virtual void DeleteUIResource(UIResourceId id); 307 virtual void DeleteUIResource(UIResourceId id);
308 // Put the recreation of all UI resources into the resource queue after they 308 // Put the recreation of all UI resources into the resource queue after they
309 // were evicted on the impl thread. 309 // were evicted on the impl thread.
310 void RecreateUIResources(); 310 void RecreateUIResources();
311 311
312 virtual gfx::Size GetUIResourceSize(UIResourceId id) const; 312 virtual gfx::Size GetUIResourceSize(UIResourceId id) const;
313 313
314 bool UsingSharedMemoryResources(); 314 bool UsingSharedMemoryResources();
315 int id() const { return tree_id_; } 315 int id() const { return id_; }
316 316
317 bool ScheduleMicroBenchmark(const std::string& benchmark_name, 317 bool ScheduleMicroBenchmark(const std::string& benchmark_name,
318 scoped_ptr<base::Value> value, 318 scoped_ptr<base::Value> value,
319 const MicroBenchmark::DoneCallback& callback); 319 const MicroBenchmark::DoneCallback& callback);
320 320
321 protected: 321 protected:
322 LayerTreeHost(LayerTreeHostClient* client, 322 LayerTreeHost(LayerTreeHostClient* client,
323 SharedBitmapManager* manager, 323 SharedBitmapManager* manager,
324 const LayerTreeSettings& settings); 324 const LayerTreeSettings& settings);
325 bool InitializeThreaded( 325 bool InitializeThreaded(
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 LCDTextMetrics() 449 LCDTextMetrics()
450 : total_num_cc_layers(0), 450 : total_num_cc_layers(0),
451 total_num_cc_layers_can_use_lcd_text(0), 451 total_num_cc_layers_can_use_lcd_text(0),
452 total_num_cc_layers_will_use_lcd_text(0) {} 452 total_num_cc_layers_will_use_lcd_text(0) {}
453 453
454 int64 total_num_cc_layers; 454 int64 total_num_cc_layers;
455 int64 total_num_cc_layers_can_use_lcd_text; 455 int64 total_num_cc_layers_can_use_lcd_text;
456 int64 total_num_cc_layers_will_use_lcd_text; 456 int64 total_num_cc_layers_will_use_lcd_text;
457 }; 457 };
458 LCDTextMetrics lcd_text_metrics_; 458 LCDTextMetrics lcd_text_metrics_;
459 int tree_id_; 459 int id_;
460 bool next_commit_forces_redraw_; 460 bool next_commit_forces_redraw_;
461 461
462 scoped_refptr<Layer> page_scale_layer_; 462 scoped_refptr<Layer> page_scale_layer_;
463 scoped_refptr<Layer> inner_viewport_scroll_layer_; 463 scoped_refptr<Layer> inner_viewport_scroll_layer_;
464 scoped_refptr<Layer> outer_viewport_scroll_layer_; 464 scoped_refptr<Layer> outer_viewport_scroll_layer_;
465 465
466 SharedBitmapManager* shared_bitmap_manager_; 466 SharedBitmapManager* shared_bitmap_manager_;
467 467
468 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 468 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
469 }; 469 };
470 470
471 } // namespace cc 471 } // namespace cc
472 472
473 #endif // CC_TREES_LAYER_TREE_HOST_H_ 473 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698