Lines Matching defs:image_skia
5 #include "ui/gfx/image/image_skia.h"
94 explicit TestOnThread(ImageSkia* image_skia)
96 image_skia_(image_skia),
151 ImageSkia image_skia(new FixedSource(image), Size(100, 200));
152 EXPECT_EQ(0U, image_skia.image_reps().size());
154 const ImageSkiaRep& result_100p = image_skia.GetRepresentation(1.0f);
158 EXPECT_EQ(1U, image_skia.image_reps().size());
160 const ImageSkiaRep& result_200p = image_skia.GetRepresentation(2.0f);
167 EXPECT_EQ(1U, image_skia.image_reps().size());
171 image_skia.GetRepresentation(1.0f);
172 image_skia.GetRepresentation(2.0f);
173 EXPECT_EQ(1U, image_skia.image_reps().size());
177 ImageSkia image_skia(new DynamicSource(Size(100, 200)), Size(100, 200));
178 EXPECT_EQ(0U, image_skia.image_reps().size());
179 const ImageSkiaRep& result_100p = image_skia.GetRepresentation(1.0f);
183 EXPECT_EQ(1U, image_skia.image_reps().size());
186 image_skia.GetRepresentation(2.0f);
192 EXPECT_EQ(2U, image_skia.image_reps().size());
196 image_skia.GetRepresentation(1.0f);
197 EXPECT_EQ(2U, image_skia.image_reps().size());
198 image_skia.GetRepresentation(2.0f);
199 EXPECT_EQ(2U, image_skia.image_reps().size());
241 ImageSkia image_skia(new DynamicSource(Size(100, 200)), Size(100, 200));
242 const SkBitmap* bitmap = image_skia.bitmap();
415 ImageSkia image_skia = ImageSkia::CreateFrom1xBitmap(bitmap);
416 EXPECT_TRUE(image_skia.GetRepresentation(1.0f).unscaled());
421 image_skia.AddRepresentation(rep_2x);
422 EXPECT_FALSE(image_skia.GetRepresentation(1.0f).unscaled());
423 EXPECT_FALSE(image_skia.GetRepresentation(2.0f).unscaled());