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

Side by Side Diff: cc/CCOverdrawMetrics.cpp

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/CCOverdrawMetrics.h ('k') | cc/CCPageScaleAnimation.h » ('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 #include "config.h" 5 #include "config.h"
6 6
7 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 8
9 #include "CCOverdrawMetrics.h" 9 #include "CCOverdrawMetrics.h"
10 10
11 #include "CCLayerTreeHost.h" 11 #include "CCLayerTreeHost.h"
12 #include "CCLayerTreeHostImpl.h" 12 #include "CCLayerTreeHostImpl.h"
13 #include "CCMathUtil.h" 13 #include "CCMathUtil.h"
14 #include "FloatQuad.h" 14 #include "FloatQuad.h"
15 #include "IntRect.h" 15 #include "IntRect.h"
16 #include "TraceEvent.h" 16 #include "TraceEvent.h"
17 #include <public/Platform.h> 17 #include <public/Platform.h>
18 #include <public/WebTransformationMatrix.h> 18 #include <public/WebTransformationMatrix.h>
19 19
20 using WebKit::WebTransformationMatrix; 20 using WebKit::WebTransformationMatrix;
21 21
22 namespace WebCore { 22 namespace cc {
23 23
24 CCOverdrawMetrics::CCOverdrawMetrics(bool recordMetricsForFrame) 24 CCOverdrawMetrics::CCOverdrawMetrics(bool recordMetricsForFrame)
25 : m_recordMetricsForFrame(recordMetricsForFrame) 25 : m_recordMetricsForFrame(recordMetricsForFrame)
26 , m_pixelsPainted(0) 26 , m_pixelsPainted(0)
27 , m_pixelsUploadedOpaque(0) 27 , m_pixelsUploadedOpaque(0)
28 , m_pixelsUploadedTranslucent(0) 28 , m_pixelsUploadedTranslucent(0)
29 , m_tilesCulledForUpload(0) 29 , m_tilesCulledForUpload(0)
30 , m_contentsTextureUseBytes(0) 30 , m_contentsTextureUseBytes(0)
31 , m_renderSurfaceTextureUseBytes(0) 31 , m_renderSurfaceTextureUseBytes(0)
32 , m_pixelsDrawnOpaque(0) 32 , m_pixelsDrawnOpaque(0)
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 TRACE_EVENT1("cc", "CCOverdrawPaintMetrics", "PixelsPainted", m_pixe lsPainted); 178 TRACE_EVENT1("cc", "CCOverdrawPaintMetrics", "PixelsPainted", m_pixe lsPainted);
179 } 179 }
180 { 180 {
181 // This must be in a different scope than the TRACE_EVENTs above. 181 // This must be in a different scope than the TRACE_EVENTs above.
182 TRACE_EVENT2("cc", "CCOverdrawPaintMetrics", "ContentsTextureBytes", m_contentsTextureUseBytes, "RenderSurfaceTextureBytes", m_renderSurfaceTextureU seBytes); 182 TRACE_EVENT2("cc", "CCOverdrawPaintMetrics", "ContentsTextureBytes", m_contentsTextureUseBytes, "RenderSurfaceTextureBytes", m_renderSurfaceTextureU seBytes);
183 } 183 }
184 break; 184 break;
185 } 185 }
186 } 186 }
187 187
188 } // namespace WebCore 188 } // namespace cc
189 189
190 #endif 190 #endif
OLDNEW
« no previous file with comments | « cc/CCOverdrawMetrics.h ('k') | cc/CCPageScaleAnimation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698