OSDN Git Service

Ensure munmap matches mmap
[android-x86/frameworks-base.git] / core / jni / android / graphics / GraphicsJNI.h
index bcd834b..b1d66b7 100644 (file)
@@ -99,7 +99,7 @@ public:
             SkColorTable* ctable);
 
     static android::Bitmap* mapAshmemPixelRef(JNIEnv* env, SkBitmap* bitmap,
-            SkColorTable* ctable, int fd, void* addr, bool readOnly);
+            SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly);
 
     /**
      * Given a bitmap we natively allocate a memory block to store the contents