/external/chromium_org/ui/gfx/image/ |
D | image_skia_util_mac.mm | 17 #include "ui/gfx/image/image_skia.h" 62 gfx::ImageSkia image_skia; 76 image_skia.AddRepresentation(gfx::ImageSkiaRep(bitmap, scale)); 78 return image_skia; 81 NSImage* NSImageFromImageSkia(const gfx::ImageSkia& image_skia) { 82 if (image_skia.isNull()) 86 image_skia.EnsureRepsForSupportedScales(); 87 std::vector<gfx::ImageSkiaRep> image_reps = image_skia.image_reps(); 94 [image setSize:NSMakeSize(image_skia.width(), image_skia.height())]; 98 NSImage* NSImageFromImageSkiaWithColorSpace(const gfx::ImageSkia& image_skia, [all …]
|
D | image_skia_unittest.cc | 94 explicit TestOnThread(ImageSkia* image_skia) in TestOnThread() argument 96 image_skia_(image_skia), in TestOnThread() 151 ImageSkia image_skia(new FixedSource(image), Size(100, 200)); in TEST_F() local 152 EXPECT_EQ(0U, image_skia.image_reps().size()); in TEST_F() 154 const ImageSkiaRep& result_100p = image_skia.GetRepresentation(1.0f); in TEST_F() 158 EXPECT_EQ(1U, image_skia.image_reps().size()); in TEST_F() 160 const ImageSkiaRep& result_200p = image_skia.GetRepresentation(2.0f); in TEST_F() 167 EXPECT_EQ(1U, image_skia.image_reps().size()); in TEST_F() 171 image_skia.GetRepresentation(1.0f); in TEST_F() 172 image_skia.GetRepresentation(2.0f); in TEST_F() [all …]
|
D | image_unittest.cc | 83 gfx::ImageSkia image_skia; in TEST_F() local 84 EXPECT_TRUE(image_skia.isNull()); in TEST_F() 85 gfx::Image image2(image_skia); in TEST_F() 172 gfx::ImageSkia image_skia; in TEST_F() local 173 image_skia.AddRepresentation(gfx::ImageSkiaRep(gt::CreateBitmap( in TEST_F() 175 gfx::Image image1(image_skia); in TEST_F() 218 gfx::ImageSkia image_skia; in TEST_F() local 219 image_skia.AddRepresentation(gfx::ImageSkiaRep(bitmap_1x, in TEST_F() 221 image_skia.AddRepresentation(gfx::ImageSkiaRep(gt::CreateBitmap( in TEST_F() 223 gfx::Image image(image_skia); in TEST_F() [all …]
|
D | image_skia_util_ios.mm | 13 #include "ui/gfx/image/image_skia.h" 18 gfx::ImageSkia image_skia; 23 image_skia.AddRepresentation(image_skia_rep); 24 return image_skia; 40 UIImage* UIImageFromImageSkia(const gfx::ImageSkia& image_skia) { 42 image_skia.GetRepresentation(ImageSkia::GetSupportedScales().back()));
|
D | image_mac_unittest.mm | 12 #include "ui/gfx/image/image_skia.h" 109 const gfx::ImageSkia* image_skia = image.ToImageSkia(); 114 EXPECT_TRUE(gt::ImageSkiaStructureMatches(*image_skia, kWidth1x, kHeight1x, 140 const gfx::ImageSkia* image_skia = image.ToImageSkia(); 145 EXPECT_TRUE(gt::ImageSkiaStructureMatches(*image_skia, kWidth1x, kHeight1x, 158 gfx::ImageSkia image_skia; 159 image_skia.AddRepresentation(gfx::ImageSkiaRep( 161 image_skia.AddRepresentation(gfx::ImageSkiaRep( 164 gfx::Image image(image_skia); 202 gfx::ImageSkia image_skia = gfx::ImageSkiaFromNSImage(ns_image); [all …]
|
D | image_unittest_util.cc | 147 const gfx::ImageSkia& image_skia, in ImageSkiaStructureMatches() argument 151 if (image_skia.isNull() || in ImageSkiaStructureMatches() 152 image_skia.width() != width || in ImageSkiaStructureMatches() 153 image_skia.height() != height || in ImageSkiaStructureMatches() 154 image_skia.image_reps().size() != scales.size()) { in ImageSkiaStructureMatches() 160 image_skia.GetRepresentation(scales[i]); in ImageSkiaStructureMatches()
|
D | image_skia_util_mac.h | 35 GFX_EXPORT NSImage* NSImageFromImageSkia(const gfx::ImageSkia& image_skia); 39 const gfx::ImageSkia& image_skia,
|
D | image_ios.mm | 15 #include "ui/gfx/image/image_skia.h" 115 gfx::ImageSkia* image_skia = new gfx::ImageSkia(); 122 image_skia->AddRepresentation(image_skia_rep); 124 return image_skia;
|
D | image_family.cc | 40 void ImageFamily::Add(const gfx::ImageSkia& image_skia) { in Add() argument 41 Add(gfx::Image(image_skia)); in Add()
|
/external/chromium_org/extensions/browser/ |
D | extension_icon_image_unittest.cc | 239 gfx::ImageSkia::ImageSkiaReps image_reps = image.image_skia().image_reps(); in TEST_F() 243 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(1.0f); in TEST_F() 253 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F() 255 representation = image.image_skia().GetRepresentation(1.0f); in TEST_F() 262 representation = image.image_skia().GetRepresentation(2.0f); in TEST_F() 270 ASSERT_EQ(2u, image.image_skia().image_reps().size()); in TEST_F() 272 representation = image.image_skia().GetRepresentation(2.0f); in TEST_F() 305 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(2.0f); in TEST_F() 309 ASSERT_EQ(1u, image.image_skia().image_reps().size()); in TEST_F() 311 representation = image.image_skia().GetRepresentation(2.0f); in TEST_F() [all …]
|
D | image_loader.cc | 277 gfx::ImageSkia image_skia; in ReplyBack() local 284 image_skia.AddRepresentation(gfx::ImageSkiaRep( in ReplyBack() 290 if (!image_skia.isNull()) { in ReplyBack() 291 image_skia.MakeThreadSafe(); in ReplyBack() 292 image = gfx::Image(image_skia); in ReplyBack()
|
/external/chromium_org/ui/base/dragdrop/ |
D | drag_utils_win.cc | 60 void SetDragImageOnDataObject(const gfx::ImageSkia& image_skia, in SetDragImageOnDataObject() argument 63 DCHECK(data_object && !image_skia.size().IsEmpty()); in SetDragImageOnDataObject() 68 SkBitmapOperations::UnPreMultiply(*image_skia.bitmap())); in SetDragImageOnDataObject() 73 gfx::Size(image_skia.bitmap()->width(), image_skia.bitmap()->height()), in SetDragImageOnDataObject() 82 data_object->provider().SetDragImage(image_skia, cursor_offset); in SetDragImageOnDataObject()
|
/external/chromium_org/chrome/browser/ |
D | icon_loader_mac.mm | 14 #include "ui/gfx/image/image_skia.h" 53 gfx::ImageSkia image_skia(gfx::ImageSkiaFromResizedNSImage(icon, size)); 54 if (!image_skia.isNull()) { 55 image_skia.MakeThreadSafe(); 56 image_.reset(new gfx::Image(image_skia));
|
D | icon_loader_win.cc | 64 gfx::ImageSkia image_skia(gfx::ImageSkiaRep( in ReadIcon() local 66 image_skia.MakeThreadSafe(); in ReadIcon() 67 image_.reset(new gfx::Image(image_skia)); in ReadIcon()
|
D | icon_loader_chromeos.cc | 204 gfx::ImageSkia image_skia(ResizeImage(*(rb.GetImageNamed(idr)).ToImageSkia(), in ReadIcon() local 206 image_skia.MakeThreadSafe(); in ReadIcon() 207 image_.reset(new gfx::Image(image_skia)); in ReadIcon()
|
/external/chromium_org/ui/base/resource/ |
D | resource_bundle_unittest.cc | 496 gfx::ImageSkia* image_skia = resource_bundle->GetImageSkiaNamed(3); in TEST_F() local 501 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F() 504 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F() 510 image_skia->GetRepresentation( in TEST_F() 514 image_skia->GetRepresentation( in TEST_F() 520 image_rep = image_skia->GetRepresentation( in TEST_F() 528 EXPECT_EQ(1.4f, image_skia->GetRepresentation(1.4f).scale()); in TEST_F() 554 gfx::ImageSkia* image_skia = resource_bundle->GetImageSkiaNamed(3); in TEST_F() local 559 image_skia->GetRepresentation(GetScaleForScaleFactor( in TEST_F() 596 gfx::ImageSkia* image_skia = resource_bundle->GetImageSkiaNamed(3); in TEST_F() local [all …]
|
/external/chromium_org/ui/wm/core/ |
D | image_grid.cc | 307 gfx::ImageSkia image_skia = image->AsImageSkia(); in SetImage() local 310 if (image_skia.width() < kMinimumSize) { in SetImage() 311 image_skia = gfx::ImageSkiaOperations::CreateResizedImage( in SetImage() 312 image_skia, in SetImage() 314 gfx::Size(kMinimumSize, image_skia.height())); in SetImage() 318 if (image_skia.height() < kMinimumSize) { in SetImage() 319 image_skia = gfx::ImageSkiaOperations::CreateResizedImage( in SetImage() 320 image_skia, in SetImage() 322 gfx::Size(image_skia.width(), kMinimumSize)); in SetImage() 332 const gfx::Size size = image_skia.size(); in SetImage() [all …]
|
/external/chromium_org/chrome/browser/extensions/ |
D | app_icon_loader_impl.cc | 71 image->image_skia().EnsureRepsForSupportedScales(); in FetchImage() 89 BuildImage(i->second, i->first->image_skia()); in UpdateImage() 101 BuildImage(i->second, i->first->image_skia()); in OnExtensionIconImageChanged()
|
/external/chromium_org/chrome/browser/profiles/ |
D | profile_avatar_icon_util_unittest.cc | 27 gfx::ImageSkia image_skia = *image.ToImageSkia(); in VerifyScaling() local 28 canvas.DrawImageInt(image_skia, 15, 10); in VerifyScaling() 31 canvas2.DrawImageInt(image_skia, 15, 10); in VerifyScaling()
|
/external/chromium_org/athena/extensions/ |
D | extension_app_model_builder.cc | 37 icon_image_.image_skia().EnsureRepsForSupportedScales(); in AppItem() 38 SetIcon(icon_image_.image_skia(), false); in AppItem()
|
/external/chromium_org/chrome/browser/themes/ |
D | browser_theme_pack_unittest.cc | 280 const gfx::ImageSkia* image_skia = image.ToImageSkia(); in VerifyHiDpiTheme() local 281 ASSERT_TRUE(image_skia); in VerifyHiDpiTheme() 283 const gfx::ImageSkiaRep& rep1 = image_skia->GetRepresentation(1.0f); in VerifyHiDpiTheme() 295 const gfx::ImageSkiaRep& rep2 = image_skia->GetRepresentation(2.0f); in VerifyHiDpiTheme() 320 image_skia = image.ToImageSkia(); in VerifyHiDpiTheme() 321 ASSERT_TRUE(image_skia); in VerifyHiDpiTheme() 323 const gfx::ImageSkiaRep& rep3 = image_skia->GetRepresentation(1.0f); in VerifyHiDpiTheme() 345 const gfx::ImageSkiaRep& rep4 = image_skia->GetRepresentation(2.0f); in VerifyHiDpiTheme()
|
D | browser_theme_pack.cc | 685 gfx::ImageSkia* image_skia = in BuildFromExtension() local 687 image_skia->MakeThreadSafe(); in BuildFromExtension() 700 gfx::ImageSkia image_skia(source, source_image_skia.size()); in BuildFromExtension() local 701 it->second = gfx::Image(image_skia); in BuildFromExtension() 893 gfx::ImageSkia image_skia(new ThemeImagePngSource(png_map), 1.0f); in GetImageNamed() local 895 gfx::Image ret = gfx::Image(image_skia); in GetImageNamed() 1276 gfx::ImageSkia image_skia; in LoadRawBitmapsTo() local 1307 image_skia.AddRepresentation( in LoadRawBitmapsTo() 1317 if (!is_copyable && !image_skia.isNull()) in LoadRawBitmapsTo() 1318 (*image_cache)[prs_id] = gfx::Image(image_skia); in LoadRawBitmapsTo() [all …]
|
/external/chromium_org/ash/system/tray/ |
D | tray_item_more.cc | 54 void TrayItemMore::SetImage(const gfx::ImageSkia* image_skia) { in SetImage() argument 55 icon_->SetImage(image_skia); in SetImage()
|
/external/chromium_org/ui/views/controls/ |
D | image_view.cc | 54 void ImageView::SetImage(const gfx::ImageSkia* image_skia) { in SetImage() argument 55 if (image_skia) { in SetImage() 56 SetImage(*image_skia); in SetImage()
|
/external/chromium_org/chrome/browser/ui/views/location_bar/ |
D | icon_label_bubble_view.cc | 77 void IconLabelBubbleView::SetImage(const gfx::ImageSkia& image_skia) { in SetImage() argument 78 image_->SetImage(image_skia); in SetImage()
|