diff options
Diffstat (limited to 'www-client/chromium/files/chromium-89-uigfx-image-skia.patch')
-rw-r--r-- | www-client/chromium/files/chromium-89-uigfx-image-skia.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-89-uigfx-image-skia.patch b/www-client/chromium/files/chromium-89-uigfx-image-skia.patch new file mode 100644 index 0000000..a96dd00 --- /dev/null +++ b/www-client/chromium/files/chromium-89-uigfx-image-skia.patch @@ -0,0 +1,22 @@ +diff --git a/ui/gfx/image/image_skia.cc b/ui/gfx/image/image_skia.cc +index 6d2748d67..31dfdf5d2 100644 +--- a/ui/gfx/image/image_skia.cc ++++ b/ui/gfx/image/image_skia.cc +@@ -125,7 +125,7 @@ class ImageSkiaStorage : public base::RefCountedThreadSafe<ImageSkiaStorage> { + // one and rescale the image. + // Right now only Windows uses 2 and other platforms use 1 by default. + // TODO(mukai, oshima): abandon 1 code path and use 2 for every platforms. +- std::vector<const ImageSkiaRep>::iterator FindRepresentation( ++ std::vector<ImageSkiaRep>::const_iterator FindRepresentation( + float scale, + bool fetch_new_image) const; + +@@ -211,7 +211,7 @@ bool ImageSkiaStorage::HasRepresentationAtAllScales() const { + return source_ && source_->HasRepresentationAtAllScales(); + } + +-std::vector<const ImageSkiaRep>::iterator ImageSkiaStorage::FindRepresentation( ++std::vector<ImageSkiaRep>::const_iterator ImageSkiaStorage::FindRepresentation( + float scale, + bool fetch_new_image) const { + auto closest_iter = image_reps_.end(); |