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

Unified Diff: ui/compositor/layer_unittest.cc

Issue 11275089: SkRect to gfx::Rect type conversions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove unnecessary lines 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: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 7d2a1f66a67038b1e04818eb7ed533f7c29abf0a..e4994d7032eacc15ca6bbd01ff57e4c3c2b45dd6 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -1050,7 +1050,8 @@ class SchedulePaintLayerDelegate : public LayerDelegate {
}
SkRect sk_clip_rect;
if (canvas->sk_canvas()->getClipBounds(&sk_clip_rect))
- last_clip_rect_ = gfx::SkRectToRect(sk_clip_rect);
+ last_clip_rect_ = gfx::ToFlooredRectDeprecated(
danakj 2012/11/01 17:38:27 Tests check that the integer rect contains things,
+ gfx::SkRectToRectF(sk_clip_rect));
}
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698