Home
last modified time | relevance | path

Searched refs:originalBitmap (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/core/
DSkBitmapHeap.cpp239 bool SkBitmapHeap::copyBitmap(const SkBitmap& originalBitmap, SkBitmap& copiedBitmap) { in copyBitmap() argument
244 if (originalBitmap.isImmutable()) { in copyBitmap()
245 copiedBitmap = originalBitmap; in copyBitmap()
250 } else if (originalBitmap.empty()) { in copyBitmap()
252 } else if (!originalBitmap.deepCopyTo(&copiedBitmap)) { in copyBitmap()
272 int32_t SkBitmapHeap::insert(const SkBitmap& originalBitmap) { in insert() argument
274 int searchIndex = this->findInLookupTable(LookupEntry(originalBitmap), &entry); in insert()
298 LookupEntry* lookupEntry = this->findEntryToReplace(originalBitmap); in insert()
330 copySucceeded = fExternalStorage->insert(originalBitmap, entry->fSlot); in insert()
332 copySucceeded = copyBitmap(originalBitmap, entry->fBitmap); in insert()
[all …]
DSkBitmapHeap.h258 bool copyBitmap(const SkBitmap& originalBitmap, SkBitmap& copiedBitmap);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DBitmapTest.java24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); in shouldCreateScaledBitmap() local
25 shadowOf(originalBitmap).appendDescription("Original bitmap"); in shouldCreateScaledBitmap()
26 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false); in shouldCreateScaledBitmap()
46 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); in shouldCreateBitmapFromAnotherBitmap() local
47 shadowOf(originalBitmap).appendDescription("Original bitmap"); in shouldCreateBitmapFromAnotherBitmap()
48 Bitmap newBitmap = Bitmap.createBitmap(originalBitmap); in shouldCreateBitmapFromAnotherBitmap()
/external/skia/src/images/
DSkImageDecoder_libpng.cpp829 const SkBitmap& originalBitmap, in onEncode() argument
832 const SkBitmap* bitmap = &originalBitmap; in onEncode()
833 switch (originalBitmap.colorType()) { in onEncode()
843 if (originalBitmap.copyTo(&copy, kN32_SkColorType)) { in onEncode()