Merge "Add support to toggle different shader behaviors" into sc-dev

This commit is contained in:
Nader Jawad
2021-05-18 16:27:47 +00:00
committed by Android (Google) Code Review
10 changed files with 36 additions and 15 deletions

View File

@@ -1195,6 +1195,7 @@ public class HardwareRenderer {
// so not checking for isolated process here.
initHintSession();
nSetIsHighEndGfx(ActivityManager.isHighEndGfx());
// Defensively clear out the context in case we were passed a context that can leak
// if we live longer than it, e.g. an activity context.
mContext = null;
@@ -1315,6 +1316,8 @@ public class HardwareRenderer {
private static native void nSetSdrWhitePoint(long nativeProxy, float whitePoint);
private static native void nSetIsHighEndGfx(boolean isHighEndGfx);
private static native int nSyncAndDrawFrame(long nativeProxy, long[] frameInfo, int size);
private static native void nDestroy(long nativeProxy, long rootRenderNode);