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

Unified Diff: cc/overdraw_metrics.h

Issue 11275113: Remove most remaining references to IntRect and FloatRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compositor bindings 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
« no previous file with comments | « cc/occlusion_tracker_unittest.cc ('k') | cc/overdraw_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/overdraw_metrics.h
diff --git a/cc/overdraw_metrics.h b/cc/overdraw_metrics.h
index 177d9c9878ec4a2fc3dbc93e3a6b8ccac048fefc..fcc6bce10a3e43a942ab5ffd753df667402ce972 100644
--- a/cc/overdraw_metrics.h
+++ b/cc/overdraw_metrics.h
@@ -7,12 +7,15 @@
#include "base/memory/scoped_ptr.h"
+namespace gfx {
+class Rect;
+}
+
namespace WebKit {
class WebTransformationMatrix;
}
namespace cc {
-class IntRect;
class LayerTreeHost;
class LayerTreeHostImpl;
@@ -24,11 +27,11 @@ public:
// These methods are used for saving metrics during update/commit.
// Record pixels painted by WebKit into the texture updater, but does not mean the pixels were rasterized in main memory.
- void didPaint(const IntRect& paintedRect);
+ void didPaint(const gfx::Rect& paintedRect);
// 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 IntRect& uploadRect, const IntRect& opaqueRect);
+ void didUpload(const WebKit::WebTransformationMatrix& 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.
@@ -37,9 +40,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 IntRect& beforeCullRect, const IntRect& afterCullRect);
+ void didCullForDrawing(const WebKit::WebTransformationMatrix& transformToTarget, const gfx::Rect& beforeCullRect, const gfx::Rect& afterCullRect);
// Record pixels that were drawn to screen.
- void didDraw(const WebKit::WebTransformationMatrix& transformToTarget, const IntRect& afterCullRect, const IntRect& opaqueRect);
+ void didDraw(const WebKit::WebTransformationMatrix& transformToTarget, const gfx::Rect& afterCullRect, const gfx::Rect& opaqueRect);
void recordMetrics(const LayerTreeHost*) const;
void recordMetrics(const LayerTreeHostImpl*) const;
« no previous file with comments | « cc/occlusion_tracker_unittest.cc ('k') | cc/overdraw_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698