/external/chromium_org/ui/gfx/image/ |
H A D | image_png_rep.cc | 32 SkBitmap bitmap; local 34 &bitmap)) { 38 return gfx::Size(bitmap.width(), bitmap.height());
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | bitmap.c | 2 * From lib/bitmap.c 3 * Helper functions for bitmap.h. 8 #include <linux/bitmap.h> 10 int __bitmap_weight(const unsigned long *bitmap, int bits) argument 15 w += hweight_long(bitmap[k]); 18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits));
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowBitmapDrawable.java | 20 private Bitmap bitmap; field in class:ShadowBitmapDrawable 29 public void __constructor__(Bitmap bitmap) { argument 30 this.bitmap = bitmap; 33 public void __constructor__(Resources resources, Bitmap bitmap) { argument 34 this.bitmap = bitmap; 38 * Draws the contained bitmap onto the canvas at 0,0 with a default {@code Paint} 56 return bitmap; 61 * your tests assert that the bitmap i [all...] |
/external/skia/experimental/pixman/ |
H A D | junk.cpp | 29 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/skia/samplecode/ |
H A D | SampleWritePixels.cpp | 19 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/skia/tools/ |
H A D | LazyDecodeBitmap.h | 20 bool LazyDecodeBitmap(const void* buffer, size_t size, SkBitmap* bitmap);
|
H A D | picture_utils.h | 19 // This expects a bitmap with a config type of 8888 and for the pixels to 21 void force_all_opaque(const SkBitmap& bitmap); 35 // Prepares the bitmap so that it can be written. 37 // Specifically, it configures the bitmap, allocates pixels and then 39 void setup_bitmap(SkBitmap* bitmap, int width, int height); 42 * Write a bitmap file to disk. 44 * @param bm the bitmap to record
|
/external/chromium_org/chrome/browser/ |
H A D | image_holder_unittest.cc | 49 // Put a real bitmap into "bitmap". 2x2 bitmap of green 32 bit pixels. 50 SkBitmap bitmap; local 51 bitmap.allocN32Pixels(2, 2); 52 bitmap.eraseColor(SK_ColorGREEN); 54 image_holder.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 76 // Put a real bitmap into "bitmap". 2x2 bitmap o 77 SkBitmap bitmap; local 82 image_holder1.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 83 image_holder2.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 84 image_holder3.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 85 image_holder4.OnFetchComplete(GURL(kIconUrl1), &bitmap); local 92 image_holder1.OnFetchComplete(GURL(kIconUrl2), &bitmap); local 93 image_holder2.OnFetchComplete(GURL(kIconUrl2), &bitmap); local 94 image_holder3.OnFetchComplete(GURL(kIconUrl2), &bitmap); local 95 image_holder4.OnFetchComplete(GURL(kIconUrl2), &bitmap); local [all...] |
/external/chromium_org/skia/ext/ |
H A D | bitmap_platform_device_skia.cc | 12 SkBitmap bitmap; local 13 if (bitmap.tryAllocN32Pixels(width, height, is_opaque)) { 14 // Follow the logic in SkCanvas::createDevice(), initialize the bitmap if it 17 bitmap.eraseARGB(0, 0, 0, 0); 18 return new BitmapPlatformDevice(bitmap); 35 SkBitmap bitmap; local 36 bitmap.setInfo(SkImageInfo::MakeN32(width, height, 39 bitmap.setPixels(data); 40 else if (!bitmap.tryAllocPixels()) 43 return new BitmapPlatformDevice(bitmap); 46 BitmapPlatformDevice(const SkBitmap& bitmap) argument [all...] |
/external/chromium_org/net/disk_cache/blockfile/ |
H A D | bitmap_unittest.cc | 5 #include "net/disk_cache/blockfile/bitmap.h" 18 // Verify that the default constructor doesn't allocate a bitmap. 26 disk_cache::Bitmap bitmap(80, true); 30 EXPECT_EQ(80, bitmap.Size()); 31 EXPECT_EQ(3, bitmap.ArraySize()); 34 EXPECT_EQ(0U, bitmap.GetMapElement(1)); 35 bitmap.SetMapElement(1, kValue); 36 EXPECT_EQ(kValue, bitmap.GetMapElement(1)); 39 EXPECT_TRUE(bitmap.Get(48)); 40 EXPECT_FALSE(bitmap [all...] |
/external/chromium_org/components/user_manager/user_image/ |
H A D | user_image.cc | 24 const SkBitmap& bitmap = *image.bitmap(); local 25 SkAutoLockPixels lock_image(bitmap); 27 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)), 29 bitmap.width(), 30 bitmap.height(), 31 bitmap.width() * bitmap.bytesPerPixel(),
|
/external/chromium_org/skia/tools/filter_fuzz_stub/ |
H A D | filter_fuzz_stub.cc | 26 void RunTestCase(std::string& ipc_filter_message, SkBitmap& bitmap, argument 46 canvas->drawBitmap(bitmap, 0, 0, &paint); 55 bool ReadAndRunTestCase(const char* filename, SkBitmap& bitmap, argument 65 RunTestCase(ipc_filter_message, bitmap, canvas); 75 SkBitmap bitmap; local 76 bitmap.allocN32Pixels(BitmapSize, BitmapSize); 77 SkCanvas canvas(bitmap); 81 if (!ReadAndRunTestCase(argv[i], bitmap, &canvas))
|
/external/chromium_org/third_party/skia/tools/ |
H A D | picture_utils.h | 19 // This expects a bitmap with a config type of 8888 and for the pixels to 21 void force_all_opaque(const SkBitmap& bitmap); 35 // Prepares the bitmap so that it can be written. 37 // Specifically, it configures the bitmap, allocates pixels and then 39 void setup_bitmap(SkBitmap* bitmap, int width, int height); 42 * Write a bitmap file to disk. 44 * @param bm the bitmap to record
|
/external/chromium_org/ui/gfx/ |
H A D | skbitmap_operations.h | 30 // Create a bitmap that is an inverted image of the passed in image. 35 // Create a bitmap that is a blend of two others. The alpha argument 36 // specifies the opacity of the second bitmap. The provided bitmaps must 42 // Create a bitmap that is the original bitmap masked out by the mask defined 43 // in the alpha bitmap. The images must use the kARGB_8888_Config config and 57 // Shift a bitmap's HSL values. The shift values are in the range of 0-1, 72 static SkBitmap CreateHSLShiftedBitmap(const SkBitmap& bitmap, 75 // Create a bitmap that is cropped from another bitmap [all...] |
/external/skia/dm/ |
H A D | DMExpectationsTask.cpp | 8 SkBitmap bitmap) 12 , fBitmap(bitmap) 6 ExpectationsTask(const Task& parent, const Expectations& expectations, SkBitmap bitmap) argument
|
H A D | DMReplayTask.cpp | 32 SkBitmap bitmap; local 33 AllocatePixels(fReference, &bitmap); 34 DrawPicture(recorded, &bitmap); 35 if (!BitmapsEqual(bitmap, fReference)) { 37 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
|
H A D | DMSerializeTask.cpp | 30 SkBitmap bitmap; local 31 AllocatePixels(fReference, &bitmap); 32 DrawPicture(reconstructed, &bitmap); 33 if (!BitmapsEqual(bitmap, fReference)) { 35 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
|
/external/oprofile/libdb/ |
H A D | db_debug.c | 21 unsigned char * bitmap = malloc(data->descr->current_size); local 22 memset(bitmap, '\0', data->descr->current_size); 29 if (bitmap[index]) 32 bitmap[index] = 1; 41 memset(bitmap, '\0', data->descr->current_size); 46 if (bitmap[index]) 49 bitmap[index] = 1; 59 bitmap[index] = 1; 64 free(bitmap); 73 unsigned char * bitmap local [all...] |
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
H A D | JavaBrowserViewRendererHelper.java | 33 Bitmap bitmap = null; 35 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 37 android.util.Log.w(LOGTAG, "Error allocating bitmap"); 39 return bitmap; 43 * Draws a provided bitmap into a canvas. 48 Bitmap bitmap, Canvas canvas, int scrollX, int scrollY) { 50 canvas.drawBitmap(bitmap, 0, 0, null); 47 drawBitmapIntoCanvas( Bitmap bitmap, Canvas canvas, int scrollX, int scrollY) argument
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
H A D | taskbar_decorator_win.cc | 34 void SetOverlayIcon(HWND hwnd, scoped_ptr<SkBitmap> bitmap) { argument 42 if (bitmap.get()) { 43 DCHECK_GE(bitmap.get()->width(), bitmap.get()->height()); 47 bitmap.get()->height() * kOverlayIconSize / bitmap.get()->width(); 51 *bitmap.get(), 87 scoped_ptr<SkBitmap> bitmap; 89 bitmap.reset(new SkBitmap( 93 FROM_HERE, base::Bind(&SetOverlayIcon, hwnd, Passed(&bitmap)), [all...] |
/external/skia/src/lazy/ |
H A D | SkCachingPixelRef.cpp | 49 SkBitmap bitmap; local 54 &bitmap); 57 if ((!bitmap.setInfo(info, fRowBytes)) || !bitmap.allocPixels()) { 61 SkAutoLockPixels autoLockPixels(bitmap); 62 if (!fImageGenerator->getPixels(info, bitmap.getPixels(), fRowBytes)) { 69 bitmap); 73 // Now bitmap should contain a concrete PixelRef of the decoded 75 SkAutoLockPixels autoLockPixels(bitmap); 76 void* pixels = bitmap [all...] |
/external/skia/src/gpu/ |
H A D | SkGr.cpp | 25 based bitmap. [palette (colortable) + indices]. 35 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { argument 36 SkASSERT(kIndex_8_SkColorType == bitmap.colorType()); 38 SkAutoLockPixels alp(bitmap); 39 if (!bitmap.readyToDraw()) { 40 SkDEBUGFAIL("bitmap not ready to draw!"); 44 SkColorTable* ctable = bitmap.getColorTable(); 68 if ((unsigned)bitmap.width() == bitmap.rowBytes()) { 69 memcpy(dst, bitmap 85 generate_bitmap_cache_id(const SkBitmap& bitmap, GrCacheID* id) argument 106 generate_bitmap_texture_desc(const SkBitmap& bitmap, GrTextureDesc* desc) argument 202 const SkBitmap* bitmap = &origBitmap; local 299 GrIsBitmapInCache(const GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument 310 GrLockAndRefCachedBitmapTexture(GrContext* ctx, const SkBitmap& bitmap, const GrTextureParams* params) argument [all...] |
/external/chromium_org/third_party/skia/tests/ |
H A D | TextureCompressionTest.cpp | 45 SkBitmap bitmap; local 58 bool setInfoSuccess = bitmap.setInfo(info); 61 bitmap.allocPixels(info); 62 bitmap.unlockPixels(); 69 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(bitmap, fmt)); 75 * Make sure that we properly fail when we don't have the correct bitmap type. 79 SkBitmap bitmap; local 91 bool setInfoSuccess = bitmap.setInfo(info); 94 bitmap.allocPixels(info); 95 bitmap 112 SkBitmap bitmap; local 207 SkBitmap bitmap; local [all...] |
/external/chromium_org/remoting/host/chromeos/ |
H A D | aura_desktop_capturer.cc | 24 static SkiaBitmapDesktopFrame* Create(scoped_ptr<SkBitmap> bitmap); 31 scoped_ptr<SkBitmap> bitmap); 40 scoped_ptr<SkBitmap> bitmap) { 42 webrtc::DesktopSize size(bitmap->width(), bitmap->height()); 43 DCHECK_EQ(kRGBA_8888_SkColorType, bitmap->info().colorType()) 46 uint8_t* bitmap_data = reinterpret_cast<uint8_t*>(bitmap->getPixels()); 49 size, bitmap->rowBytes(), bitmap_data, bitmap.Pass()); 57 scoped_ptr<SkBitmap> bitmap) 39 Create( scoped_ptr<SkBitmap> bitmap) argument 54 SkiaBitmapDesktopFrame(webrtc::DesktopSize size, int stride, uint8_t* data, scoped_ptr<SkBitmap> bitmap) argument 103 scoped_ptr<SkBitmap> bitmap = result->TakeBitmap(); local [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
H A D | AttributeStrategy.java | 7 * A strategy for reusing bitmaps that requires any returned bitmap's dimensions to exactly match those request. 13 public void put(Bitmap bitmap) { argument 14 final Key key = keyPool.get(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig()); 16 groupedMap.put(key, bitmap); 32 public String logBitmap(Bitmap bitmap) { argument 33 return getBitmapString(bitmap); 42 public int getSize(Bitmap bitmap) { argument 43 return Util.getSize(bitmap); 51 getBitmapString(Bitmap bitmap) argument [all...] |