diff options
Diffstat (limited to 'cc/overdraw_metrics.h')
-rw-r--r-- | cc/overdraw_metrics.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cc/overdraw_metrics.h b/cc/overdraw_metrics.h index eb5f5db..bbeba8b 100644 --- a/cc/overdraw_metrics.h +++ b/cc/overdraw_metrics.h @@ -13,13 +13,13 @@ class WebTransformationMatrix; namespace cc { class IntRect; -class LayerTreeHost; -class LayerTreeHostImpl; +class CCLayerTreeHost; +class CCLayerTreeHostImpl; // FIXME: compute overdraw metrics only occasionally, not every frame. -class OverdrawMetrics { +class CCOverdrawMetrics { public: - static scoped_ptr<OverdrawMetrics> create(bool recordMetricsForFrame) { return make_scoped_ptr(new OverdrawMetrics(recordMetricsForFrame)); } + static scoped_ptr<CCOverdrawMetrics> create(bool recordMetricsForFrame) { return make_scoped_ptr(new CCOverdrawMetrics(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 RenderSurfaceImpl texture(s) being present using the given number of bytes. + // Record RenderSurface 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 LayerTreeHost*) const; - void recordMetrics(const LayerTreeHostImpl*) const; + void recordMetrics(const CCLayerTreeHost*) const; + void recordMetrics(const CCLayerTreeHostImpl*) const; // Accessors for tests. float pixelsDrawnOpaque() const { return m_pixelsDrawnOpaque; } @@ -59,7 +59,7 @@ private: DrawingToScreen }; - explicit OverdrawMetrics(bool recordMetricsForFrame); + explicit CCOverdrawMetrics(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 RenderSurfaceImpl textures. + // Count the number of bytes in RenderSurface textures. unsigned long long m_renderSurfaceTextureUseBytes; // These values are used for saving metrics during draw. |