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

Unified Diff: cc/debug/rendering_stats.h

Issue 12780025: cc: Chromify rendering_stats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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 | « no previous file | cc/debug/rendering_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rendering_stats.h
diff --git a/cc/debug/rendering_stats.h b/cc/debug/rendering_stats.h
index 799bd887f34ac5440a9696aee689e54b97101bc6..33ea2c6ab10f9484e28f03e39a9bfa322240da58 100644
--- a/cc/debug/rendering_stats.h
+++ b/cc/debug/rendering_stats.h
@@ -12,52 +12,51 @@
namespace cc {
struct CC_EXPORT RenderingStats {
- // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.com/138641.
- int64 numAnimationFrames;
- int64 numFramesSentToScreen;
- int64 droppedFrameCount;
- base::TimeDelta totalPaintTime;
- base::TimeDelta totalRasterizeTime;
- base::TimeDelta totalRasterizeTimeForNowBinsOnPendingTree;
- base::TimeDelta totalCommitTime;
- int64 totalCommitCount;
- int64 totalPixelsPainted;
- int64 totalPixelsRasterized;
- int64 numImplThreadScrolls;
- int64 numMainThreadScrolls;
- int64 numLayersDrawn;
- int64 numMissingTiles;
- int64 totalDeferredImageDecodeCount;
- int64 totalDeferredImageCacheHitCount;
- int64 totalImageGatheringCount;
- base::TimeDelta totalDeferredImageDecodeTime;
- base::TimeDelta totalImageGatheringTime;
- // Note: when adding new members, please remember to update EnumerateFields
- // and Add in rendering_stats.cc.
+ int64 animation_frame_count;
+ int64 screen_frame_count;
+ int64 dropped_frame_count;
+ base::TimeDelta total_paint_time;
+ base::TimeDelta total_rasterize_time;
+ base::TimeDelta total_rasterize_time_for_now_bins_on_pending_tree;
+ base::TimeDelta total_commit_time;
+ int64 total_commit_count;
+ int64 total_pixels_painted;
+ int64 total_pixels_rasterized;
+ int64 num_impl_thread_scrolls;
+ int64 num_main_thread_scrolls;
+ int64 num_layers_drawn;
+ int64 num_missing_tiles;
+ int64 total_deferred_image_decode_count;
+ int64 total_deferred_image_cache_hit_count;
+ int64 total_image_gathering_count;
+ base::TimeDelta total_deferred_image_decode_time;
+ base::TimeDelta total_image_gathering_time;
+ // Note: when adding new members, please remember to update EnumerateFields
+ // and Add in rendering_stats.cc.
- RenderingStats();
+ RenderingStats();
- // In conjunction with enumerateFields, this allows the embedder to
- // enumerate the values in this structure without
- // having to embed references to its specific member variables. This
- // simplifies the addition of new fields to this type.
- class Enumerator {
- public:
- virtual void AddInt64(const char* name, int64 value) = 0;
- virtual void AddDouble(const char* name, double value) = 0;
- virtual void AddInt(const char* name, int value) = 0;
- virtual void AddTimeDeltaInSecondsF(const char* name,
- const base::TimeDelta& value) = 0;
+ // In conjunction with enumerateFields, this allows the embedder to
+ // enumerate the values in this structure without
+ // having to embed references to its specific member variables. This
+ // simplifies the addition of new fields to this type.
+ class Enumerator {
+ public:
+ virtual void AddInt64(const char* name, int64 value) = 0;
+ virtual void AddDouble(const char* name, double value) = 0;
+ virtual void AddInt(const char* name, int value) = 0;
+ virtual void AddTimeDeltaInSecondsF(const char* name,
+ const base::TimeDelta& value) = 0;
- protected:
- virtual ~Enumerator() { }
- };
+ protected:
+ virtual ~Enumerator() {}
+ };
- // Outputs the fields in this structure to the provided enumerator.
- void EnumerateFields(Enumerator* enumerator) const;
+ // Outputs the fields in this structure to the provided enumerator.
+ void EnumerateFields(Enumerator* enumerator) const;
- // Add fields of |other| to the fields in this structure.
- void Add(const RenderingStats& other);
+ // Add fields of |other| to the fields in this structure.
+ void Add(const RenderingStats& other);
};
} // namespace cc
« no previous file with comments | « no previous file | cc/debug/rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698