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

Side by Side Diff: cc/CCOverdrawMetrics.h

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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/CCOcclusionTrackerTest.cpp ('k') | cc/CCOverdrawMetrics.cpp » ('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 CCOverdrawMetrics_h 5 #ifndef CCOverdrawMetrics_h
6 #define CCOverdrawMetrics_h 6 #define CCOverdrawMetrics_h
7 7
8 #include <wtf/PassOwnPtr.h> 8 #include <wtf/PassOwnPtr.h>
9 9
10 namespace WebKit { 10 namespace WebKit {
11 class WebTransformationMatrix; 11 class WebTransformationMatrix;
12 } 12 }
13 13
14 namespace WebCore { 14 namespace cc {
15 class IntRect; 15 class IntRect;
16 class CCLayerTreeHost; 16 class CCLayerTreeHost;
17 class CCLayerTreeHostImpl; 17 class CCLayerTreeHostImpl;
18 18
19 // FIXME: compute overdraw metrics only occasionally, not every frame. 19 // FIXME: compute overdraw metrics only occasionally, not every frame.
20 class CCOverdrawMetrics { 20 class CCOverdrawMetrics {
21 public: 21 public:
22 static PassOwnPtr<CCOverdrawMetrics> create(bool recordMetricsForFrame) { re turn adoptPtr(new CCOverdrawMetrics(recordMetricsForFrame)); } 22 static PassOwnPtr<CCOverdrawMetrics> create(bool recordMetricsForFrame) { re turn adoptPtr(new CCOverdrawMetrics(recordMetricsForFrame)); }
23 23
24 // These methods are used for saving metrics during update/commit. 24 // These methods are used for saving metrics during update/commit.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // These values are used for saving metrics during draw. 85 // These values are used for saving metrics during draw.
86 86
87 // Count of pixels that are opaque (and thus occlude). Ideally this is no mo re than wiewport width x height. 87 // Count of pixels that are opaque (and thus occlude). Ideally this is no mo re than wiewport width x height.
88 float m_pixelsDrawnOpaque; 88 float m_pixelsDrawnOpaque;
89 // Count of pixels that are possibly translucent, and cannot occlude. 89 // Count of pixels that are possibly translucent, and cannot occlude.
90 float m_pixelsDrawnTranslucent; 90 float m_pixelsDrawnTranslucent;
91 // Count of pixels not drawn as they are occluded by somthing opaque. 91 // Count of pixels not drawn as they are occluded by somthing opaque.
92 float m_pixelsCulledForDrawing; 92 float m_pixelsCulledForDrawing;
93 }; 93 };
94 94
95 } // namespace WebCore 95 } // namespace cc
96 96
97 #endif 97 #endif
OLDNEW
« no previous file with comments | « cc/CCOcclusionTrackerTest.cpp ('k') | cc/CCOverdrawMetrics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698