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

Unified Diff: cc/paint/display_item_list.h

Issue 2876033005: Track slow paths in DisplayItemList (Closed)
Patch Set: danakj review Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/paint/display_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/display_item_list.h
diff --git a/cc/paint/display_item_list.h b/cc/paint/display_item_list.h
index 893dc9fbc4f1e111705acaec524bdf8fe453ebd8..5aa1490336e2fb5a3b56ae8d7f103f8a07e4b8b2 100644
--- a/cc/paint/display_item_list.h
+++ b/cc/paint/display_item_list.h
@@ -125,10 +125,8 @@ class CC_PAINT_EXPORT DisplayItemList
// applicable, create an internally cached SkPicture.
void Finalize();
- void SetIsSuitableForGpuRasterization(bool is_suitable) {
- all_items_are_suitable_for_gpu_rasterization_ = is_suitable;
- }
- bool IsSuitableForGpuRasterization() const;
+ void SetNumSlowPaths(int num_slow_paths) { num_slow_paths_ = num_slow_paths; }
+ int NumSlowPaths() const { return num_slow_paths_; }
size_t OpCount() const;
size_t ApproximateMemoryUsage() const;
@@ -200,7 +198,7 @@ class CC_PAINT_EXPORT DisplayItemList
std::vector<size_t> begin_item_indices_;
size_t op_count_ = 0u;
- bool all_items_are_suitable_for_gpu_rasterization_ = true;
+ int num_slow_paths_ = 0;
// For testing purposes only. Whether to keep visual rects across calls to
// Finalize().
bool retain_visual_rects_ = false;
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/paint/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698