OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Skia | 3 * Copyright 2011 Skia |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "com_skia_SkiaSampleRenderer.h" | 8 #include "com_skia_SkiaSampleRenderer.h" |
9 | 9 |
10 #include "SampleApp.h" | 10 #include "SampleApp.h" |
11 #include "SkApplication.h" | 11 #include "SkApplication.h" |
12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
13 #include "SkDevice.h" | 13 #include "SkDevice.h" |
14 #include "SkEvent.h" | 14 #include "SkEvent.h" |
15 #include "SkWindow.h" | 15 #include "SkWindow.h" |
16 | 16 |
17 #include <jni.h> | 17 #include <jni.h> |
18 #include "android/AndroidKeyToSkKey.h" | 18 #include "AndroidKeyToSkKey.h" |
19 | 19 |
20 | 20 |
21 /////////////////////////////////////////// | 21 /////////////////////////////////////////// |
22 ///////////////// Globals ///////////////// | 22 ///////////////// Globals ///////////////// |
23 /////////////////////////////////////////// | 23 /////////////////////////////////////////// |
24 | 24 |
25 struct ActivityGlue { | 25 struct ActivityGlue { |
26 JNIEnv* m_env; | 26 JNIEnv* m_env; |
27 jweak m_obj; | 27 jweak m_obj; |
28 jmethodID m_setTitle; | 28 jmethodID m_setTitle; |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 JNIEnv* env, jobject thiz) | 345 JNIEnv* env, jobject thiz) |
346 { | 346 { |
347 gWindow->saveToPdf(); | 347 gWindow->saveToPdf(); |
348 } | 348 } |
349 | 349 |
350 JNIEXPORT void JNICALL Java_com_skia_SkiaSampleRenderer_postInval( | 350 JNIEXPORT void JNICALL Java_com_skia_SkiaSampleRenderer_postInval( |
351 JNIEnv* env, jobject thiz) | 351 JNIEnv* env, jobject thiz) |
352 { | 352 { |
353 gWindow->postInvalDelay(); | 353 gWindow->postInvalDelay(); |
354 } | 354 } |
OLD | NEW |