Graphics: Make SurfaceTexture compile-time initializable
Ensure that all static initializer code can be executed in the compiler. Move native field caching into the native method registration function. Bug: 34956610 Test: m Test: Device boots (Pixel) Change-Id: Icf68c8fbadcaaa133a152942a3a7ba7aba84a1df
This commit is contained in:
@@ -403,11 +403,4 @@ public class SurfaceTexture {
|
||||
private native int nativeGetQueuedCount();
|
||||
private native void nativeRelease();
|
||||
private native boolean nativeIsReleased();
|
||||
|
||||
/*
|
||||
* We use a class initializer to allow the native code to cache some
|
||||
* field offsets.
|
||||
*/
|
||||
private static native void nativeClassInit();
|
||||
static { nativeClassInit(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user