Andreas Gampe | ed6b9df | 2014-11-20 22:02:20 -0800 | [diff] [blame] | 1 | #ifndef _ANDROID_GRAPHICS_GRAPHICS_JNI_H_ |
| 2 | #define _ANDROID_GRAPHICS_GRAPHICS_JNI_H_ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 3 | |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 4 | #include "SkBitmap.h" |
| 5 | #include "SkDevice.h" |
| 6 | #include "SkPixelRef.h" |
| 7 | #include "SkMallocPixelRef.h" |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 8 | #include "SkPoint.h" |
| 9 | #include "SkRect.h" |
Derek Sollenberger | 5827cb5 | 2013-07-26 14:58:06 -0400 | [diff] [blame] | 10 | #include "SkImageDecoder.h" |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 11 | #include <jni.h> |
| 12 | |
Derek Sollenberger | 5827cb5 | 2013-07-26 14:58:06 -0400 | [diff] [blame] | 13 | class SkBitmapRegionDecoder; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 14 | class SkCanvas; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 15 | |
Raph Levien | 3d528c40 | 2014-06-26 09:04:54 -0700 | [diff] [blame] | 16 | namespace android { |
Behdad Esfahbod | 6ba30b8 | 2014-07-15 16:22:32 -0400 | [diff] [blame] | 17 | class Paint; |
Dan Albert | 46d8444 | 2014-11-18 16:07:51 -0800 | [diff] [blame] | 18 | struct TypefaceImpl; |
Raph Levien | 3d528c40 | 2014-06-26 09:04:54 -0700 | [diff] [blame] | 19 | } |
| 20 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 21 | class GraphicsJNI { |
| 22 | public: |
Chris Craik | 1abf5d6 | 2013-08-16 12:47:03 -0700 | [diff] [blame] | 23 | enum BitmapCreateFlags { |
| 24 | kBitmapCreateFlag_None = 0x0, |
| 25 | kBitmapCreateFlag_Mutable = 0x1, |
| 26 | kBitmapCreateFlag_Premultiplied = 0x2, |
| 27 | }; |
| 28 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | // returns true if an exception is set (and dumps it out to the Log) |
| 30 | static bool hasException(JNIEnv*); |
| 31 | |
| 32 | static void get_jrect(JNIEnv*, jobject jrect, int* L, int* T, int* R, int* B); |
| 33 | static void set_jrect(JNIEnv*, jobject jrect, int L, int T, int R, int B); |
| 34 | |
| 35 | static SkIRect* jrect_to_irect(JNIEnv*, jobject jrect, SkIRect*); |
| 36 | static void irect_to_jrect(const SkIRect&, JNIEnv*, jobject jrect); |
| 37 | |
| 38 | static SkRect* jrectf_to_rect(JNIEnv*, jobject jrectf, SkRect*); |
| 39 | static SkRect* jrect_to_rect(JNIEnv*, jobject jrect, SkRect*); |
| 40 | static void rect_to_jrectf(const SkRect&, JNIEnv*, jobject jrectf); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 41 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | static void set_jpoint(JNIEnv*, jobject jrect, int x, int y); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 43 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | static SkIPoint* jpoint_to_ipoint(JNIEnv*, jobject jpoint, SkIPoint* point); |
| 45 | static void ipoint_to_jpoint(const SkIPoint& point, JNIEnv*, jobject jpoint); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 46 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point); |
| 48 | static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 49 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 50 | static SkCanvas* getNativeCanvas(JNIEnv*, jobject canvas); |
John Reck | edc22fb | 2015-04-20 22:06:31 +0000 | [diff] [blame] | 51 | static SkBitmap* getSkBitmap(JNIEnv*, jobject bitmap); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 52 | static SkRegion* getNativeRegion(JNIEnv*, jobject region); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 53 | |
Mike Reed | 4c9355c | 2014-05-07 11:48:37 -0400 | [diff] [blame] | 54 | // Given the 'native' long held by the Rasterizer.java object, return a |
| 55 | // ref to its SkRasterizer* (or NULL). |
| 56 | static SkRasterizer* refNativeRasterizer(jlong rasterizerHandle); |
| 57 | |
Mike Reed | 1103b32 | 2014-07-08 12:36:44 -0400 | [diff] [blame] | 58 | /* |
| 59 | * LegacyBitmapConfig is the old enum in Skia that matched the enum int values |
| 60 | * in Bitmap.Config. Skia no longer supports this config, but has replaced it |
| 61 | * with SkColorType. These routines convert between the two. |
| 62 | */ |
| 63 | static SkColorType legacyBitmapConfigToColorType(jint legacyConfig); |
| 64 | static jint colorTypeToLegacyBitmapConfig(SkColorType colorType); |
| 65 | |
Mike Reed | 42a1d08 | 2014-07-07 18:06:18 -0400 | [diff] [blame] | 66 | /** Return the corresponding native colorType from the java Config enum, |
| 67 | or kUnknown_SkColorType if the java object is null. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 68 | */ |
Mike Reed | 42a1d08 | 2014-07-07 18:06:18 -0400 | [diff] [blame] | 69 | static SkColorType getNativeBitmapColorType(JNIEnv*, jobject jconfig); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 70 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 71 | /** Create a java Bitmap object given the native bitmap (required) and optional |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 72 | storage array (may be null). |
Leon Scroggins III | 8790be6 | 2013-12-03 16:26:51 -0500 | [diff] [blame] | 73 | bitmap's SkAlphaType must already be in sync with bitmapCreateFlags. |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 74 | */ |
| 75 | static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer, |
Chris Craik | 47cd8e9 | 2014-07-08 17:13:08 -0700 | [diff] [blame] | 76 | int bitmapCreateFlags, jbyteArray ninePatch, jobject ninePatchInsets, int density = -1); |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 77 | |
Chris Craik | 1abf5d6 | 2013-08-16 12:47:03 -0700 | [diff] [blame] | 78 | static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, int bitmapCreateFlags, |
Chris Craik | 47cd8e9 | 2014-07-08 17:13:08 -0700 | [diff] [blame] | 79 | jbyteArray ninePatch, int density = -1) { |
| 80 | return createBitmap(env, bitmap, NULL, bitmapCreateFlags, ninePatch, NULL, density); |
| 81 | } |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 82 | |
Leon Scroggins III | 8790be6 | 2013-12-03 16:26:51 -0500 | [diff] [blame] | 83 | /** Reinitialize a bitmap. bitmap must already have its SkAlphaType set in |
| 84 | sync with isPremultiplied |
| 85 | */ |
Chris Craik | 1abf5d6 | 2013-08-16 12:47:03 -0700 | [diff] [blame] | 86 | static void reinitBitmap(JNIEnv* env, jobject javaBitmap, SkBitmap* bitmap, |
| 87 | bool isPremultiplied); |
Chris Craik | 9f58361 | 2013-05-20 18:13:47 -0700 | [diff] [blame] | 88 | |
| 89 | static int getBitmapAllocationByteCount(JNIEnv* env, jobject javaBitmap); |
| 90 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 91 | static jobject createRegion(JNIEnv* env, SkRegion* region); |
| 92 | |
Wei-Ta Chen | 6b849e2 | 2010-09-07 17:32:18 +0800 | [diff] [blame] | 93 | static jobject createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap); |
Joseph Wen | f1f48bc | 2010-07-19 16:59:51 +0800 | [diff] [blame] | 94 | |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 95 | static jbyteArray allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, |
Chris Craik | 1abf5d6 | 2013-08-16 12:47:03 -0700 | [diff] [blame] | 96 | SkColorTable* ctable); |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 97 | |
Derek Sollenberger | 3d4eed7 | 2014-12-04 15:20:29 -0500 | [diff] [blame] | 98 | /** |
| 99 | * Given a bitmap we natively allocate a memory block to store the contents |
| 100 | * of that bitmap. The memory is then attached to the bitmap via an |
| 101 | * SkPixelRef, which ensures that upon deletion the appropriate caches |
| 102 | * are notified. |
| 103 | */ |
| 104 | static bool allocatePixels(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable); |
| 105 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 106 | /** Copy the colors in colors[] to the bitmap, convert to the correct |
| 107 | format along the way. |
Leon Scroggins III | 57ee620 | 2014-06-04 18:51:07 -0400 | [diff] [blame] | 108 | Whether to use premultiplied pixels is determined by dstBitmap's alphaType. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 109 | */ |
| 110 | static bool SetPixels(JNIEnv* env, jintArray colors, int srcOffset, |
Chris Craik | 1abf5d6 | 2013-08-16 12:47:03 -0700 | [diff] [blame] | 111 | int srcStride, int x, int y, int width, int height, |
Leon Scroggins III | 57ee620 | 2014-06-04 18:51:07 -0400 | [diff] [blame] | 112 | const SkBitmap& dstBitmap); |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 113 | |
| 114 | static jbyteArray getBitmapStorageObj(SkPixelRef *pixref); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 115 | }; |
| 116 | |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 117 | class AndroidPixelRef : public SkMallocPixelRef { |
| 118 | public: |
Derek Sollenberger | b644a3b | 2014-01-17 15:45:10 -0500 | [diff] [blame] | 119 | AndroidPixelRef(JNIEnv* env, const SkImageInfo& info, void* storage, size_t rowBytes, |
| 120 | jbyteArray storageObj, SkColorTable* ctable); |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 121 | |
Chris Craik | cd0ba71 | 2013-09-06 14:40:30 -0700 | [diff] [blame] | 122 | /** |
| 123 | * Creates an AndroidPixelRef that wraps (and refs) another to reuse/share |
| 124 | * the same storage and java byte array refcounting, yet have a different |
| 125 | * color table. |
| 126 | */ |
Derek Sollenberger | b644a3b | 2014-01-17 15:45:10 -0500 | [diff] [blame] | 127 | AndroidPixelRef(AndroidPixelRef& wrappedPixelRef, const SkImageInfo& info, |
| 128 | size_t rowBytes, SkColorTable* ctable); |
Chris Craik | cd0ba71 | 2013-09-06 14:40:30 -0700 | [diff] [blame] | 129 | |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 130 | virtual ~AndroidPixelRef(); |
| 131 | |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 132 | private: |
Chris Craik | cd0ba71 | 2013-09-06 14:40:30 -0700 | [diff] [blame] | 133 | AndroidPixelRef* const fWrappedPixelRef; // if set, delegate memory management calls to this |
| 134 | |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 135 | JavaVM* fVM; |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 136 | jbyteArray fStorageObj; // The Java byte[] object used as the bitmap backing store |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 137 | }; |
| 138 | |
| 139 | /** Allocator which allocates the backing buffer in the Java heap. |
| 140 | * Instances can only be used to perform a single allocation, which helps |
| 141 | * ensure that the allocated buffer is properly accounted for with a |
| 142 | * reference in the heap (or a JNI global reference). |
| 143 | */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 144 | class JavaPixelAllocator : public SkBitmap::Allocator { |
| 145 | public: |
Carl Shapiro | 12d81c4 | 2010-12-17 18:36:48 -0800 | [diff] [blame] | 146 | JavaPixelAllocator(JNIEnv* env); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 147 | // overrides |
| 148 | virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 149 | |
Patrick Dubroy | afde46e | 2010-12-15 11:52:01 -0800 | [diff] [blame] | 150 | /** Return the Java array object created for the last allocation. |
| 151 | * This returns a local JNI reference which the caller is responsible |
| 152 | * for storing appropriately (usually by passing it to the Bitmap |
| 153 | * constructor). |
| 154 | */ |
| 155 | jbyteArray getStorageObj() { return fStorageObj; } |
| 156 | |
| 157 | /** Same as getStorageObj(), but also resets the allocator so that it |
| 158 | * can allocate again. |
| 159 | */ |
| 160 | jbyteArray getStorageObjAndReset() { |
| 161 | jbyteArray result = fStorageObj; |
| 162 | fStorageObj = NULL; |
| 163 | fAllocCount = 0; |
| 164 | return result; |
| 165 | }; |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 166 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 167 | private: |
Wei-Ta Chen | 291303b | 2010-08-18 15:40:29 +0800 | [diff] [blame] | 168 | JavaVM* fVM; |
Patrick Dubroy | e4ac2d6 | 2010-12-01 11:23:13 -0800 | [diff] [blame] | 169 | jbyteArray fStorageObj; |
Patrick Dubroy | afde46e | 2010-12-15 11:52:01 -0800 | [diff] [blame] | 170 | int fAllocCount; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 171 | }; |
| 172 | |
Mike Reed | c04851f | 2009-10-28 15:09:45 -0400 | [diff] [blame] | 173 | enum JNIAccess { |
| 174 | kRO_JNIAccess, |
| 175 | kRW_JNIAccess |
| 176 | }; |
| 177 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 178 | class AutoJavaFloatArray { |
| 179 | public: |
Mike Reed | c04851f | 2009-10-28 15:09:45 -0400 | [diff] [blame] | 180 | AutoJavaFloatArray(JNIEnv* env, jfloatArray array, |
| 181 | int minLength = 0, JNIAccess = kRW_JNIAccess); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 182 | ~AutoJavaFloatArray(); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 183 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 184 | float* ptr() const { return fPtr; } |
| 185 | int length() const { return fLen; } |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 186 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 187 | private: |
| 188 | JNIEnv* fEnv; |
| 189 | jfloatArray fArray; |
| 190 | float* fPtr; |
| 191 | int fLen; |
Mike Reed | c04851f | 2009-10-28 15:09:45 -0400 | [diff] [blame] | 192 | int fReleaseMode; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | class AutoJavaIntArray { |
| 196 | public: |
| 197 | AutoJavaIntArray(JNIEnv* env, jintArray array, int minLength = 0); |
| 198 | ~AutoJavaIntArray(); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 199 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 200 | jint* ptr() const { return fPtr; } |
| 201 | int length() const { return fLen; } |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 202 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 203 | private: |
| 204 | JNIEnv* fEnv; |
| 205 | jintArray fArray; |
| 206 | jint* fPtr; |
| 207 | int fLen; |
| 208 | }; |
| 209 | |
| 210 | class AutoJavaShortArray { |
| 211 | public: |
Mike Reed | c04851f | 2009-10-28 15:09:45 -0400 | [diff] [blame] | 212 | AutoJavaShortArray(JNIEnv* env, jshortArray array, |
| 213 | int minLength = 0, JNIAccess = kRW_JNIAccess); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 214 | ~AutoJavaShortArray(); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 215 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 216 | jshort* ptr() const { return fPtr; } |
| 217 | int length() const { return fLen; } |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 218 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 219 | private: |
| 220 | JNIEnv* fEnv; |
| 221 | jshortArray fArray; |
| 222 | jshort* fPtr; |
| 223 | int fLen; |
Mike Reed | c04851f | 2009-10-28 15:09:45 -0400 | [diff] [blame] | 224 | int fReleaseMode; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 225 | }; |
| 226 | |
| 227 | class AutoJavaByteArray { |
| 228 | public: |
| 229 | AutoJavaByteArray(JNIEnv* env, jbyteArray array, int minLength = 0); |
| 230 | ~AutoJavaByteArray(); |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 231 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 232 | jbyte* ptr() const { return fPtr; } |
| 233 | int length() const { return fLen; } |
Elliott Hughes | 8451b25 | 2011-04-07 19:17:57 -0700 | [diff] [blame] | 234 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 235 | private: |
| 236 | JNIEnv* fEnv; |
| 237 | jbyteArray fArray; |
| 238 | jbyte* fPtr; |
| 239 | int fLen; |
| 240 | }; |
| 241 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 242 | void doThrowNPE(JNIEnv* env); |
| 243 | void doThrowAIOOBE(JNIEnv* env); // Array Index Out Of Bounds Exception |
| 244 | void doThrowIAE(JNIEnv* env, const char* msg = NULL); // Illegal Argument |
| 245 | void doThrowRE(JNIEnv* env, const char* msg = NULL); // Runtime |
| 246 | void doThrowISE(JNIEnv* env, const char* msg = NULL); // Illegal State |
| 247 | void doThrowOOME(JNIEnv* env, const char* msg = NULL); // Out of memory |
Joseph Wen | f1f48bc | 2010-07-19 16:59:51 +0800 | [diff] [blame] | 248 | void doThrowIOE(JNIEnv* env, const char* msg = NULL); // IO Exception |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 249 | |
| 250 | #define NPE_CHECK_RETURN_ZERO(env, object) \ |
| 251 | do { if (NULL == (object)) { doThrowNPE(env); return 0; } } while (0) |
| 252 | |
| 253 | #define NPE_CHECK_RETURN_VOID(env, object) \ |
| 254 | do { if (NULL == (object)) { doThrowNPE(env); return; } } while (0) |
| 255 | |
Andreas Gampe | ed6b9df | 2014-11-20 22:02:20 -0800 | [diff] [blame] | 256 | #endif // _ANDROID_GRAPHICS_GRAPHICS_JNI_H_ |