Home
last modified time | relevance | path

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

1234

/external/chromium_org/ui/gfx/image/
Dimage_skia_util_mac.mm17 #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 …]
Dimage_skia_unittest.cc94 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 …]
Dimage_unittest.cc83 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 …]
Dimage_skia_util_ios.mm13 #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()));
Dimage_mac_unittest.mm12 #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 …]
Dimage_unittest_util.cc147 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()
Dimage_skia_util_mac.h35 GFX_EXPORT NSImage* NSImageFromImageSkia(const gfx::ImageSkia& image_skia);
39 const gfx::ImageSkia& image_skia,
Dimage_ios.mm15 #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;
Dimage_family.cc40 void ImageFamily::Add(const gfx::ImageSkia& image_skia) { in Add() argument
41 Add(gfx::Image(image_skia)); in Add()
/external/chromium_org/extensions/browser/
Dextension_icon_image_unittest.cc239 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 …]
Dimage_loader.cc277 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/
Ddrag_utils_win.cc60 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/
Dicon_loader_mac.mm14 #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));
Dicon_loader_win.cc64 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()
Dicon_loader_chromeos.cc204 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/
Dresource_bundle_unittest.cc496 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/
Dimage_grid.cc307 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/
Dapp_icon_loader_impl.cc71 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/
Dprofile_avatar_icon_util_unittest.cc27 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/
Dextension_app_model_builder.cc37 icon_image_.image_skia().EnsureRepsForSupportedScales(); in AppItem()
38 SetIcon(icon_image_.image_skia(), false); in AppItem()
/external/chromium_org/chrome/browser/themes/
Dbrowser_theme_pack_unittest.cc280 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()
Dbrowser_theme_pack.cc685 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/
Dtray_item_more.cc54 void TrayItemMore::SetImage(const gfx::ImageSkia* image_skia) { in SetImage() argument
55 icon_->SetImage(image_skia); in SetImage()
/external/chromium_org/ui/views/controls/
Dimage_view.cc54 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/
Dicon_label_bubble_view.cc77 void IconLabelBubbleView::SetImage(const gfx::ImageSkia& image_skia) { in SetImage() argument
78 image_->SetImage(image_skia); in SetImage()

1234