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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.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
Index: third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h
index 0e552951d466815eb4c1e21766fdc9c9932fefc8..5dc48e4560a6dacc6e42f14f9d3da0299f44cb86 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h
@@ -36,9 +36,7 @@ class PLATFORM_EXPORT PaintArtifact final {
public:
PaintArtifact();
- PaintArtifact(DisplayItemList,
- Vector<PaintChunk>,
- bool is_suitable_for_gpu_rasterization);
+ PaintArtifact(DisplayItemList, Vector<PaintChunk>, int num_slow_paths);
PaintArtifact(PaintArtifact&&);
~PaintArtifact();
@@ -59,9 +57,7 @@ class PLATFORM_EXPORT PaintArtifact final {
return FindChunkInVectorByDisplayItemIndex(paint_chunks_, index);
}
- bool IsSuitableForGpuRasterization() const {
- return is_suitable_for_gpu_rasterization_;
- }
+ int NumSlowPaths() const { return num_slow_paths_; }
// Resets to an empty paint artifact.
void Reset();
@@ -90,7 +86,7 @@ class PLATFORM_EXPORT PaintArtifact final {
private:
DisplayItemList display_item_list_;
Vector<PaintChunk> paint_chunks_;
- bool is_suitable_for_gpu_rasterization_;
+ int num_slow_paths_ = 0;
};
} // namespace blink
« no previous file with comments | « cc/paint/paint_op_buffer_unittest.cc ('k') | third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698