Home
last modified time | relevance | path

Searched refs:skbitmap (Results 1 – 16 of 16) sorted by relevance

/external/chromium_org/ui/gfx/android/
Djava_bitmap.cc50 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 …]
Djava_bitmap.h45 const SkBitmap* skbitmap);
/external/chromium_org/cc/resources/
Dui_resource_bitmap.cc31 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()
Dui_resource_bitmap.h46 explicit UIResourceBitmap(const SkBitmap& skbitmap);
/external/chromium_org/cc/test/
Dfake_scoped_ui_resource.cc14 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/
Dui_resource_layer.cc23 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()
Dui_resource_layer_impl_unittest.cc37 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()
Dnine_patch_layer_impl_unittest.cc57 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()
Dpainted_scrollbar_layer.cc224 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()
Dui_resource_layer.h29 void SetBitmap(const SkBitmap& skbitmap);
/external/chromium_org/chrome/browser/android/
Dfavicon_helper.cc151 SkBitmap skbitmap = gfx::CreateSkBitmapFromJavaBitmap(bitmap_lock); in GetDominantColorForBitmap() local
152 skbitmap.setImmutable(); in GetDominantColorForBitmap()
154 gfx::Image::CreateFrom1xBitmap(skbitmap).As1xPNGBytes(); in GetDominantColorForBitmap()
Dtab_android.h87 const GURL& url, const base::string16& title, const SkBitmap& skbitmap,
/external/chromium_org/chrome/android/testshell/
Dtestshell_tab.h50 const SkBitmap& skbitmap,
Dtestshell_tab.cc45 const GURL& url, const string16& title, const SkBitmap& skbitmap, in AddShortcutToBookmark() argument
/external/chromium_org/ui/gfx/codec/
Dpng_codec.cc99 explicit PngDecoderState(SkBitmap* skbitmap) in PngDecoderState() argument
102 bitmap(skbitmap), in PngDecoderState()
/external/chromium_org/cc/trees/
Dlayer_tree_host_impl_unittest.cc3256 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()