/external/chromium_org/ui/base/dragdrop/ |
D | drag_utils_win.cc | 43 static HBITMAP CreateHBITMAPFromSkBitmap(const SkBitmap& sk_bitmap) { in CreateHBITMAPFromSkBitmap() argument 46 gfx::CreateBitmapHeader(sk_bitmap.width(), sk_bitmap.height(), &header); in CreateHBITMAPFromSkBitmap() 53 DCHECK_EQ(sk_bitmap.rowBytes(), static_cast<size_t>(sk_bitmap.width() * 4)); in CreateHBITMAPFromSkBitmap() 54 SkAutoLockPixels lock(sk_bitmap); in CreateHBITMAPFromSkBitmap() 56 bits, sk_bitmap.getPixels(), sk_bitmap.height() * sk_bitmap.rowBytes()); in CreateHBITMAPFromSkBitmap()
|
/external/chromium_org/chrome/browser/themes/ |
D | browser_theme_pack_unittest.cc | 285 EXPECT_EQ(80, rep1.sk_bitmap().width()); in VerifyHiDpiTheme() 286 EXPECT_EQ(80, rep1.sk_bitmap().height()); in VerifyHiDpiTheme() 287 rep1.sk_bitmap().lockPixels(); in VerifyHiDpiTheme() 288 EXPECT_EQ(SkColorSetRGB(255, 255, 255), rep1.sk_bitmap().getColor( 4, 4)); in VerifyHiDpiTheme() 289 EXPECT_EQ(SkColorSetRGB(255, 255, 255), rep1.sk_bitmap().getColor( 8, 8)); in VerifyHiDpiTheme() 290 EXPECT_EQ(SkColorSetRGB( 0, 241, 237), rep1.sk_bitmap().getColor(16, 16)); in VerifyHiDpiTheme() 291 EXPECT_EQ(SkColorSetRGB(255, 255, 255), rep1.sk_bitmap().getColor(24, 24)); in VerifyHiDpiTheme() 292 EXPECT_EQ(SkColorSetRGB( 0, 241, 237), rep1.sk_bitmap().getColor(32, 32)); in VerifyHiDpiTheme() 293 rep1.sk_bitmap().unlockPixels(); in VerifyHiDpiTheme() 297 EXPECT_EQ(160, rep2.sk_bitmap().width()); in VerifyHiDpiTheme() [all …]
|
/external/chromium_org/extensions/browser/ |
D | extension_icon_image_unittest.cc | 248 representation.sk_bitmap(), in TEST_F() 258 EXPECT_TRUE(gfx::BitmapsAreEqual(representation.sk_bitmap(), bitmap_16)); in TEST_F() 265 representation.sk_bitmap(), in TEST_F() 276 EXPECT_TRUE(gfx::BitmapsAreEqual(representation.sk_bitmap(), in TEST_F() 317 EXPECT_TRUE(gfx::BitmapsAreEqual(representation.sk_bitmap(), in TEST_F() 353 EXPECT_TRUE(gfx::BitmapsAreEqual(representation.sk_bitmap(), in TEST_F() 377 representation.sk_bitmap(), in TEST_F() 379 default_icon.GetRepresentation(1.0f).sk_bitmap(), in TEST_F() 388 representation.sk_bitmap(), in TEST_F() 390 default_icon.GetRepresentation(1.0f).sk_bitmap(), in TEST_F() [all …]
|
/external/chromium_org/skia/ext/ |
D | platform_canvas_unittest.cc | 422 SkBitmap sk_bitmap = platform_bitmap->GetBitmap(); in TEST() local 423 sk_bitmap.lockPixels(); in TEST() 426 EXPECT_EQ(2, sk_bitmap.pixelRef()->getRefCnt()); in TEST() 428 EXPECT_EQ(0xDEED1020, *sk_bitmap.getAddr32(10, 20)); in TEST() 429 EXPECT_EQ(0xDEED2030, *sk_bitmap.getAddr32(20, 30)); in TEST() 437 EXPECT_EQ(1, sk_bitmap.pixelRef()->getRefCnt()); in TEST() 439 EXPECT_EQ(0xDEED1020, *sk_bitmap.getAddr32(10, 20)); in TEST() 440 EXPECT_EQ(0xDEED2030, *sk_bitmap.getAddr32(20, 30)); in TEST() 441 EXPECT_EQ(0xDEED3040, *sk_bitmap.getAddr32(30, 40)); in TEST() 442 sk_bitmap.unlockPixels(); in TEST() [all …]
|
/external/chromium_org/ui/views/controls/button/ |
D | blue_button_unittest.cc | 47 EXPECT_FALSE(gfx::BitmapsAreEqual(button_canvas.ExtractImageRep().sk_bitmap(), in TEST_F() 48 canvas.ExtractImageRep().sk_bitmap())); in TEST_F() 55 EXPECT_TRUE(gfx::BitmapsAreEqual(canvas.ExtractImageRep().sk_bitmap(), in TEST_F() 56 canvas2.ExtractImageRep().sk_bitmap())); in TEST_F()
|
/external/chromium_org/chrome/browser/notifications/ |
D | notification_conversion_helper.cc | 115 SkBitmap sk_bitmap = gfx_image->AsBitmap(); in GfxImageToNotificationBitmap() local 116 sk_bitmap.lockPixels(); in GfxImageToNotificationBitmap() 118 notification_bitmap->width = sk_bitmap.width(); in GfxImageToNotificationBitmap() 119 notification_bitmap->height = sk_bitmap.height(); in GfxImageToNotificationBitmap() 120 int pixel_count = sk_bitmap.width() * sk_bitmap.height(); in GfxImageToNotificationBitmap() 123 uint32_t* bitmap_pixels = sk_bitmap.getAddr32(0, 0); in GfxImageToNotificationBitmap() 130 sk_bitmap.unlockPixels(); in GfxImageToNotificationBitmap()
|
/external/chromium_org/ui/gfx/image/ |
D | image_skia_operations.cc | 117 first_rep.sk_bitmap(), second_rep.sk_bitmap(), alpha_); in CreateImageSkiaRep() 171 SkBitmapOperations::CreateMaskedBitmap(image_rep.sk_bitmap(), alpha), in GetImageForScale() 195 first_rep.sk_bitmap(), second_rep.sk_bitmap()), in CreateImageSkiaRep() 225 source_rep.sk_bitmap(), in GetImageForScale() 255 SkBitmapOperations::CreateHSLShiftedBitmap(image_rep.sk_bitmap(), in GetImageForScale() 291 image_rep.sk_bitmap(), mask_rep.sk_bitmap()), in GetImageForScale() 322 bool success = image_rep.sk_bitmap().extractSubset(&dst, in GetImageForScale() 357 image_rep.sk_bitmap(), in GetImageForScale() 392 image_rep.sk_bitmap(), in GetImageForScale() 419 SkBitmapOperations::Rotate(image_rep.sk_bitmap(), rotation_); in GetImageForScale()
|
D | image_util.cc | 35 const SkBitmap& bitmap = image_skia_rep.sk_bitmap(); in JPEG1xEncodedDataFromImage() 60 const SkBitmap& bitmap = rep.sk_bitmap(); in VisibleMargins()
|
D | image_skia_rep.h | 58 const SkBitmap& sk_bitmap() const { return bitmap_; } in sk_bitmap() function
|
D | image_skia_util_mac.mm | 91 gfx::SkBitmapToNSBitmapImageRep(it->sk_bitmap())]; 109 gfx::SkBitmapToNSBitmapImageRepWithColorSpace(it->sk_bitmap(),
|
D | image_unittest_util.cc | 93 !IsEqual(img1_reps[i].sk_bitmap(), image_rep2.sk_bitmap())) { in IsEqual()
|
D | image_skia_util_ios.mm | 52 return gfx::SkBitmapToUIImageWithColorSpace(image_skia_rep.sk_bitmap(), scale,
|
D | image_mac_unittest.mm | 204 image_skia.GetRepresentation(1.0f).sk_bitmap())); 206 image_skia.GetRepresentation(2.0f).sk_bitmap()));
|
/external/chromium_org/cc/layers/ |
D | ui_resource_layer_impl_unittest.cc | 157 SkBitmap sk_bitmap; in TEST() local 158 sk_bitmap.allocN32Pixels(10, 10); in TEST() 159 sk_bitmap.setImmutable(); in TEST() 161 UIResourceBitmap bitmap(sk_bitmap); in TEST()
|
D | nine_patch_layer_impl_unittest.cc | 224 SkBitmap sk_bitmap; in TEST() local 225 sk_bitmap.allocN32Pixels(10, 10); in TEST() 226 sk_bitmap.setImmutable(); in TEST() 228 UIResourceBitmap bitmap(sk_bitmap); in TEST()
|
/external/chromium_org/ui/base/cursor/ |
D | cursor_util.cc | 72 (*bitmap) = image_rep.sk_bitmap(); in GetImageCursorBitmap() 87 SkBitmap bitmap = image_rep.sk_bitmap(); in GetAnimatedCursorBitmaps()
|
/external/chromium_org/chrome/browser/ui/app_list/ |
D | fast_show_pickler.cc | 87 if (!ColorTypeToFormat(it->sk_bitmap().colorType(), &format)) in PickleImage() 90 int size = static_cast<int>(it->sk_bitmap().getSafeSize()); in PickleImage() 92 SkBitmap bitmap = it->sk_bitmap(); in PickleImage()
|
/external/chromium_org/chrome/browser/ui/app_list/test/ |
D | fast_show_pickler_unittest.cc | 42 gfx::BitmapsAreEqual(reps1[i].sk_bitmap(), reps2[i].sk_bitmap())); in CompareImages()
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | fileicon_source.cc | 105 icon->ToImageSkia()->GetRepresentation(scale_factor).sk_bitmap(), in FetchFileIcon() 154 details.scale_factor).sk_bitmap(), in OnFileIconDataAvailable()
|
/external/chromium_org/chrome/browser/ui/webui/chromeos/login/ |
D | network_dropdown.cc | 93 web_ui_->GetDeviceScaleFactor()).sk_bitmap(); in ConvertMenuModel() 192 web_ui_->GetDeviceScaleFactor()).sk_bitmap(); in SetNetworkIconAndText()
|
/external/chromium_org/ash/display/ |
D | cursor_window_controller.cc | 75 cursor_image_ = gfx::ImageSkia::CreateFrom1xBitmap(image_rep.sk_bitmap()); in SetCursorImage() 79 gfx::ImageSkiaRep(image_rep.sk_bitmap(), scale_factor)); in SetCursorImage()
|
/external/chromium_org/cc/output/ |
D | software_renderer.cc | 380 const SkBitmap* bitmap = lock.sk_bitmap(); in DrawTextureQuad() 449 *lock.sk_bitmap(), in DrawTileQuad() 478 const SkBitmap* content = lock.sk_bitmap(); in DrawRenderPassQuad() 520 const SkBitmap* mask = mask_lock.sk_bitmap(); in DrawRenderPassQuad()
|
/external/chromium_org/chrome/browser/extensions/ |
D | extension_action_icon_factory_unittest.cc | 42 gfx::BitmapsAreEqual(image_rep1.sk_bitmap(), image_rep2.sk_bitmap()); in ImageRepsAreEqual()
|
D | extension_uninstall_dialog.cc | 35 gfx::ImageSkia::GetMaxSupportedScale()).sk_bitmap(); in GetDefaultIconBitmapForMaxScaleFactor()
|
/external/chromium_org/chrome/browser/ui/views/location_bar/ |
D | icon_label_bubble_view.cc | 53 background_images[4])->GetRepresentation(1.0f).sk_bitmap()); in IconLabelBubbleView()
|