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

Side by Side 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: 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/debug/rendering_stats.cc » ('j') | cc/resources/tile_manager.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_DEBUG_RENDERING_STATS_H_ 5 #ifndef CC_DEBUG_RENDERING_STATS_H_
6 #define CC_DEBUG_RENDERING_STATS_H_ 6 #define CC_DEBUG_RENDERING_STATS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 struct CC_EXPORT RenderingStats { 14 struct CC_EXPORT RenderingStats {
15 // FIXME: Rename these to animationFrameCount and screenFrameCount, crbug.co m/138641. 15 // FIXME: Rename these to animationFrameCount and screenFrameCount,
danakj 2013/03/20 19:00:43 This bug is WontFix, remove this comment?
dtu 2013/03/20 19:08:08 Seems like it'd be easy enough to fix now. animati
16 int64 numAnimationFrames; 16 // crbug.com/138641.
17 int64 numFramesSentToScreen; 17 int64 num_animation_frames;
18 int64 droppedFrameCount; 18 int64 num_frames_sent_to_screen;
19 base::TimeDelta totalPaintTime; 19 int64 dropped_frame_count;
20 base::TimeDelta totalRasterizeTime; 20 base::TimeDelta total_paint_time;
21 base::TimeDelta totalRasterizeTimeForNowBinsOnPendingTree; 21 base::TimeDelta total_rasterize_time;
22 base::TimeDelta totalCommitTime; 22 base::TimeDelta total_rasterize_time_for_now_bins_on_pending_tree;
23 int64 totalCommitCount; 23 base::TimeDelta total_commit_time;
24 int64 totalPixelsPainted; 24 int64 total_commit_count;
25 int64 totalPixelsRasterized; 25 int64 total_pixels_painted;
26 int64 numImplThreadScrolls; 26 int64 total_pixels_rasterized;
27 int64 numMainThreadScrolls; 27 int64 num_impl_thread_scrolls;
28 int64 numLayersDrawn; 28 int64 num_main_thread_scrolls;
29 int64 numMissingTiles; 29 int64 num_layers_drawn;
30 int64 totalDeferredImageDecodeCount; 30 int64 num_missing_tiles;
31 int64 totalDeferredImageCacheHitCount; 31 int64 total_deferred_image_decode_count;
32 int64 totalImageGatheringCount; 32 int64 total_deferred_image_cache_hit_count;
33 base::TimeDelta totalDeferredImageDecodeTime; 33 int64 total_image_gathering_count;
34 base::TimeDelta totalImageGatheringTime; 34 base::TimeDelta total_deferred_image_decode_time;
35 // Note: when adding new members, please remember to update EnumerateFields 35 base::TimeDelta total_image_gathering_time;
36 // and Add in rendering_stats.cc. 36 // Note: when adding new members, please remember to update EnumerateFields
37 // and Add in rendering_stats.cc.
37 38
38 RenderingStats(); 39 RenderingStats();
39 40
40 // In conjunction with enumerateFields, this allows the embedder to 41 // In conjunction with enumerateFields, this allows the embedder to
41 // enumerate the values in this structure without 42 // enumerate the values in this structure without
42 // having to embed references to its specific member variables. This 43 // having to embed references to its specific member variables. This
43 // simplifies the addition of new fields to this type. 44 // simplifies the addition of new fields to this type.
44 class Enumerator { 45 class Enumerator {
45 public: 46 public:
46 virtual void AddInt64(const char* name, int64 value) = 0; 47 virtual void AddInt64(const char* name, int64 value) = 0;
47 virtual void AddDouble(const char* name, double value) = 0; 48 virtual void AddDouble(const char* name, double value) = 0;
48 virtual void AddInt(const char* name, int value) = 0; 49 virtual void AddInt(const char* name, int value) = 0;
49 virtual void AddTimeDeltaInSecondsF(const char* name, 50 virtual void AddTimeDeltaInSecondsF(const char* name,
50 const base::TimeDelta& value) = 0; 51 const base::TimeDelta& value) = 0;
51 52
52 protected: 53 protected:
53 virtual ~Enumerator() { } 54 virtual ~Enumerator() {}
54 }; 55 };
55 56
56 // Outputs the fields in this structure to the provided enumerator. 57 // Outputs the fields in this structure to the provided enumerator.
57 void EnumerateFields(Enumerator* enumerator) const; 58 void EnumerateFields(Enumerator* enumerator) const;
58 59
59 // Add fields of |other| to the fields in this structure. 60 // Add fields of |other| to the fields in this structure.
60 void Add(const RenderingStats& other); 61 void Add(const RenderingStats& other);
61 }; 62 };
62 63
63 } // namespace cc 64 } // namespace cc
64 65
65 #endif // CC_DEBUG_RENDERING_STATS_H_ 66 #endif // CC_DEBUG_RENDERING_STATS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/debug/rendering_stats.cc » ('j') | cc/resources/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698