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

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: Insturment tree activation instead of commit for linking main thread frames to imple-side ones 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 virtual UIResourceId CreateUIResource(UIResourceClient* client); 273 virtual UIResourceId CreateUIResource(UIResourceClient* client);
274 // Deletes a UI resource. May safely be called more than once. 274 // Deletes a UI resource. May safely be called more than once.
275 virtual void DeleteUIResource(UIResourceId id); 275 virtual void DeleteUIResource(UIResourceId id);
276 // Put the recreation of all UI resources into the resource queue after they 276 // Put the recreation of all UI resources into the resource queue after they
277 // were evicted on the impl thread. 277 // were evicted on the impl thread.
278 void RecreateUIResources(); 278 void RecreateUIResources();
279 279
280 virtual gfx::Size GetUIResourceSize(UIResourceId id) const; 280 virtual gfx::Size GetUIResourceSize(UIResourceId id) const;
281 281
282 bool UsingSharedMemoryResources(); 282 bool UsingSharedMemoryResources();
283 int id() const { return tree_id_; } 283 int id() const { return id_; }
284 284
285 bool ScheduleMicroBenchmark(const std::string& benchmark_name, 285 bool ScheduleMicroBenchmark(const std::string& benchmark_name,
286 scoped_ptr<base::Value> value, 286 scoped_ptr<base::Value> value,
287 const MicroBenchmark::DoneCallback& callback); 287 const MicroBenchmark::DoneCallback& callback);
288 288
289 protected: 289 protected:
290 LayerTreeHost(LayerTreeHostClient* client, 290 LayerTreeHost(LayerTreeHostClient* client,
291 SharedBitmapManager* manager, 291 SharedBitmapManager* manager,
292 const LayerTreeSettings& settings); 292 const LayerTreeSettings& settings);
293 bool InitializeThreaded( 293 bool InitializeThreaded(
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 LCDTextMetrics() 417 LCDTextMetrics()
418 : total_num_cc_layers(0), 418 : total_num_cc_layers(0),
419 total_num_cc_layers_can_use_lcd_text(0), 419 total_num_cc_layers_can_use_lcd_text(0),
420 total_num_cc_layers_will_use_lcd_text(0) {} 420 total_num_cc_layers_will_use_lcd_text(0) {}
421 421
422 int64 total_num_cc_layers; 422 int64 total_num_cc_layers;
423 int64 total_num_cc_layers_can_use_lcd_text; 423 int64 total_num_cc_layers_can_use_lcd_text;
424 int64 total_num_cc_layers_will_use_lcd_text; 424 int64 total_num_cc_layers_will_use_lcd_text;
425 }; 425 };
426 LCDTextMetrics lcd_text_metrics_; 426 LCDTextMetrics lcd_text_metrics_;
427 int tree_id_; 427 int id_;
428 bool next_commit_forces_redraw_; 428 bool next_commit_forces_redraw_;
429 429
430 scoped_refptr<Layer> page_scale_layer_; 430 scoped_refptr<Layer> page_scale_layer_;
431 scoped_refptr<Layer> inner_viewport_scroll_layer_; 431 scoped_refptr<Layer> inner_viewport_scroll_layer_;
432 scoped_refptr<Layer> outer_viewport_scroll_layer_; 432 scoped_refptr<Layer> outer_viewport_scroll_layer_;
433 433
434 SharedBitmapManager* shared_bitmap_manager_; 434 SharedBitmapManager* shared_bitmap_manager_;
435 435
436 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 436 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
437 }; 437 };
438 438
439 } // namespace cc 439 } // namespace cc
440 440
441 #endif // CC_TREES_LAYER_TREE_HOST_H_ 441 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698