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

Unified Diff: cc/overdraw_metrics.h

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: cc/overdraw_metrics.h
diff --git a/cc/overdraw_metrics.h b/cc/overdraw_metrics.h
index bbeba8b04587167d8458906f6271bcecc7456cda..eb5f5dbf7c015676dbc9b1b91b3808eb2842cac6 100644
--- a/cc/overdraw_metrics.h
+++ b/cc/overdraw_metrics.h
@@ -13,13 +13,13 @@ class WebTransformationMatrix;
namespace cc {
class IntRect;
-class CCLayerTreeHost;
-class CCLayerTreeHostImpl;
+class LayerTreeHost;
+class LayerTreeHostImpl;
// FIXME: compute overdraw metrics only occasionally, not every frame.
-class CCOverdrawMetrics {
+class OverdrawMetrics {
public:
- static scoped_ptr<CCOverdrawMetrics> create(bool recordMetricsForFrame) { return make_scoped_ptr(new CCOverdrawMetrics(recordMetricsForFrame)); }
+ static scoped_ptr<OverdrawMetrics> create(bool recordMetricsForFrame) { return make_scoped_ptr(new OverdrawMetrics(recordMetricsForFrame)); }
// These methods are used for saving metrics during update/commit.
@@ -31,7 +31,7 @@ public:
void didUpload(const WebKit::WebTransformationMatrix& transformToTarget, const IntRect& uploadRect, const IntRect& opaqueRect);
// Record contents texture(s) behind present using the given number of bytes.
void didUseContentsTextureMemoryBytes(size_t contentsTextureUseBytes);
- // Record RenderSurface texture(s) being present using the given number of bytes.
+ // Record RenderSurfaceImpl texture(s) being present using the given number of bytes.
void didUseRenderSurfaceTextureMemoryBytes(size_t renderSurfaceUseBytes);
// These methods are used for saving metrics during draw.
@@ -41,8 +41,8 @@ public:
// Record pixels that were drawn to screen.
void didDraw(const WebKit::WebTransformationMatrix& transformToTarget, const IntRect& afterCullRect, const IntRect& opaqueRect);
- void recordMetrics(const CCLayerTreeHost*) const;
- void recordMetrics(const CCLayerTreeHostImpl*) const;
+ void recordMetrics(const LayerTreeHost*) const;
+ void recordMetrics(const LayerTreeHostImpl*) const;
// Accessors for tests.
float pixelsDrawnOpaque() const { return m_pixelsDrawnOpaque; }
@@ -59,7 +59,7 @@ private:
DrawingToScreen
};
- explicit CCOverdrawMetrics(bool recordMetricsForFrame);
+ explicit OverdrawMetrics(bool recordMetricsForFrame);
template<typename LayerTreeHostType>
void recordMetricsInternal(MetricsType, const LayerTreeHostType*) const;
@@ -79,7 +79,7 @@ private:
int m_tilesCulledForUpload;
// Count the number of bytes in contents textures.
unsigned long long m_contentsTextureUseBytes;
- // Count the number of bytes in RenderSurface textures.
+ // Count the number of bytes in RenderSurfaceImpl textures.
unsigned long long m_renderSurfaceTextureUseBytes;
// These values are used for saving metrics during draw.

Powered by Google App Engine
This is Rietveld 408576698