OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 package com.skia; | 8 package com.skia; |
9 | 9 |
10 import javax.microedition.khronos.egl.EGL10; | 10 import javax.microedition.khronos.egl.EGL10; |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 EGLConfig config, int attribute, int defaultValue) { | 297 EGLConfig config, int attribute, int defaultValue) { |
298 int[] value = new int[1]; | 298 int[] value = new int[1]; |
299 if (egl.eglGetConfigAttrib(display, config, attribute, value)) { | 299 if (egl.eglGetConfigAttrib(display, config, attribute, value)) { |
300 return value[0]; | 300 return value[0]; |
301 } | 301 } |
302 return defaultValue; | 302 return defaultValue; |
303 } | 303 } |
304 | 304 |
305 } | 305 } |
306 } | 306 } |
OLD | NEW |