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

Unified Diff: ui/gfx/canvas.cc

Issue 275693003: Use the scale factor in the image in the DrawImageIntHelper function in case we are not drawing in … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index a541c5afe2396a69f6da3126fd821d16b1eb2727..84782cec863ee984084acae4cf18cb259efcfed8 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -649,7 +649,7 @@ void Canvas::DrawImageIntHelper(const ImageSkia& image,
image_rep,
SkShader::kRepeat_TileMode,
shader_scale,
- pixel ? 1.0f : image_scale);
+ pixel ? 1.0f : image_rep.scale());
// Set up our paint to use the shader & release our reference (now just owned
// by the paint).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698