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

Unified Diff: ui/compositor/layer_unittest.cc

Issue 11359172: ui: Remove implicit flooring in skia rect conversion methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make root window transform in tests produce an integer result 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 | « ui/aura/window_unittest.cc ('k') | ui/gfx/rect_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 140c35654967c3baafe2b02d5053d0dda708b1eb..74b9cfd4e8de21aa1d6fad6d9690e61fe2d52832 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -1038,7 +1038,7 @@ class SchedulePaintLayerDelegate : public LayerDelegate {
return value;
}
- const gfx::Rect& last_clip_rect() const { return last_clip_rect_; }
+ const gfx::RectF& last_clip_rect() const { return last_clip_rect_; }
private:
// Overridden from LayerDelegate:
@@ -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::SkRectToRectF(sk_clip_rect);
}
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {
@@ -1063,7 +1063,7 @@ class SchedulePaintLayerDelegate : public LayerDelegate {
int paint_count_;
Layer* layer_;
gfx::Rect schedule_paint_rect_;
- gfx::Rect last_clip_rect_;
+ gfx::RectF last_clip_rect_;
DISALLOW_COPY_AND_ASSIGN(SchedulePaintLayerDelegate);
};
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/gfx/rect_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698