/external/skia/src/images/ |
SkMovie.cpp | 62 const SkBitmap& SkMovie::bitmap() function in class:SkMovie
|
/external/webkit/Source/WebCore/platform/brew/ |
ScreenBrew.cpp | 52 RefPtr<IBitmap> bitmap = adoptRef(IDisplay_GetDestination(display)); local 55 IBitmap_GetInfo(bitmap.get(), &bitmapInfo, sizeof(AEEBitmapInfo));
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
ImageTexture.h | 79 SkBitmap* bitmap() { return m_image; } function in class:WebCore::ImageTexture 82 static SkBitmap* convertBitmap(SkBitmap* bitmap); 84 static unsigned computeCRC(const SkBitmap* bitmap);
|
RasterRenderer.cpp | 126 const SkBitmap& bitmap = canvas->getDevice()->accessBitmap(false); local 128 GLUtils::paintTextureWithBitmap(&renderInfo, bitmap);
|
SkBitmapRef.h | 41 const SkBitmap& bitmap() const { return fBitmap; } function in class:SkBitmapRef 42 SkBitmap& bitmap() { return fBitmap; } function in class:SkBitmapRef
|
/external/webkit/Source/WebKit2/Shared/cg/ |
ShareableBitmapCG.cpp | 89 ShareableBitmap* bitmap = static_cast<ShareableBitmap*>(typelessBitmap); local 90 ASSERT_UNUSED(typelessData, bitmap->data() == typelessData); 91 bitmap->deref(); // Balanced by ref in createGraphicsContext. 96 ShareableBitmap* bitmap = static_cast<ShareableBitmap*>(typelessBitmap); local 97 ASSERT_UNUSED(typelessData, bitmap->data() == typelessData); 98 bitmap->deref(); // Balanced by ref in createCGImage.
|
/frameworks/base/core/jni/ |
android_view_PointerIcon.h | 48 SkBitmap bitmap; member in struct:android::PointerIcon 58 bitmap.reset(); 68 /* Loads the bitmap associated with a pointer icon. 73 /* Loads the bitmap associated with a pointer icon by style.
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapFactoryTest.java | 33 Bitmap bitmap1 = Bitmap.createBitmap( 34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565); 36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out); 41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd); local 42 assertNotNull("BitmapFactory returned null", bitmap); 43 assertEquals("Bitmap width", 1, bitmap.getWidth()); 44 assertEquals("Bitmap height", 1, bitmap.getHeight()) [all...] |
/frameworks/base/libs/hwui/ |
ResourceCache.cpp | 203 SkBitmap* bitmap = (SkBitmap*) resource; local 205 Caches::getInstance().textureCache.removeDeferred(bitmap); 207 delete bitmap;
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselViewUtilities.java | 9 import android.graphics.Bitmap; 16 * Debug utility to write the given bitmap to a file. 19 * @param bitmap the bitmap to write 23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) { 31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ResourceTexture.java | 22 import android.graphics.Bitmap; 25 // ResourceTexture is a texture whose Bitmap is decoded from a resource. 39 protected Bitmap onGetBitmap() { 41 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 47 protected void onFreeBitmap(Bitmap bitmap) { 49 bitmap.recycle();
|
BoxBlurFilter.java | 19 import android.graphics.Bitmap; 58 Bitmap bitmap, int horizontalMode, int verticalMode) { 60 int width = bitmap.getWidth(); 61 int height = bitmap.getHeight(); 63 bitmap.getPixels(data, 0, width, 0, 0, width, height); 67 bitmap.setPixels(data, 0, width, 0, 0, width, height);
|
TileImageViewAdapter.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 33 protected Bitmap mBackupImage; 43 public TileImageViewAdapter(Bitmap backup, BitmapRegionDecoder regionDecoder) { 60 public synchronized void setBackupImage(Bitmap backup, int width, int height) { 83 public synchronized Bitmap getTile(int level, int x, int y, int length) { 99 Bitmap bitmap; local 103 bitmap = mRegionDecoder.decodeRegion(intersectRect, options); 108 if (intersectRect.equals(region)) return bitmap; [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaMetadataRetrieverTest.java | 21 import android.graphics.Bitmap; 89 Bitmap bitmap = retriever.getFrameAtTime(-1); local 90 assertTrue(bitmap != null); 93 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream); 96 Log.e(TAG, "Fails to convert the bitmap to a JPEG file for " + MediaNames.THUMBNAIL_METADATA_TEST_FILES[i]); 147 Bitmap bitmap = retriever.getFrameAtTime(-1); local 148 assertTrue(bitmap != null) [all...] |
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
BP2ProviderTests.java | 24 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 50 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 52 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
LightingColorFilterTest.java | 23 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config; 43 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 44 Canvas canvas = new Canvas(bitmap); 51 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); 56 assertColor(Color.BLUE, bitmap.getPixel(0, 0)); 61 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 64 bitmap.eraseColor(Color.TRANSPARENT) [all...] |
NinePatchTest.java | 27 import android.graphics.Bitmap; 43 private Bitmap mBitmap; 67 args = {android.graphics.Bitmap.class, byte[].class, java.lang.String.class} 86 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local 87 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk())); 115 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale); 117 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local 180 Bitmap bitmap = local [all...] |
PictureTest.java | 24 import android.graphics.Bitmap; 99 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 100 canvas = new Canvas(bitmap); 103 checkBitmap(bitmap); 108 // create a new Canvas with a new bitmap 109 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888) [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
ContactPhotoBinder.java | 23 import android.graphics.Bitmap; 78 // decoding the bitmap could be done in a worker thread too. 79 Bitmap bitmap = BitmapFactory.decodeStream(stream); local 80 d = new BitmapDrawable(mResources, bitmap);
|
/external/skia/samplecode/ |
SampleAARects.cpp | 9 SkBitmap bitmap; local 10 bitmap.setConfig(SkBitmap::kARGB_8888_Config, n, n); 11 bitmap.allocPixels(); 12 bitmap.eraseColor(SK_ColorGREEN); 14 SkCanvas canvas(bitmap); 28 return bitmap;
|
SampleMipMap.cpp | 9 SkBitmap bitmap; local 10 bitmap.setConfig(SkBitmap::kARGB_8888_Config, n, n); 11 bitmap.allocPixels(); 12 bitmap.eraseColor(0); 14 SkCanvas canvas(bitmap); 28 return bitmap; 53 void drawN(SkCanvas* canvas, const SkBitmap& bitmap) { 56 canvas->drawBitmap(bitmap, 0, 0, NULL); 62 void drawN2(SkCanvas* canvas, const SkBitmap& bitmap) { 72 c.drawBitmap(bitmap, 0, 0, NULL) [all...] |
/external/skia/src/gpu/ |
SkGr.cpp | 21 based bitmap. [palette (colortable) + indices]. 31 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { 32 SkASSERT(SkBitmap::kIndex8_Config == bitmap.config()); 34 SkAutoLockPixels apl(bitmap); 35 if (!bitmap.readyToDraw()) { 36 SkASSERT(!"bitmap not ready to draw!"); 40 SkColorTable* ctable = bitmap.getColorTable(); 49 if (bitmap.width() == bitmap.rowBytes()) { 50 memcpy(dst, bitmap.getPixels(), bitmap.getSize()) 77 const SkBitmap* bitmap = &origBitmap; local [all...] |
/external/skia/src/utils/mac/ |
SkCreateCGImageRef.cpp | 6 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local 7 delete bitmap; 76 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local 77 if (NULL == bitmap) { 81 const int w = bitmap->width(); 82 const int h = bitmap->height(); 83 const size_t s = bitmap->getSize(); 85 // our provider "owns" the bitmap*, and will take care of deleting it 86 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release 88 bitmap->lockPixels() [all...] |
/external/valgrind/main/drd/ |
pub_drd_bitmap.h | 27 * A bitmap is a data structure that contains information about which 54 struct bitmap; 69 /* Complete bitmap. */ 70 struct bitmap struct 79 struct bitmap* DRD_(bm_new)(void); 80 void DRD_(bm_delete)(struct bitmap* const bm); 81 void DRD_(bm_init)(struct bitmap* const bm); 82 void DRD_(bm_cleanup)(struct bitmap* const bm); 83 void DRD_(bm_access_range)(struct bitmap* const bm, 86 void DRD_(bm_access_range_load)(struct bitmap* const bm [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
GraphicsContextCairoWin.cpp | 46 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); local 48 BITMAP info; 49 if (!GetObject(bitmap, sizeof(info), &info)) 98 // Need to make a cairo_surface_t out of the bitmap's pixel buffer and then draw 134 OwnPtr<HBITMAP> bitmap = adoptPtr(static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP))); 136 DIBPixelData pixelData(bitmap.get()); 141 // to zero. We need to manually set the bitmap to be fully opaque. 151 void GraphicsContext::drawWindowsBitmap(WindowsBitmap* bitmap, const IntPoint& point) 153 drawBitmapToContext(m_data, platformContext()->cr(), bitmap->windowsDIB(), IntSize(point.x(), bitmap->size().height() + point.y())) [all...] |