Lines Matching defs:Bitmap

1 #define LOG_TAG "Bitmap"
2 #include "Bitmap.h"
37 WrappedPixelRef(Bitmap* wrapper, void* storage,
118 Bitmap& mBitmap;
129 Bitmap::Bitmap(JNIEnv* env, jbyteArray storageObj, void* address,
141 Bitmap::Bitmap(void* address, void* context, FreeFunc freeFunc,
153 Bitmap::Bitmap(void* address, int fd,
164 Bitmap::~Bitmap() {
168 void Bitmap::freePixels() {
176 void Bitmap::doFreePixels() {
204 bool Bitmap::hasHardwareMipMap() {
208 void Bitmap::setHasHardwareMipMap(bool hasMipMap) {
212 int Bitmap::getAshmemFd() const {
221 const SkImageInfo& Bitmap::info() const {
225 size_t Bitmap::rowBytes() const {
229 SkPixelRef* Bitmap::peekAtPixelRef() const {
234 SkPixelRef* Bitmap::refPixelRef() {
240 SkPixelRef* Bitmap::refPixelRefLocked() {
252 void Bitmap::reconfigure(const SkImageInfo& info, size_t rowBytes,
257 void Bitmap::reconfigure(const SkImageInfo& info) {
261 void Bitmap::setAlphaType(SkAlphaType alphaType) {
269 void Bitmap::detachFromJava() {
281 bool Bitmap::shouldDisposeSelfLocked() {
285 JNIEnv* Bitmap::jniEnv() {
293 void Bitmap::onStrongRefDestroyed() {
310 void Bitmap::pinPixelsLocked() {
333 void Bitmap::unpinPixelsLocked() {
353 void Bitmap::getSkBitmap(SkBitmap* outBitmap) {
363 void Bitmap::assertValid() const {
377 : mBitmap(reinterpret_cast<Bitmap*>(bitmapHandle)) {}
379 Bitmap* operator->() {
392 Bitmap* mBitmap;
725 Bitmap* nativeBitmap = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
742 reinterpret_cast<Bitmap*>(srcHandle)->getSkBitmap(&src);
750 Bitmap* bitmap = allocator.getStorageObjAndReset();
755 static Bitmap* Bitmap_copyAshmemImpl(JNIEnv* env, SkBitmap& src, SkColorType& dstCT) {
762 Bitmap* bitmap = allocator.getStorageObjAndReset();
769 reinterpret_cast<Bitmap*>(srcHandle)->getSkBitmap(&src);
771 Bitmap* bitmap = Bitmap_copyAshmemImpl(env, src, dstCT);
778 reinterpret_cast<Bitmap*>(srcHandle)->getSkBitmap(&src);
780 Bitmap* bitmap = Bitmap_copyAshmemImpl(env, src, dstCT);
785 static void Bitmap_destruct(Bitmap* bitmap) {
812 doThrowIAE(env, "Bitmap not large enough to support new configuration");
828 // These must match the int values in Bitmap.java
1007 Bitmap* nativeBitmap;
1010 ALOGD("Bitmap.createFromParcel: mapped contents of %s bitmap from %s blob "
1043 ALOGD("Bitmap.createFromParcel: copied contents of mutable bitmap "
1047 ALOGD("Bitmap.createFromParcel: copied contents from %s blob "
1086 android::Bitmap* androidBitmap = reinterpret_cast<Bitmap*>(bitmapHandle);
1116 ALOGD("Bitmap.writeToParcel: transferring immutable bitmap's ashmem fd as "
1132 ALOGD("Bitmap.writeToParcel: copying %s bitmap into new %s blob (fds %s)",
1163 reinterpret_cast<Bitmap*>(srcHandle)->getSkBitmap(&src);
1192 reinterpret_cast<Bitmap*>(bitmapHandle)->getSkBitmap(&bitmap);
1213 reinterpret_cast<Bitmap*>(bitmapHandle)->getSkBitmap(&bitmap);
1241 reinterpret_cast<Bitmap*>(bitmapHandle)->getSkBitmap(&bitmap);
1261 reinterpret_cast<Bitmap*>(bitmapHandle)->getSkBitmap(&bitmap);
1269 reinterpret_cast<Bitmap*>(bitmapHandle)->getSkBitmap(&bitmap);
1284 reinterpret_cast<Bitmap*>(bitmapHandle)->getSkBitmap(&bitmap);
1300 reinterpret_cast<Bitmap*>(bm0Handle)->getSkBitmap(&bm0);
1301 reinterpret_cast<Bitmap*>(bm1Handle)->getSkBitmap(&bm1);
1367 { "nativeCreate", "([IIIIIIZ)Landroid/graphics/Bitmap;",
1369 { "nativeCopy", "(JIZ)Landroid/graphics/Bitmap;",
1371 { "nativeCopyAshmem", "(J)Landroid/graphics/Bitmap;",
1373 { "nativeCopyAshmemConfig", "(JI)Landroid/graphics/Bitmap;",
1390 "(Landroid/os/Parcel;)Landroid/graphics/Bitmap;",
1394 { "nativeExtractAlpha", "(JJ[I)Landroid/graphics/Bitmap;",
1411 return android::RegisterMethodsOrDie(env, "android/graphics/Bitmap", gBitmapMethods,