/external/chromium_org/ui/gfx/android/ |
D | java_bitmap.cc | 50 ScopedJavaLocalRef<jobject> ConvertToJavaBitmap(const SkBitmap* skbitmap) { in ConvertToJavaBitmap() argument 51 DCHECK(skbitmap); in ConvertToJavaBitmap() 52 DCHECK_EQ(skbitmap->bytesPerPixel(), 4); in ConvertToJavaBitmap() 55 CreateJavaBitmap(gfx::Size(skbitmap->width(), skbitmap->height())); in ConvertToJavaBitmap() 56 SkAutoLockPixels src_lock(*skbitmap); in ConvertToJavaBitmap() 58 void* src_pixels = skbitmap->getPixels(); in ConvertToJavaBitmap() 60 memcpy(dst_pixels, src_pixels, skbitmap->getSize()); in ConvertToJavaBitmap() 70 SkBitmap skbitmap; in CreateSkBitmapFromJavaBitmap() local 71 skbitmap.setConfig(SkBitmap::kARGB_8888_Config, in CreateSkBitmapFromJavaBitmap() 75 skbitmap.allocPixels(); in CreateSkBitmapFromJavaBitmap() [all …]
|
D | java_bitmap.h | 45 const SkBitmap* skbitmap);
|
/external/chromium_org/cc/resources/ |
D | ui_resource_bitmap.cc | 31 UIResourceBitmap::UIResourceBitmap(const SkBitmap& skbitmap) { in UIResourceBitmap() argument 32 DCHECK_EQ(skbitmap.config(), SkBitmap::kARGB_8888_Config); in UIResourceBitmap() 33 DCHECK_EQ(skbitmap.width(), skbitmap.rowBytesAsPixels()); in UIResourceBitmap() 34 DCHECK(skbitmap.isImmutable()); in UIResourceBitmap() 36 skia::RefPtr<SkPixelRef> pixel_ref = skia::SharePtr(skbitmap.pixelRef()); in UIResourceBitmap() 39 gfx::Size(skbitmap.width(), skbitmap.height())); in UIResourceBitmap() 41 SetOpaque(skbitmap.isOpaque()); in UIResourceBitmap()
|
D | ui_resource_bitmap.h | 46 explicit UIResourceBitmap(const SkBitmap& skbitmap);
|
/external/chromium_org/cc/test/ |
D | fake_scoped_ui_resource.cc | 14 SkBitmap skbitmap; in CreateMockUIResourceBitmap() local 15 skbitmap.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); in CreateMockUIResourceBitmap() 16 skbitmap.allocPixels(); in CreateMockUIResourceBitmap() 17 skbitmap.setImmutable(); in CreateMockUIResourceBitmap() 18 return UIResourceBitmap(skbitmap); in CreateMockUIResourceBitmap()
|
/external/chromium_org/cc/layers/ |
D | ui_resource_layer.cc | 23 const SkBitmap& skbitmap) { in Create() argument 24 return make_scoped_ptr(new ScopedUIResourceHolder(host, skbitmap)); in Create() 29 ScopedUIResourceHolder(LayerTreeHost* host, const SkBitmap& skbitmap) { in ScopedUIResourceHolder() argument 30 resource_ = ScopedUIResource::Create(host, UIResourceBitmap(skbitmap)); in ScopedUIResourceHolder() 122 void UIResourceLayer::SetBitmap(const SkBitmap& skbitmap) { in SetBitmap() argument 123 bitmap_ = skbitmap; in SetBitmap()
|
D | ui_resource_layer_impl_unittest.cc | 37 SkBitmap skbitmap; in GenerateUIResourceLayer() local 38 skbitmap.setConfig(SkBitmap::kARGB_8888_Config, in GenerateUIResourceLayer() 43 skbitmap.allocPixels(); in GenerateUIResourceLayer() 44 skbitmap.setImmutable(); in GenerateUIResourceLayer() 45 UIResourceBitmap bitmap(skbitmap); in GenerateUIResourceLayer()
|
D | nine_patch_layer_impl_unittest.cc | 57 SkBitmap skbitmap; in NinePatchLayerLayoutTest() local 58 skbitmap.setConfig( in NinePatchLayerLayoutTest() 60 skbitmap.allocPixels(); in NinePatchLayerLayoutTest() 61 skbitmap.setImmutable(); in NinePatchLayerLayoutTest() 62 UIResourceBitmap bitmap(skbitmap); in NinePatchLayerLayoutTest()
|
D | painted_scrollbar_layer.cc | 224 SkBitmap skbitmap; in RasterizeScrollbarPart() local 225 skbitmap.setConfig(SkBitmap::kARGB_8888_Config, rect.width(), rect.height()); in RasterizeScrollbarPart() 226 skbitmap.allocPixels(); in RasterizeScrollbarPart() 228 SkCanvas skcanvas(skbitmap); in RasterizeScrollbarPart() 245 skbitmap.setImmutable(); in RasterizeScrollbarPart() 247 return UIResourceBitmap(skbitmap); in RasterizeScrollbarPart()
|
D | ui_resource_layer.h | 29 void SetBitmap(const SkBitmap& skbitmap);
|
/external/chromium_org/chrome/browser/android/ |
D | favicon_helper.cc | 151 SkBitmap skbitmap = gfx::CreateSkBitmapFromJavaBitmap(bitmap_lock); in GetDominantColorForBitmap() local 152 skbitmap.setImmutable(); in GetDominantColorForBitmap() 154 gfx::Image::CreateFrom1xBitmap(skbitmap).As1xPNGBytes(); in GetDominantColorForBitmap()
|
D | tab_android.h | 87 const GURL& url, const base::string16& title, const SkBitmap& skbitmap,
|
/external/chromium_org/chrome/android/testshell/ |
D | testshell_tab.h | 50 const SkBitmap& skbitmap,
|
D | testshell_tab.cc | 45 const GURL& url, const string16& title, const SkBitmap& skbitmap, in AddShortcutToBookmark() argument
|
/external/chromium_org/ui/gfx/codec/ |
D | png_codec.cc | 99 explicit PngDecoderState(SkBitmap* skbitmap) in PngDecoderState() argument 102 bitmap(skbitmap), in PngDecoderState()
|
/external/chromium_org/cc/trees/ |
D | layer_tree_host_impl_unittest.cc | 3256 SkBitmap skbitmap; in TEST_F() local 3257 skbitmap.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); in TEST_F() 3258 skbitmap.allocPixels(); in TEST_F() 3259 skbitmap.setImmutable(); in TEST_F() 3262 UIResourceBitmap ui_resource_bitmap(skbitmap); in TEST_F() 5104 SkBitmap skbitmap; in TEST_F() local 5105 skbitmap.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); in TEST_F() 5106 skbitmap.allocPixels(); in TEST_F() 5107 skbitmap.setImmutable(); in TEST_F() 5110 UIResourceBitmap bitmap(skbitmap); in TEST_F()
|