Home
last modified time | relevance | path

Searched refs:image_reps (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/ui/gfx/image/
Dimage_skia.cc77 std::vector<gfx::ImageSkiaRep>& image_reps() { return image_reps_; } in image_reps() function in gfx::internal::ImageSkiaStorage
116 non_const->image_reps().end(); in FindRepresentation()
118 non_const->image_reps().end(); in FindRepresentation()
121 non_const->image_reps().begin(); in FindRepresentation()
148 non_const->image_reps().push_back(image); in FindRepresentation()
155 non_const->image_reps().push_back(ImageSkiaRep(SkBitmap(), scale)); in FindRepresentation()
253 std::vector<gfx::ImageSkiaRep>& reps = storage_->image_reps(); in DeepCopy()
281 storage_->image_reps().push_back(image_rep); in AddRepresentation()
290 ImageSkiaReps& image_reps = storage_->image_reps(); in RemoveRepresentation() local
293 if (it != image_reps.end() && it->scale() == scale) in RemoveRepresentation()
[all …]
Dimage_skia_unittest.cc93 image_skia_->image_reps(); in Run()
119 EXPECT_EQ(0U, image_skia.image_reps().size()); in TEST()
125 EXPECT_EQ(1U, image_skia.image_reps().size()); in TEST()
134 EXPECT_EQ(1U, image_skia.image_reps().size()); in TEST()
140 EXPECT_EQ(1U, image_skia.image_reps().size()); in TEST()
145 EXPECT_EQ(0U, image_skia.image_reps().size()); in TEST()
150 EXPECT_EQ(1U, image_skia.image_reps().size()); in TEST()
159 EXPECT_EQ(2U, image_skia.image_reps().size()); in TEST()
164 EXPECT_EQ(2U, image_skia.image_reps().size()); in TEST()
166 EXPECT_EQ(2U, image_skia.image_reps().size()); in TEST()
[all …]
Dimage_skia_util_mac.mm93 std::vector<gfx::ImageSkiaRep> image_reps = image_skia.image_reps();
94 for (std::vector<gfx::ImageSkiaRep>::const_iterator it = image_reps.begin();
95 it != image_reps.end(); ++it) {
111 std::vector<gfx::ImageSkiaRep> image_reps = image_skia.image_reps();
112 for (std::vector<gfx::ImageSkiaRep>::const_iterator it = image_reps.begin();
113 it != image_reps.end(); ++it) {
Dimage.cc274 for (std::vector<ImagePNGRep>::const_iterator it = image_reps().begin(); in Size()
275 it != image_reps().end(); ++it) { in Size()
287 const std::vector<ImagePNGRep>& image_reps() const { return image_png_reps_; } in image_reps() function in gfx::internal::ImageRepPNG
528 Image::Image(const std::vector<ImagePNGRep>& image_reps) { in Image() argument
531 for (size_t i = 0; i < image_reps.size(); ++i) { in Image()
532 if (image_reps[i].raw_data.get() && image_reps[i].raw_data->size()) in Image()
533 filtered.push_back(image_reps[i]); in Image()
605 std::vector<gfx::ImagePNGRep> image_reps; in CreateFrom1xPNGBytes() local
606 image_reps.push_back(ImagePNGRep(raw_data, 1.0f)); in CreateFrom1xPNGBytes()
607 return gfx::Image(image_reps); in CreateFrom1xPNGBytes()
[all …]
Dimage_unittest_util.cc86 std::vector<gfx::ImageSkiaRep> img1_reps = img1.AsImageSkia().image_reps(); in IsEqual()
88 if (image_skia2.image_reps().size() != img1_reps.size()) in IsEqual()
156 image_skia.image_reps().size() != scales.size()) { in ImageSkiaStructureMatches()
Dimage_skia.h142 std::vector<gfx::ImageSkiaRep> image_reps() const;
Dimage.h74 explicit Image(const std::vector<ImagePNGRep>& image_reps);
Dimage_unittest.cc672 EXPECT_EQ(1u, image_skia.image_reps().size()); in TEST_F()
675 EXPECT_EQ(1u, image_skia.image_reps().size()); in TEST_F()
678 EXPECT_EQ(0u, image_skia.image_reps().size()); in TEST_F()
Dimage_mac_unittest.mm167 EXPECT_EQ(2u, image.ToImageSkia()->image_reps().size());
/external/chromium_org/chrome/browser/extensions/
Dextension_icon_image_unittest.cc242 gfx::ImageSkia::ImageSkiaReps image_reps = image.image_skia().image_reps(); in TEST_F() local
243 ASSERT_EQ(0u, image_reps.size()); in TEST_F()
256 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F()
273 ASSERT_EQ(2u, image.image_skia().image_reps().size()); in TEST_F()
313 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F()
352 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F()
391 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F()
431 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F()
476 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F()
509 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F()
[all …]
Dimage_loader_unittest.cc228 std::vector<gfx::ImageSkiaRep> image_reps = in TEST_F() local
229 image_.ToImageSkia()->image_reps(); in TEST_F()
230 ASSERT_EQ(2u, image_reps.size()); in TEST_F()
231 const gfx::ImageSkiaRep* img_rep1 = &image_reps[0]; in TEST_F()
232 const gfx::ImageSkiaRep* img_rep2 = &image_reps[1]; in TEST_F()
Dextension_web_ui.cc93 const std::vector<gfx::ImageSkiaRep>& image_reps = in RunFaviconCallbackAsync() local
94 image.AsImageSkia().image_reps(); in RunFaviconCallbackAsync()
95 for (size_t i = 0; i < image_reps.size(); ++i) { in RunFaviconCallbackAsync()
96 const gfx::ImageSkiaRep& image_rep = image_reps[i]; in RunFaviconCallbackAsync()
/external/chromium_org/chrome/browser/ui/app_list/search/people/
Dpeople_result.cc117 const std::vector<gfx::ImageSkiaRep>& image_reps = image_.image_reps(); in OnIconLoaded() local
118 for (size_t i = 0; i < image_reps.size(); ++i) in OnIconLoaded()
119 image_.RemoveRepresentation(image_reps[i].scale()); in OnIconLoaded()
/external/chromium_org/chrome/browser/history/
Dselect_favicon_frames_unittest.cc74 EXPECT_EQ(1u, image.image_reps().size()); in TEST()
90 EXPECT_EQ(1u, image.image_reps().size()); in TEST()
105 EXPECT_EQ(1u, image.image_reps().size()); in TEST()
121 EXPECT_EQ(1u, image.image_reps().size()); in TEST()
134 EXPECT_EQ(2u, image.image_reps().size()); in TEST()
150 EXPECT_EQ(2u, image.image_reps().size()); in TEST()
/external/chromium_org/chrome/browser/speech/
Dspeech_recognition_bubble.cc100 std::vector<gfx::ImageSkiaRep> image_reps = frame.image_reps(); in SpeechRecognitionBubbleImages() local
102 for (size_t i = 0; i < image_reps.size(); ++i) { in SpeechRecognitionBubbleImages()
103 const SkBitmap& copy_src = image_reps[i].sk_bitmap(); in SpeechRecognitionBubbleImages()
107 copy_dst, image_reps[i].scale())); in SpeechRecognitionBubbleImages()
/external/chromium_org/chrome/browser/ui/app_list/search/webstore/
Dwebstore_result.cc168 const std::vector<gfx::ImageSkiaRep>& image_reps = icon_.image_reps(); in OnIconLoaded() local
169 for (size_t i = 0; i < image_reps.size(); ++i) in OnIconLoaded()
170 icon_.RemoveRepresentation(image_reps[i].scale()); in OnIconLoaded()
/external/chromium_org/chrome/browser/favicon/
Dfavicon_service.cc283 const std::vector<gfx::ImageSkiaRep>& image_reps = image_skia.image_reps(); in SetFavicons() local
285 for (size_t i = 0; i < image_reps.size(); ++i) { in SetFavicons()
288 if (gfx::PNGCodec::EncodeBGRASkBitmap(image_reps[i].sk_bitmap(), in SetFavicons()
291 gfx::Size pixel_size(image_reps[i].pixel_width(), in SetFavicons()
292 image_reps[i].pixel_height()); in SetFavicons()
Dfavicon_util.cc244 resized_image_skia.image_reps(); in SelectFaviconFramesFromPNGs()
/external/chromium_org/chrome/browser/ui/app_list/test/
Dfast_show_pickler_unittest.cc35 std::vector<gfx::ImageSkiaRep> reps1(image1.image_reps()); in CompareImages()
36 std::vector<gfx::ImageSkiaRep> reps2(image2.image_reps()); in CompareImages()
/external/chromium_org/chrome/browser/ui/web_applications/
Dweb_app_ui.cc370 std::vector<gfx::ImageSkiaRep> image_reps = in OnImageLoaded() local
371 multires_image_skia.image_reps(); in OnImageLoaded()
372 for (std::vector<gfx::ImageSkiaRep>::const_iterator it = image_reps.begin(); in OnImageLoaded()
373 it != image_reps.end(); ++it) { in OnImageLoaded()
/external/chromium_org/ui/base/resource/
Dresource_bundle_unittest.cc465 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F()
468 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F()
575 EXPECT_EQ(1u, image_skia->image_reps().size()); in TEST_F()
577 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F()
/external/chromium_org/content/browser/web_contents/
Dweb_contents_view_aura.cc131 std::vector<gfx::ImagePNGRep> image_reps; in OverscrollWindowDelegate() local
132 image_reps.push_back(gfx::ImagePNGRep(entry->screenshot(), in OverscrollWindowDelegate()
135 image = gfx::Image(image_reps); in OverscrollWindowDelegate()
589 std::vector<gfx::ImagePNGRep> image_reps; in CreateSlideLayer() local
590 image_reps.push_back(gfx::ImagePNGRep(entry->screenshot(), in CreateSlideLayer()
593 image = gfx::Image(image_reps); in CreateSlideLayer()
/external/chromium_org/chrome/browser/themes/
Dbrowser_theme_pack.cc1463 ImageSkiaReps image_reps = image_skia.image_reps(); local
1464 if (image_reps.empty()) {
1467 for (ImageSkiaReps::iterator rep_it = image_reps.begin();
1468 rep_it != image_reps.end(); ++rep_it) {
/external/chromium_org/chrome/browser/ui/app_list/
Dfast_show_pickler.cc79 std::vector<gfx::ImageSkiaRep> reps(image.image_reps()); in PickleImage()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dsite_chip_view.cc89 if (!icon_image_->image_skia().image_reps().empty()) in SiteChipExtensionIcon()