| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |