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

Side by Side Diff: cc/debug/rendering_stats.h

Issue 63443003: cc: Combine analysis and raster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove analysis time from rendering stats Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/debug/rendering_stats.cc » ('j') | no next file with comments »
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/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; 42 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const;
43 void Add(const MainThreadRenderingStats& other); 43 void Add(const MainThreadRenderingStats& other);
44 }; 44 };
45 45
46 struct CC_EXPORT ImplThreadRenderingStats { 46 struct CC_EXPORT ImplThreadRenderingStats {
47 // Note: when adding new members, please remember to update EnumerateFields 47 // Note: when adding new members, please remember to update EnumerateFields
48 // and Add in rendering_stats.cc. 48 // and Add in rendering_stats.cc.
49 49
50 int64 frame_count; 50 int64 frame_count;
51 base::TimeDelta rasterize_time; 51 base::TimeDelta rasterize_time;
52 base::TimeDelta analysis_time;
53 int64 rasterized_pixel_count; 52 int64 rasterized_pixel_count;
54 53
55 ImplThreadRenderingStats(); 54 ImplThreadRenderingStats();
56 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; 55 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const;
57 void Add(const ImplThreadRenderingStats& other); 56 void Add(const ImplThreadRenderingStats& other);
58 }; 57 };
59 58
60 struct CC_EXPORT RenderingStats { 59 struct CC_EXPORT RenderingStats {
61 typedef RenderingStatsEnumerator Enumerator; 60 typedef RenderingStatsEnumerator Enumerator;
62 61
63 MainThreadRenderingStats main_stats; 62 MainThreadRenderingStats main_stats;
64 ImplThreadRenderingStats impl_stats; 63 ImplThreadRenderingStats impl_stats;
65 64
66 // Outputs the fields in this structure to the provided enumerator. 65 // Outputs the fields in this structure to the provided enumerator.
67 void EnumerateFields(Enumerator* enumerator) const; 66 void EnumerateFields(Enumerator* enumerator) const;
68 67
69 // Add fields of |other| to the fields in this structure. 68 // Add fields of |other| to the fields in this structure.
70 void Add(const RenderingStats& other); 69 void Add(const RenderingStats& other);
71 }; 70 };
72 71
73 } // namespace cc 72 } // namespace cc
74 73
75 #endif // CC_DEBUG_RENDERING_STATS_H_ 74 #endif // CC_DEBUG_RENDERING_STATS_H_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/debug/rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698