/external/chromium_org/ui/gfx/image/ |
D | image_skia_operations.cc | 167 ImageSkiaRep image_rep = image_.GetRepresentation(scale); in GetImageForScale() local 170 image_rep.pixel_width(), in GetImageForScale() 171 image_rep.pixel_height()); in GetImageForScale() 175 SkBitmapOperations::CreateMaskedBitmap(image_rep.sk_bitmap(), alpha), in GetImageForScale() 176 image_rep.scale()); in GetImageForScale() 257 ImageSkiaRep image_rep = image_.GetRepresentation(scale); in GetImageForScale() local 259 SkBitmapOperations::CreateHSLShiftedBitmap(image_rep.sk_bitmap(), in GetImageForScale() 260 hsl_shift_), image_rep.scale()); in GetImageForScale() 287 ImageSkiaRep image_rep = image_.GetRepresentation(scale); in GetImageForScale() local 289 if (image_rep.scale() != mask_rep.scale()) { in GetImageForScale() [all …]
|
D | image_skia.cc | 205 ImageSkia::ImageSkia(const ImageSkiaRep& image_rep) { in ImageSkia() argument 206 Init(image_rep); in ImageSkia() 269 void ImageSkia::AddRepresentation(const ImageSkiaRep& image_rep) { in AddRepresentation() argument 270 DCHECK(!image_rep.is_null()); in AddRepresentation() 278 Init(image_rep); in AddRepresentation() 281 storage_->image_reps().push_back(image_rep); in AddRepresentation() 382 void ImageSkia::Init(const ImageSkiaRep& image_rep) { in Init() argument 384 if (image_rep.sk_bitmap().empty()) { in Init() 389 NULL, gfx::Size(image_rep.GetWidth(), image_rep.GetHeight())); in Init() 390 storage_->image_reps().push_back(image_rep); in Init()
|
D | image_skia.h | 54 explicit ImageSkia(const gfx::ImageSkiaRep& image_rep); 95 void AddRepresentation(const gfx::ImageSkiaRep& image_rep); 157 void Init(const gfx::ImageSkiaRep& image_rep);
|
D | image_unittest_util.cc | 161 gfx::ImageSkiaRep image_rep = in ImageSkiaStructureMatches() local 163 if (image_rep.is_null() || image_rep.scale() != scales[i]) in ImageSkiaStructureMatches() 166 if (image_rep.pixel_width() != static_cast<int>(width * scales[i]) || in ImageSkiaStructureMatches() 167 image_rep.pixel_height() != static_cast<int>(height * scales[i])) { in ImageSkiaStructureMatches()
|
D | image_skia_util_mac.mm | 26 for (NSImageRep* image_rep in [image representations]) { 27 float diff = std::abs(desired_size.width - [image_rep pixelsWide]) + 28 std::abs(desired_size.height - [image_rep pixelsHigh]); 31 closest_match = image_rep;
|
D | image_mac_unittest.mm | 56 NSBitmapImageRep** image_rep) { 57 *image_rep = [[[NSBitmapImageRep alloc] 70 unsigned char* image_rep_data = [*image_rep bitmapData];
|
/external/chromium_org/ui/gfx/ |
D | canvas.cc | 46 Canvas::Canvas(const ImageSkiaRep& image_rep, bool is_opaque) in Canvas() argument 47 : image_scale_(image_rep.scale()), in Canvas() 49 skia::CreatePlatformCanvas(image_rep.pixel_width(), in Canvas() 50 image_rep.pixel_height(), in Canvas() 55 DrawImageInt(ImageSkia(image_rep), 0, 0); in Canvas() 366 const ImageSkiaRep& image_rep = GetImageRepToPaint(image); in DrawImageInt() local 367 if (image_rep.is_null()) in DrawImageInt() 369 const SkBitmap& bitmap = image_rep.sk_bitmap(); in DrawImageInt() 370 float bitmap_scale = image_rep.scale(); in DrawImageInt() 421 const ImageSkiaRep& image_rep = GetImageRepToPaint(image, in DrawImageInt() local [all …]
|
D | skia_util.cc | 64 skia::RefPtr<SkShader> CreateImageRepShader(const gfx::ImageSkiaRep& image_rep, in CreateImageRepShader() argument 68 image_rep.sk_bitmap(), tile_mode, tile_mode)); in CreateImageRepShader() 71 SkScalar bitmap_scale = SkFloatToScalar(image_rep.scale()); in CreateImageRepShader()
|
D | skia_util.h | 46 const gfx::ImageSkiaRep& image_rep,
|
D | canvas.h | 102 Canvas(const ImageSkiaRep& image_rep, bool is_opaque);
|
/external/chromium_org/ui/base/resource/ |
D | resource_bundle_unittest.cc | 473 gfx::ImageSkiaRep image_rep = in TEST_F() local 475 EXPECT_EQ(ui::SCALE_FACTOR_100P, GetSupportedScaleFactor(image_rep.scale())); in TEST_F() 476 image_rep = in TEST_F() 478 EXPECT_EQ(ui::SCALE_FACTOR_200P, GetSupportedScaleFactor(image_rep.scale())); in TEST_F() 482 image_rep = image_skia->GetRepresentation( in TEST_F() 484 ui::ScaleFactor scale_factor = GetSupportedScaleFactor(image_rep.scale()); in TEST_F() 516 gfx::ImageSkiaRep image_rep = in TEST_F() local 518 EXPECT_EQ(ui::SCALE_FACTOR_200P, GetSupportedScaleFactor(image_rep.scale())); in TEST_F() 519 EXPECT_EQ(20, image_rep.pixel_width()); in TEST_F() 520 EXPECT_EQ(20, image_rep.pixel_height()); in TEST_F() [all …]
|
D | resource_bundle_mac.mm | 132 NSImageRep* image_rep = [NSBitmapImageRep imageRepWithData:ns_data]; 133 if (image_rep) 134 [ns_image addRepresentation:image_rep];
|
/external/chromium_org/ash/desktop_background/ |
D | wallpaper_resizer.cc | 98 const gfx::ImageSkiaRep& image_rep = image.GetRepresentation(1.0f); in GetImageId() local 99 return image_rep.is_null() ? 0 : image_rep.sk_bitmap().getGenerationID(); in GetImageId()
|
/external/chromium_org/ash/drag_drop/ |
D | drag_image_view.cc | 124 gfx::ImageSkiaRep image_rep = GetImage().GetRepresentation(device_scale); in OnPaint() local 125 if (image_rep.is_null()) in OnPaint() 128 image_rep.sk_bitmap(), skia::ImageOperations::RESIZE_LANCZOS3, in OnPaint()
|
D | drag_drop_controller_unittest.cc | 80 gfx::ImageSkiaRep image_rep(gfx::Size(10, 20), 1.0f); in WriteDragData() local 81 gfx::ImageSkia image_skia(image_rep); in WriteDragData()
|
/external/chromium_org/ui/base/cursor/ |
D | cursor_loader_x11.cc | 161 const gfx::ImageSkiaRep& image_rep = image->GetRepresentation( in LoadImageCursor() local 163 SkBitmap bitmap = image_rep.sk_bitmap(); in LoadImageCursor() 179 const gfx::ImageSkiaRep& image_rep = image->GetRepresentation( in LoadAnimatedCursor() local 181 SkBitmap bitmap = image_rep.sk_bitmap(); in LoadAnimatedCursor()
|
/external/chromium_org/skia/ext/ |
D | skia_utils_mac.mm | 22 NSImageRep* image_rep, 26 // Only image or image_rep should be provided, not both. 27 DCHECK((image != 0) ^ (image_rep != 0)); 78 [image_rep drawInRect:drawRect 229 SkBitmap NSImageRepToSkBitmapWithColorSpace(NSImageRep* image_rep, 234 nil, image_rep, size, is_opaque, color_space);
|
/external/chromium_org/chrome/browser/extensions/ |
D | extension_web_ui.cc | 96 const gfx::ImageSkiaRep& image_rep = image_reps[i]; in RunFaviconCallbackAsync() local 99 if (gfx::PNGCodec::EncodeBGRASkBitmap(image_rep.sk_bitmap(), in RunFaviconCallbackAsync() 104 bitmap_result.pixel_size = gfx::Size(image_rep.pixel_width(), in RunFaviconCallbackAsync() 105 image_rep.pixel_height()); in RunFaviconCallbackAsync()
|
D | image_loader.cc | 346 const ImageRepresentation& image_rep = it->image_representation; in ReplyBack() local 350 ui::GetImageScale(image_rep.scale_factor))); in ReplyBack()
|
/external/chromium_org/ash/display/ |
D | mirror_window_controller.cc | 133 const gfx::ImageSkiaRep& image_rep = in SetCursorImage() local 135 size_ = image_rep.pixel_size(); in SetCursorImage() 136 cursor_image_ = gfx::ImageSkia::CreateFrom1xBitmap(image_rep.sk_bitmap()); in SetCursorImage()
|
/external/chromium_org/chrome/browser/ui/webui/task_manager/ |
D | task_manager_handler.cc | 334 const gfx::ImageSkiaRep image_rep = in CreateColumnValue() local 337 webui::GetBitmapDataUrl(image_rep.sk_bitmap())); in CreateColumnValue()
|
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/ |
D | internet_options_handler.cc | 431 gfx::ImageSkiaRep image_rep = in SetCommonNetworkInfo() local 434 icon.isNull() ? "" : webui::GetBitmapDataUrl(image_rep.sk_bitmap()); in SetCommonNetworkInfo() 1273 gfx::ImageSkiaRep image_rep = icon->GetRepresentation( in GetIconDataUrl() local 1275 return webui::GetBitmapDataUrl(image_rep.sk_bitmap()); in GetIconDataUrl()
|
/external/chromium_org/ui/base/x/ |
D | x11_util.cc | 1180 gfx::ImageSkiaRep image_rep(bitmap, canvas->image_scale()); in CopyAreaToCanvas() local 1181 image_skia.AddRepresentation(image_rep); in CopyAreaToCanvas()
|