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

Unified Diff: ui/gfx/image/image_skia_operations.cc

Issue 11235017: Revert to old rect conversion behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing 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
« no previous file with comments | « content/renderer/render_widget.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/gfx/image/image_skia_operations.cc
diff --git a/ui/gfx/image/image_skia_operations.cc b/ui/gfx/image/image_skia_operations.cc
index 0dcc4d81955f4f4cebd38e4c68074580efa172f3..029304b305ca5a9a954a79d1b3efdabf0a745fa5 100644
--- a/ui/gfx/image/image_skia_operations.cc
+++ b/ui/gfx/image/image_skia_operations.cc
@@ -292,7 +292,7 @@ class ExtractSubsetImageSource: public gfx::ImageSkiaSource {
scaled_subset_bounds.Scale(
ui::GetScaleFactorScale(image_rep.scale_factor()));
SkIRect subset_bounds_in_pixel = RectToSkIRect(
- ToEnclosingRect(scaled_subset_bounds));
+ ToFlooredRectDeprecated(scaled_subset_bounds));
SkBitmap dst;
bool success = image_rep.sk_bitmap().extractSubset(&dst,
subset_bounds_in_pixel);
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/gfx/rect_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698