blob: a96dd004275dd3f59fcb387d80d7cd439a6676db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
|