Commit f7164663 authored by ananta@chromium.org's avatar ananta@chromium.org

Use the scale factor in the image in the DrawImageIntHelper function in case...

Use the scale factor in the image in the DrawImageIntHelper function in case we are not drawing in pixels.

BUG=370392
R=oshima

Review URL: https://codereview.chromium.org/275693003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269818 0039d316-1c4b-4281-b951-d872f2087c98
parent d3f8a02a
......@@ -621,7 +621,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).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment