Home
last modified time | relevance | path

Searched refs:image_rep (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/ui/gfx/image/
Dimage_skia_operations.cc167 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 …]
Dimage_skia.cc205 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()
Dimage_skia.h54 explicit ImageSkia(const gfx::ImageSkiaRep& image_rep);
95 void AddRepresentation(const gfx::ImageSkiaRep& image_rep);
157 void Init(const gfx::ImageSkiaRep& image_rep);
Dimage_unittest_util.cc161 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()
Dimage_skia_util_mac.mm26 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;
Dimage_mac_unittest.mm56 NSBitmapImageRep** image_rep) {
57 *image_rep = [[[NSBitmapImageRep alloc]
70 unsigned char* image_rep_data = [*image_rep bitmapData];
/external/chromium_org/ui/gfx/
Dcanvas.cc46 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 …]
Dskia_util.cc64 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()
Dskia_util.h46 const gfx::ImageSkiaRep& image_rep,
Dcanvas.h102 Canvas(const ImageSkiaRep& image_rep, bool is_opaque);
/external/chromium_org/ui/base/resource/
Dresource_bundle_unittest.cc473 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 …]
Dresource_bundle_mac.mm132 NSImageRep* image_rep = [NSBitmapImageRep imageRepWithData:ns_data];
133 if (image_rep)
134 [ns_image addRepresentation:image_rep];
/external/chromium_org/ash/desktop_background/
Dwallpaper_resizer.cc98 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/
Ddrag_image_view.cc124 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()
Ddrag_drop_controller_unittest.cc80 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/
Dcursor_loader_x11.cc161 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/
Dskia_utils_mac.mm22 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/
Dextension_web_ui.cc96 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()
Dimage_loader.cc346 const ImageRepresentation& image_rep = it->image_representation; in ReplyBack() local
350 ui::GetImageScale(image_rep.scale_factor))); in ReplyBack()
/external/chromium_org/ash/display/
Dmirror_window_controller.cc133 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/
Dtask_manager_handler.cc334 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/
Dinternet_options_handler.cc431 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/
Dx11_util.cc1180 gfx::ImageSkiaRep image_rep(bitmap, canvas->image_scale()); in CopyAreaToCanvas() local
1181 image_skia.AddRepresentation(image_rep); in CopyAreaToCanvas()