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" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 SkDebugf("ERROR: The JNI WeakRef to the Window is invalid"); | 72 SkDebugf("ERROR: The JNI WeakRef to the Window is invalid"); |
73 return false; | 73 return false; |
74 } | 74 } |
75 info->fSampleCount = env->CallIntMethod(gWindowGlue.m_obj, gWindowGlue.m_get
MSAASampleCount); | 75 info->fSampleCount = env->CallIntMethod(gWindowGlue.m_obj, gWindowGlue.m_get
MSAASampleCount); |
76 | 76 |
77 // This is the value requested in SkiaSampleView.java. | 77 // This is the value requested in SkiaSampleView.java. |
78 info->fStencilBits = 8; | 78 info->fStencilBits = 8; |
79 return true; | 79 return true; |
80 } | 80 } |
81 | 81 |
82 void SkOSWindow::detach() { | 82 void SkOSWindow::release() { |
83 } | 83 } |
84 | 84 |
85 void SkOSWindow::present() { | 85 void SkOSWindow::present() { |
86 } | 86 } |
87 | 87 |
88 void SkOSWindow::closeWindow() { | 88 void SkOSWindow::closeWindow() { |
89 } | 89 } |
90 | 90 |
91 void SkOSWindow::setVsync(bool) { | 91 void SkOSWindow::setVsync(bool) { |
92 } | 92 } |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 JNIEnv* env, jobject thiz) | 347 JNIEnv* env, jobject thiz) |
348 { | 348 { |
349 gWindow->saveToPdf(); | 349 gWindow->saveToPdf(); |
350 } | 350 } |
351 | 351 |
352 JNIEXPORT void JNICALL Java_com_skia_SkiaSampleRenderer_postInval( | 352 JNIEXPORT void JNICALL Java_com_skia_SkiaSampleRenderer_postInval( |
353 JNIEnv* env, jobject thiz) | 353 JNIEnv* env, jobject thiz) |
354 { | 354 { |
355 gWindow->postInvalDelay(); | 355 gWindow->postInvalDelay(); |
356 } | 356 } |
OLD | NEW |