/external/chromium_org/third_party/skia/gm/ |
H A D | offsetimagefilter.cpp | 67 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { argument 70 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())); 73 canvas->drawBitmap(bitmap, 0, 0, &paint); 99 SkBitmap* bitmap = (i & 0x01) ? &fCheckerboard : &fBitmap; local 102 bitmap->width() - i * 8, 103 bitmap->height() - i * 12); 105 SkAutoTUnref<SkImageFilter> tileInput(SkBitmapSource::Create(*bitmap)); 111 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect); 112 canvas->translate(SkIntToScalar(bitmap [all...] |
/external/pdfium/core/src/fxge/Microsoft SDK/include/ |
H A D | GdiPlusBitmap.h | 593 GpBitmap *bitmap = NULL;
local 597 lastResult = DllExports::GdipCreateBitmapFromFileICM(filename, &bitmap);
601 lastResult = DllExports::GdipCreateBitmapFromFile(filename, &bitmap);
604 SetNativeImage(bitmap);
613 GpBitmap *bitmap = NULL;
local 617 lastResult = DllExports::GdipCreateBitmapFromStreamICM(stream, &bitmap);
621 lastResult = DllExports::GdipCreateBitmapFromStream(stream, &bitmap);
624 SetNativeImage(bitmap);
636 GpBitmap *bitmap = NULL;
local 643 &bitmap);
655 GpBitmap *bitmap = NULL; local 673 GpBitmap *bitmap = NULL; local 688 GpBitmap *bitmap = NULL; local 702 GpBitmap *bitmap = NULL; local 717 GpBitmap *bitmap = NULL; local 729 GpBitmap *bitmap = NULL; local 742 GpBitmap *bitmap = NULL; local 858 Bitmap* bitmap; local 903 Bitmap* bitmap; local [all...] |
/external/skia/gm/ |
H A D | offsetimagefilter.cpp | 66 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { argument 69 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())); 72 canvas->drawBitmap(bitmap, 0, 0, &paint); 98 SkBitmap* bitmap = (i & 0x01) ? &fCheckerboard : &fBitmap; local 101 bitmap->width() - i * 8, 102 bitmap->height() - i * 12); 104 SkAutoTUnref<SkImageFilter> tileInput(SkBitmapSource::Create(*bitmap)); 110 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect); 111 canvas->translate(SkIntToScalar(bitmap [all...] |
/external/chromium_org/cc/resources/ |
H A D | image_layer_updater.cc | 59 void ImageLayerUpdater::SetBitmap(const SkBitmap& bitmap) { argument 60 DCHECK(bitmap.pixelRef()); 61 bitmap_ = bitmap; 64 bool ImageLayerUpdater::UsingBitmap(const SkBitmap& bitmap) const { 65 return bitmap.pixelRef() == bitmap_.pixelRef();
|
/external/chromium_org/chrome/browser/ |
H A D | image_holder.cc | 5 // This class holds the URL to an image and the bitmap for the fetched image, 6 // and has code to fetch the bitmap from the URL. 52 // If this bitmap has a valid GURL, create a fetcher for it. 63 DVLOG(2) << __FUNCTION__ << "Pushing bitmap " << url; 80 void ImageHolder::OnFetchComplete(const GURL url, const SkBitmap* bitmap) { argument 82 // Match the bitmap to the URL to put it into the image with the correct scale 86 if (bitmap != NULL) 87 image_.AddRepresentation(gfx::ImageSkiaRep(*bitmap, 1.0)); 90 if (bitmap != NULL) 91 image_.AddRepresentation(gfx::ImageSkiaRep(*bitmap, 2. [all...] |
/external/chromium_org/third_party/skia/samplecode/ |
H A D | SampleMipMap.cpp | 16 SkBitmap bitmap; local 17 bitmap.allocN32Pixels(n, n); 18 bitmap.eraseColor(SK_ColorTRANSPARENT); 20 SkCanvas canvas(bitmap); 34 return bitmap;
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkPDFRasterizer.cpp | 52 SkBitmap bitmap; local 53 if (!bitmap.tryAllocN32Pixels(width, height)) { 56 bitmap.eraseColor(SK_ColorWHITE); 57 SkPMColor* bitmapPixels = (SkPMColor*)bitmap.getPixels(); 76 output->swap(bitmap);
|
H A D | SkTextureCompressor.cpp | 176 SkData* CompressBitmapToFormat(const SkBitmap &bitmap, Format format) { argument 177 SkAutoLockPixels alp(bitmap); 179 int compressedDataSize = GetCompressedDataSize(format, bitmap.width(), bitmap.height()); 184 const uint8_t* src = reinterpret_cast<const uint8_t*>(bitmap.getPixels()); 187 if (!CompressBufferToFormat((uint8_t*)dst->writable_data(), src, bitmap.colorType(), 188 bitmap.width(), bitmap.height(), bitmap.rowBytes(), format)) {
|
/external/ltrace/sysdeps/linux-gnu/ia64/ |
H A D | trace.c | 56 } bitmap; member in union:bundle_t 101 unsigned long bot = 0UL | bundle.bitmap.word0.bot_slot1; 102 unsigned long top = 0UL | bundle.bitmap.word1.top_slot1; 108 insn = bundle.bitmap.word1.slot2; 111 insn = bundle.bitmap.word0.slot0;
|
/external/skia/samplecode/ |
H A D | SampleMipMap.cpp | 16 SkBitmap bitmap; local 17 bitmap.allocN32Pixels(n, n); 18 bitmap.eraseColor(SK_ColorTRANSPARENT); 20 SkCanvas canvas(bitmap); 34 return bitmap;
|
/external/skia/src/utils/ |
H A D | SkPDFRasterizer.cpp | 52 SkBitmap bitmap; local 53 if (!bitmap.allocPixels(SkImageInfo::MakeN32Premul(width, height))) { 56 bitmap.eraseColor(SK_ColorWHITE); 57 SkPMColor* bitmapPixels = (SkPMColor*)bitmap.getPixels(); 76 output->swap(bitmap);
|
/external/chromium_org/chrome/browser/chromeos/login/users/wallpaper/ |
H A D | wallpaper_manager_test_utils.cc | 80 SkBitmap bitmap; local 81 bitmap.allocN32Pixels(width, height); 82 bitmap.eraseColor(color); 86 static_cast<const unsigned char*>(bitmap.getPixels()), 90 bitmap.rowBytes(), 93 LOG(ERROR) << "Unable to encode " << width << "x" << height << " bitmap"; 100 SkBitmap bitmap; local 101 bitmap.allocN32Pixels(width, height); 102 bitmap.eraseColor(color); 103 return gfx::ImageSkia::CreateFrom1xBitmap(bitmap); 130 const SkBitmap* bitmap = image.bitmap(); local [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | ImageBuffer.cpp | 103 const SkBitmap& ImageBuffer::bitmap() const function in class:blink::ImageBuffer 105 return m_surface->bitmap(); 141 static SkBitmap deepSkBitmapCopy(const SkBitmap& bitmap) argument 144 if (!bitmap.deepCopyTo(&tmp)) 145 bitmap.copyTo(&tmp, bitmap.colorType()); 155 const SkBitmap& bitmap = m_surface->bitmap(); local 156 return BitmapImage::create(NativeImageSkia::create(copyBehavior == CopyBackingStore ? deepSkBitmapCopy(bitmap) : bitmap)); 268 SkBitmap bitmap = m_surface->bitmap(); local 294 const SkBitmap& bitmap = m_surface->bitmap(); local 309 const SkBitmap& bitmap = m_surface->bitmap(); local [all...] |
/external/chromium_org/third_party/skia/tests/ |
H A D | DeviceLooperTest.cpp | 43 SkBitmap bitmap; local 44 make_bm(&bitmap, gRec[i].fDevSize.width(), gRec[i].fDevSize.height()); 49 SkDeviceLooper looper(bitmap, rc, gRec[i].fRect, SkToBool(aa)); 54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width()); 55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.height()); 65 SkDeviceLooper looper(bitmap, rc, r, false); 112 SkBitmap bitmap; local 113 make_bm(&bitmap, w, h); 128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
H A D | SizeStrategy.java | 20 public void put(Bitmap bitmap) { argument 21 final Key key = keyPool.get(bitmap.getAllocationByteCount()); 23 groupedMap.put(key, bitmap); 40 // Do a get even if we know we don't have a bitmap so that the key moves to the front in the lru pool 70 public String logBitmap(Bitmap bitmap) { argument 71 return getBitmapString(bitmap); 80 public int getSize(Bitmap bitmap) { argument 81 return bitmap.getAllocationByteCount(); 98 private static String getBitmapString(Bitmap bitmap) { argument 99 return getBitmapString(bitmap [all...] |
H A D | LruBitmapPool.java | 46 public synchronized boolean put(Bitmap bitmap) { argument 47 if (!bitmap.isMutable() || strategy.getSize(bitmap) > maxSize) { 51 final int size = strategy.getSize(bitmap); 52 strategy.put(bitmap); 58 Log.d(TAG, "Put bitmap in pool=" + strategy.logBitmap(bitmap)); 75 Log.d(TAG, "Missing bitmap=" + strategy.logBitmap(width, height, config)); 83 Log.d(TAG, "Get bitmap=" + strategy.logBitmap(width, height, config)); 111 Log.d(TAG, "Evicting bitmap [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
H A D | SpriteComponent.java | 108 // Fire and forget. Allocate a new bitmap for this animation frame, set it up, and 110 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); 111 bitmap.setWidth(mWidth); 112 bitmap.setHeight(mHeight); 113 bitmap.setOpacity(mOpacity); 114 updateFlip(bitmap, parentObject.facingDirection.x < 0.0f, 116 bitmap.setTexture(currentFrame.texture); 117 render.setDrawable(bitmap); 182 protected final void updateFlip(DrawableBitmap bitmap, boolean horzFlip, boolean vertFlip) { argument 183 bitmap [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowBitmapFactory.java | 29 Bitmap bitmap = create("resource:" + getResourceName(id)); 30 shadowOf(bitmap).setLoadedFromResourceId(id); 31 return bitmap; 36 Bitmap bitmap = create("resource:" + getResourceName(id), options); 37 shadowOf(bitmap).setLoadedFromResourceId(id); 38 return bitmap; 70 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); 71 ShadowBitmap shadowBitmap = shadowOf(bitmap); 89 return bitmap;
|
/external/skia/tests/ |
H A D | DeviceLooperTest.cpp | 43 SkBitmap bitmap; local 44 make_bm(&bitmap, gRec[i].fDevSize.width(), gRec[i].fDevSize.height()); 49 SkDeviceLooper looper(bitmap, rc, gRec[i].fRect, SkToBool(aa)); 54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width()); 55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.height()); 65 SkDeviceLooper looper(bitmap, rc, r, false); 112 SkBitmap bitmap; local 113 make_bm(&bitmap, w, h); 128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA);
|
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkImageDecoder.h | 104 /** Set to true to require the decoder to return a bitmap with unpremultiplied 105 colors. The default is false, meaning the resulting bitmap will have its 107 NOTE: Passing true to this function may result in a bitmap which cannot 181 // original bitmap, sampling 1 pixel for every size pixels. e.g. if sample 182 // size is set to 3, then the returned bitmap will be 1/3 as wide and high, 211 only the bitmap's info need be set. If kDecodePixels_Mode 212 is passed, then the bitmap must have pixels or a pixelRef. 215 kDecodeBounds_Mode, //!< only return info in bitmap 216 kDecodePixels_Mode //!< return entire bitmap (including pixels) 219 /** Given a stream, decode it into the specified bitmap 239 decode(SkStream* stream, SkBitmap* bitmap, Mode mode) argument 277 DecodeFile(const char file[], SkBitmap* bitmap) argument 292 DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap) argument 322 DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap) argument 338 onDecodeSubset(SkBitmap* bitmap, const SkIRect& rect) argument [all...] |
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
H A D | skia_utils_gtk2.cc | 90 GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap& bitmap) { argument 91 if (bitmap.isNull()) 94 SkAutoLockPixels lock_pixels(bitmap); 96 int width = bitmap.width(); 97 int height = bitmap.height(); 112 uint32 pixel = bitmap.getAddr32(0, y)[x];
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
H A D | HandleViewResources.java | 74 Bitmap bitmap = BitmapFactory.decodeResource(res, resId, options); 75 if (bitmap != null) return bitmap; 80 bitmap = BitmapFactory.decodeResource(context.getResources(), resId, options); 81 if (bitmap != null) return bitmap;
|
/external/chromium_org/ui/ozone/platform/test/ |
H A D | test_window_manager.cc | 23 void WriteDataToFile(const base::FilePath& location, const SkBitmap& bitmap) { argument 26 gfx::PNGCodec::FastEncodeBGRASkBitmap(bitmap, true, &png_data); 48 SkBitmap bitmap; 49 bitmap.setInfo(surface_->getCanvas()->imageInfo()); 53 if (surface_->getCanvas()->readPixels(&bitmap, 0, 0)) { 55 FROM_HERE, base::Bind(&WriteDataToFile, location_, bitmap), true);
|
/external/chromium_org/ui/snapshot/ |
H A D | snapshot_async.cc | 37 scoped_refptr<base::RefCountedBytes> EncodeBitmap(const SkBitmap& bitmap) { argument 39 SkAutoLockPixels lock(bitmap); 40 unsigned char* pixels = reinterpret_cast<unsigned char*>(bitmap.getPixels()); 50 gfx::Size(bitmap.width(), bitmap.height()), 51 base::checked_cast<int>(bitmap.rowBytes()),
|
/external/pdfium/fpdfsdk/src/ |
H A D | fpdf_progressive.cpp | 17 DLLEXPORT int STDCALL FPDF_RenderPageBitmap_Start( FPDF_BITMAP bitmap, FPDF_PAGE page,
argument 22 if (bitmap == NULL || page == NULL)
40 ((CFX_SkiaDevice*)pContext->m_pDevice)->Attach((CFX_DIBitmap*)bitmap,0,TRUE);
42 ((CFX_SkiaDevice*)pContext->m_pDevice)->Attach((CFX_DIBitmap*)bitmap);
46 ((CFX_FxgeDevice*)pContext->m_pDevice)->Attach((CFX_DIBitmap*)bitmap,0,TRUE);
48 ((CFX_FxgeDevice*)pContext->m_pDevice)->Attach((CFX_DIBitmap*)bitmap);
|