Home
last modified time | relevance | path

Searched refs:sk_bitmap (Results 1 – 25 of 66) sorted by relevance

123

/external/chromium_org/ui/base/dragdrop/
Ddrag_utils_win.cc43 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/
Dbrowser_theme_pack_unittest.cc285 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/
Dextension_icon_image_unittest.cc248 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/
Dplatform_canvas_unittest.cc422 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/
Dblue_button_unittest.cc47 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/
Dnotification_conversion_helper.cc115 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/
Dimage_skia_operations.cc117 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()
Dimage_util.cc35 const SkBitmap& bitmap = image_skia_rep.sk_bitmap(); in JPEG1xEncodedDataFromImage()
60 const SkBitmap& bitmap = rep.sk_bitmap(); in VisibleMargins()
Dimage_skia_rep.h58 const SkBitmap& sk_bitmap() const { return bitmap_; } in sk_bitmap() function
Dimage_skia_util_mac.mm91 gfx::SkBitmapToNSBitmapImageRep(it->sk_bitmap())];
109 gfx::SkBitmapToNSBitmapImageRepWithColorSpace(it->sk_bitmap(),
Dimage_unittest_util.cc93 !IsEqual(img1_reps[i].sk_bitmap(), image_rep2.sk_bitmap())) { in IsEqual()
Dimage_skia_util_ios.mm52 return gfx::SkBitmapToUIImageWithColorSpace(image_skia_rep.sk_bitmap(), scale,
Dimage_mac_unittest.mm204 image_skia.GetRepresentation(1.0f).sk_bitmap()));
206 image_skia.GetRepresentation(2.0f).sk_bitmap()));
/external/chromium_org/cc/layers/
Dui_resource_layer_impl_unittest.cc157 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()
Dnine_patch_layer_impl_unittest.cc224 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/
Dcursor_util.cc72 (*bitmap) = image_rep.sk_bitmap(); in GetImageCursorBitmap()
87 SkBitmap bitmap = image_rep.sk_bitmap(); in GetAnimatedCursorBitmaps()
/external/chromium_org/chrome/browser/ui/app_list/
Dfast_show_pickler.cc87 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/
Dfast_show_pickler_unittest.cc42 gfx::BitmapsAreEqual(reps1[i].sk_bitmap(), reps2[i].sk_bitmap())); in CompareImages()
/external/chromium_org/chrome/browser/ui/webui/
Dfileicon_source.cc105 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/
Dnetwork_dropdown.cc93 web_ui_->GetDeviceScaleFactor()).sk_bitmap(); in ConvertMenuModel()
192 web_ui_->GetDeviceScaleFactor()).sk_bitmap(); in SetNetworkIconAndText()
/external/chromium_org/ash/display/
Dcursor_window_controller.cc75 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/
Dsoftware_renderer.cc380 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/
Dextension_action_icon_factory_unittest.cc42 gfx::BitmapsAreEqual(image_rep1.sk_bitmap(), image_rep2.sk_bitmap()); in ImageRepsAreEqual()
Dextension_uninstall_dialog.cc35 gfx::ImageSkia::GetMaxSupportedScale()).sk_bitmap(); in GetDefaultIconBitmapForMaxScaleFactor()
/external/chromium_org/chrome/browser/ui/views/location_bar/
Dicon_label_bubble_view.cc53 background_images[4])->GetRepresentation(1.0f).sk_bitmap()); in IconLabelBubbleView()

123