diff options
author | Jerome Gaillard <jgaillard@google.com> | 2020-05-26 17:35:44 +0100 |
---|---|---|
committer | Jerome Gaillard <jgaillard@google.com> | 2020-05-26 16:55:43 +0000 |
commit | a818713c5efbca48bbcd53dbaf1e61bd4ad35fd2 (patch) | |
tree | aec0cf28fd476aad67378cd4c11b4ad56326d64b /libs/hwui/jni/android_graphics_Canvas.cpp | |
parent | 892d50baf2b36f9e1f8e317f2967a3b709ea7cbb (diff) |
Use JNI types for return types of JNI methods
JNI methods should use JNI types for their return types so as to ensure
type compatibility between Java and C++.
Bug: 152250228
Test: N/A
Change-Id: Iae05806b91ebe5f173607d243d8504ec9e938589
Diffstat (limited to 'libs/hwui/jni/android_graphics_Canvas.cpp')
-rw-r--r-- | libs/hwui/jni/android_graphics_Canvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/jni/android_graphics_Canvas.cpp b/libs/hwui/jni/android_graphics_Canvas.cpp index 4aff3e544efa..b6c6cd0b5c1c 100644 --- a/libs/hwui/jni/android_graphics_Canvas.cpp +++ b/libs/hwui/jni/android_graphics_Canvas.cpp @@ -113,7 +113,7 @@ static void restoreUnclippedLayer(CRITICAL_JNI_PARAMS_COMMA jlong canvasHandle, get_canvas(canvasHandle)->restoreUnclippedLayer(saveCount, *paint); } -static bool restore(CRITICAL_JNI_PARAMS_COMMA jlong canvasHandle) { +static jboolean restore(CRITICAL_JNI_PARAMS_COMMA jlong canvasHandle) { Canvas* canvas = get_canvas(canvasHandle); if (canvas->getSaveCount() <= 1) { return false; // cannot restore anymore |