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

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: 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..724d350b132139b54c4785618ed3444473c8e678 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -1050,7 +1050,7 @@ 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::ToEnclosingRect(gfx::SkRectToRectF(sk_clip_rect));
}
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698