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

Unified Diff: cc/overdraw_metrics.h

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to tip of tree and addressed feedback Created 8 years, 1 month 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 46916bf62cfa94fe4d12d3373b52024b4c3dc569..81595e7fc159f32adb699ce8017e2898abf97f02 100644
--- a/cc/overdraw_metrics.h
+++ b/cc/overdraw_metrics.h
@@ -9,10 +9,7 @@
namespace gfx {
class Rect;
-}
-
-namespace WebKit {
-class WebTransformationMatrix;
+class Transform;
}
namespace cc {
@@ -31,7 +28,7 @@ public:
// Records that an invalid tile was culled and did not need to be painted/uploaded, and did not contribute to other tiles needing to be painted.
void didCullTilesForUpload(int count);
// Records pixels that were uploaded to texture memory.
- void didUpload(const WebKit::WebTransformationMatrix& transformToTarget, const gfx::Rect& uploadRect, const gfx::Rect& opaqueRect);
+ void didUpload(const gfx::Transform& transformToTarget, const gfx::Rect& uploadRect, const gfx::Rect& 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.
@@ -40,9 +37,9 @@ public:
// These methods are used for saving metrics during draw.
// Record pixels that were not drawn to screen.
- void didCullForDrawing(const WebKit::WebTransformationMatrix& transformToTarget, const gfx::Rect& beforeCullRect, const gfx::Rect& afterCullRect);
+ void didCullForDrawing(const gfx::Transform& transformToTarget, const gfx::Rect& beforeCullRect, const gfx::Rect& afterCullRect);
// Record pixels that were drawn to screen.
- void didDraw(const WebKit::WebTransformationMatrix& transformToTarget, const gfx::Rect& afterCullRect, const gfx::Rect& opaqueRect);
+ void didDraw(const gfx::Transform& transformToTarget, const gfx::Rect& afterCullRect, const gfx::Rect& opaqueRect);
void recordMetrics(const LayerTreeHost*) const;
void recordMetrics(const LayerTreeHostImpl*) const;

Powered by Google App Engine
This is Rietveld 408576698