Searched refs:bitmap (Results 26 - 50 of 1242) sorted by relevance

1234567891011>>

/external/chromium_org/cc/blink/
H A Dweb_image_layer_impl.cc28 void WebImageLayerImpl::setImageBitmap(const SkBitmap& bitmap) { argument
30 static_cast<cc::PictureImageLayer*>(layer_->layer())->SetBitmap(bitmap);
32 ->SetFixedBounds(gfx::Size(bitmap.width(), bitmap.height()));
34 static_cast<cc::ImageLayer*>(layer_->layer())->SetBitmap(bitmap);
/external/chromium_org/cc/test/
H A Dskia_common.cc20 SkBitmap bitmap; local
21 bitmap.installPixels(info, buffer, info.minRowBytes());
22 SkCanvas canvas(bitmap);
29 void CreateBitmap(const gfx::Size& size, const char* uri, SkBitmap* bitmap) { argument
32 bitmap->allocPixels(info);
33 bitmap->pixelRef()->setImmutable();
34 bitmap->pixelRef()->setURI(uri);
/external/skia/dm/
H A DDMCpuGMTask.cpp28 SkBitmap bitmap; local
29 AllocatePixels(fColorType, fGM->getISize().width(), fGM->getISize().height(), &bitmap);
31 SkCanvas canvas(bitmap);
37 SPAWN(ExpectationsTask, fExpectations, bitmap);
39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kInProcess_Mode);
40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kCrossProcess_Mode);
41 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kSharedAddress_Mode);
42 SPAWN(QuiltTask, fGMFactory(NULL), bitmap);
43 SPAWN(RecordTask, fGMFactory(NULL), bitmap, RecordTask::kOptimize_Mode);
44 SPAWN(RecordTask, fGMFactory(NULL), bitmap, RecordTas
[all...]
H A DDMPDFRasterizeTask.cpp28 SkBitmap bitmap; local
30 if (fRasterize(&pdfStream, &bitmap)) {
31 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
/external/chromium_org/third_party/skia/gm/
H A Dbitmappremul.cpp14 * This GM checks that bitmap pixels are unpremultiplied before being exported
18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations.
25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { argument
26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct,
28 bitmap->eraseColor(SK_ColorWHITE);
32 SkBitmap bitmap; local
33 init_bitmap(kN32_SkColorType, &bitmap);
36 uint32_t* dst = bitmap.getAddr32(0, y);
45 return bitmap;
49 SkBitmap bitmap; local
66 SkBitmap bitmap; local
85 SkBitmap bitmap; local
[all...]
/external/skia/gm/
H A Dbitmappremul.cpp14 * This GM checks that bitmap pixels are unpremultiplied before being exported
18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations.
25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { argument
26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct,
28 bitmap->eraseColor(SK_ColorWHITE);
32 SkBitmap bitmap; local
33 init_bitmap(kN32_SkColorType, &bitmap);
36 uint32_t* dst = bitmap.getAddr32(0, y);
45 return bitmap;
49 SkBitmap bitmap; local
66 SkBitmap bitmap; local
85 SkBitmap bitmap; local
[all...]
/external/skia/tests/
H A DTextureCompressionTest.cpp22 SkBitmap bitmap; local
29 bool setInfoSuccess = bitmap.setInfo(info);
32 bool allocPixelsSuccess = bitmap.allocPixels(info);
34 bitmap.unlockPixels();
37 SkAutoDataUnref latcData(SkTextureCompressor::CompressBitmapToFormat(bitmap, kLATCFormat));
42 * Make sure that we properly fail when we don't have the correct bitmap type.
46 SkBitmap bitmap; local
53 bool setInfoSuccess = bitmap.setInfo(info);
56 bool allocPixelsSuccess = bitmap.allocPixels(info);
58 bitmap
69 SkBitmap bitmap; local
[all...]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
H A DSerialBitmapReferenceCounter.java58 public void acquireBitmap(Bitmap bitmap) { argument
59 initBitmap(bitmap);
60 counter.get(bitmap).acquire();
64 public void releaseBitmap(Bitmap bitmap) { argument
65 final InnerTracker tracker = counter.get(bitmap);
67 recycle(tracker, bitmap);
71 private void recycle(InnerTracker tracker, Bitmap bitmap) { argument
72 if (!target.put(bitmap)) {
73 bitmap.recycle();
75 counter.remove(bitmap);
[all...]
H A DLruPoolStrategy.java6 public void put(Bitmap bitmap); argument
9 public String logBitmap(Bitmap bitmap); argument
11 public int getSize(Bitmap bitmap); argument
/external/smack/src/org/xbill/DNS/
H A DNXTRecord.java22 private BitSet bitmap; field in class:NXTRecord
34 * @param bitmap The set of type for which records exist at this name
37 NXTRecord(Name name, int dclass, long ttl, Name next, BitSet bitmap) { argument
40 this.bitmap = bitmap;
46 bitmap = new BitSet();
52 bitmap.set(i * 8 + j);
59 bitmap = new BitSet();
67 bitmap.set(typecode);
77 int length = bitmap
[all...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DBitmapFactoryTest.java22 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image);
23 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription());
24 assertEquals(100, bitmap.getWidth());
25 assertEquals(100, bitmap.getHeight());
31 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image, opts);
32 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription());
33 assertEquals(100, bitmap.getWidth());
34 assertEquals(100, bitmap.getHeight());
41 Bitmap bitmap = BitmapFactory.decodeFile("/some/file.jpg");
42 assertEquals("Bitmap for file:/some/file.jpg", shadowOf(bitmap)
[all...]
/external/chromium_org/chrome/browser/ui/ash/
H A Dsolid_color_user_wallpaper_delegate.cc49 SkBitmap bitmap; variable
50 bitmap.allocN32Pixels(16, 16);
51 bitmap.eraseARGB(255, kBackgroundRed, kBackgroundGreen, kBackgroundBlue);
56 SkAutoLockPixels alp(bitmap);
57 *bitmap.getAddr32(0,0) = SkColorSetRGB(0, 0, 0);
60 gfx::ImageSkia wallpaper = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
H A DGaneshUtils.cpp39 bool ensureTextureBackedSkBitmap(GrContext* gr, SkBitmap& bitmap, const IntSize& size, GrSurfaceOrigin origin, GrPixelConfig config) argument
41 if (!bitmap.getTexture() || bitmap.width() != size.width() || bitmap.height() != size.height()) {
59 bitmap.setInfo(info);
60 bitmap.setPixelRef(pixelRef)->unref();
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
H A DBitmapEncoder.java1 package com.bumptech.glide.load.resource.bitmap;
24 final Bitmap bitmap = resource.get();
25 bitmap.compress(getFormat(bitmap), quality, os);
31 return "BitmapEncoder.com.bumptech.glide.load.resource.bitmap";
34 private Bitmap.CompressFormat getFormat(Bitmap bitmap) { argument
37 } else if (bitmap.hasAlpha()) {
/external/chromium_org/third_party/skia/dm/
H A DDMPDFRasterizeTask.cpp29 SkBitmap bitmap; local
31 if (fRasterize(fPdf.get(), &bitmap)) {
32 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "PDF", bitmap)));
H A DDMSKPTask.cpp24 SkBitmap bitmap; local
25 AllocatePixels(kN32_SkColorType, width, height, &bitmap);
26 DrawPicture(*fPicture, &bitmap);
28 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "SKP", bitmap)));
/external/e2fsprogs/lib/ext2fs/
H A Dblkmap64_ba.c31 * Private data for bit array implementation of bitmap ops.
33 * exactly equivalent to the old-skool char * bitmap member.
42 static errcode_t ba_alloc_private_data (ext2fs_generic_bitmap bitmap) argument
58 size = (size_t) (((bitmap->real_end - bitmap->start) / 8) + 1);
66 bitmap->private = (void *) bp;
71 ext2fs_generic_bitmap bitmap)
77 retval = ba_alloc_private_data (bitmap);
81 bp = (ext2fs_ba_private) bitmap->private;
82 size = (size_t) (((bitmap
88 ba_free_bmap(ext2fs_generic_bitmap bitmap) argument
164 ba_mark_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
172 ba_unmark_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
180 ba_test_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) argument
188 ba_mark_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 arg, unsigned int num) argument
199 ba_unmark_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 arg, unsigned int num) argument
210 ba_test_clear_bmap_extent(ext2fs_generic_bitmap bitmap, __u64 start, unsigned int len) argument
284 ba_set_bmap_range(ext2fs_generic_bitmap bitmap, __u64 start, size_t num, void *in) argument
294 ba_get_bmap_range(ext2fs_generic_bitmap bitmap, __u64 start, size_t num, void *out) argument
304 ba_clear_bmap(ext2fs_generic_bitmap bitmap) argument
312 ba_print_stats(ext2fs_generic_bitmap bitmap) argument
320 ba_find_first_zero(ext2fs_generic_bitmap bitmap, __u64 start, __u64 end, __u64 *out) argument
[all...]
H A Dbmap64.h2 * bmap64.h --- 64-bit bitmap structure
70 void (*free_bmap)(ext2fs_generic_bitmap bitmap);
73 errcode_t (*resize_bmap)(ext2fs_generic_bitmap bitmap,
77 int (*mark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
78 int (*unmark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
79 int (*test_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg);
80 void (*mark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg,
82 void (*unmark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg,
84 int (*test_clear_bmap_extent)(ext2fs_generic_bitmap bitmap,
86 errcode_t (*set_bmap_range)(ext2fs_generic_bitmap bitmap,
[all...]
/external/chromium_org/ui/gfx/
H A Dicon_util_unittest.cc54 SkBitmap bitmap; local
55 bitmap.allocN32Pixels(width, height);
57 memset(bitmap.getPixels(), 0, width * height * 4);
58 return bitmap;
134 SkBitmap bitmap = image.AsBitmap(); local
135 EXPECT_EQ(256, bitmap.width());
136 EXPECT_EQ(256, bitmap.height());
161 scoped_ptr<SkBitmap> bitmap; local
162 bitmap.reset(IconUtil::CreateSkBitmapFromHICON(icon, icon_size));
163 EXPECT_NE(bitmap
171 scoped_ptr<SkBitmap> bitmap; local
199 scoped_ptr<SkBitmap> bitmap; local
272 scoped_ptr<SkBitmap> bitmap; local
306 SkBitmap bitmap = CreateBlackSkBitmap(kSmallIconWidth, kSmallIconHeight); local
[all...]
/external/chromium_org/cc/resources/
H A Dresource_update.cc12 const SkBitmap* bitmap,
19 update.bitmap = bitmap;
28 bitmap(NULL) {}
11 Create(PrioritizedResource* resource, const SkBitmap* bitmap, const gfx::Rect& content_rect, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset) argument
H A Dscoped_ui_resource.cc15 const UIResourceBitmap& bitmap) {
16 return make_scoped_ptr(new ScopedUIResource(host, bitmap));
20 const UIResourceBitmap& bitmap)
21 : bitmap_(bitmap), host_(host) {
13 Create( LayerTreeHost* host, const UIResourceBitmap& bitmap) argument
19 ScopedUIResource(LayerTreeHost* host, const UIResourceBitmap& bitmap) argument
/external/chromium_org/chrome/utility/
H A Dchrome_content_utility_client_unittest.cc17 SkBitmap bitmap; local
18 bitmap.allocN32Pixels(width, height);
19 bitmap.eraseColor(color);
23 static_cast<const unsigned char*>(bitmap.getPixels()),
27 bitmap.rowBytes(),
30 LOG(ERROR) << "Unable to encode " << width << "x" << height << " bitmap";
60 SkBitmap bitmap = ChromeContentUtilityClient::DecodeImage(jpg, true); local
63 EXPECT_LT(bitmap.computeSize64() + base_msg_size,
68 EXPECT_EQ(widths[i] >> i, bitmap.width());
69 EXPECT_EQ(heights[i] >> i, bitmap
[all...]
/external/chromium_org/third_party/skia/experimental/pixman/
H A Djunk.cpp29 SkBitmap* bitmap = new SkBitmap; local
30 bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height);
31 bitmap->allocPixels();
33 int p_stride = bitmap->rowBytes();
34 uint32_t *p_bits = bitmap->getAddr32(0, 0);
44 return (void*) bitmap;
88 SkBitmap* bitmap = (SkBitmap*) pixbuf_from_argb32 (pixman_image_get_data (copy), local
91 canvas->drawBitmap(*bitmap, 0, 0);
92 delete bitmap;
/external/chromium_org/third_party/skia/samplecode/
H A DSampleWritePixels.cpp19 static void create_bitmap(SkBitmap* bitmap) { argument
22 bitmap->allocN32Pixels(W, H);
24 SkCanvas canvas(*bitmap);
47 SkBitmap bitmap; local
48 create_bitmap(&bitmap);
49 int x = bitmap.width() / 2;
50 int y = bitmap.height() / 2;
53 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
57 canvas->writePixels(bitmap, 0, 0);
/external/chromium_org/third_party/skia/tools/
H A DLazyDecodeBitmap.h20 bool LazyDecodeBitmap(const void* buffer, size_t size, SkBitmap* bitmap);

Completed in 4533 milliseconds

1234567891011>>