Loading core/java/android/view/HardwareRenderer.java +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ import javax.microedition.khronos.opengles.GL; * @hide */ public abstract class HardwareRenderer { private static final String LOG_TAG = "HardwareRenderer"; static final String LOG_TAG = "HardwareRenderer"; /** * A process can set this flag to false to prevent the use of hardware Loading core/java/android/view/ViewRoot.java +8 −1 Original line number Diff line number Diff line Loading @@ -486,6 +486,13 @@ public final class ViewRoot extends Handler implements ViewParent, mAttachInfo.mHardwareAccelerated = false; mAttachInfo.mHardwareAccelerationRequested = false; // Don't enable hardware acceleration when we're not on the main thread if (Looper.getMainLooper() != Looper.myLooper()) { Log.w(HardwareRenderer.LOG_TAG, "Attempting to initialize hardware acceleration " + "outside of the main thread, aborting"); return; } // Try to enable hardware acceleration if requested if (attrs != null && (attrs.flags & WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0) { Loading Loading
core/java/android/view/HardwareRenderer.java +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ import javax.microedition.khronos.opengles.GL; * @hide */ public abstract class HardwareRenderer { private static final String LOG_TAG = "HardwareRenderer"; static final String LOG_TAG = "HardwareRenderer"; /** * A process can set this flag to false to prevent the use of hardware Loading
core/java/android/view/ViewRoot.java +8 −1 Original line number Diff line number Diff line Loading @@ -486,6 +486,13 @@ public final class ViewRoot extends Handler implements ViewParent, mAttachInfo.mHardwareAccelerated = false; mAttachInfo.mHardwareAccelerationRequested = false; // Don't enable hardware acceleration when we're not on the main thread if (Looper.getMainLooper() != Looper.myLooper()) { Log.w(HardwareRenderer.LOG_TAG, "Attempting to initialize hardware acceleration " + "outside of the main thread, aborting"); return; } // Try to enable hardware acceleration if requested if (attrs != null && (attrs.flags & WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0) { Loading