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

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

Issue 2699983002: ImageSkia: don't force fallback to a supported scale when the image (Closed)
Patch Set: Created 3 years, 10 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/image/image_skia.cc
diff --git a/ui/gfx/image/image_skia.cc b/ui/gfx/image/image_skia.cc
index fc5cef4761e8ecbec92f66d8aa617c4d3b547c78..20349b4baf14c71cd7fd7200697b559abc4fcf84 100644
--- a/ui/gfx/image/image_skia.cc
+++ b/ui/gfx/image/image_skia.cc
@@ -219,7 +219,7 @@ std::vector<ImageSkiaRep>::iterator ImageSkiaStorage::FindRepresentation(
ImageSkiaRep image;
float resource_scale = scale;
- if (g_supported_scales) {
+ if (!HasRepresentationAtAllScales() && g_supported_scales) {
if (g_supported_scales->back() <= scale) {
resource_scale = g_supported_scales->back();
} else {
« 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