summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-05-19 11:09:32 -0700
committerJohn Reck <jreck@google.com>2015-05-19 12:18:40 -0700
commit80181b99c7be562b24095ee495712f7197229c74 (patch)
treea1d80fd4475fa893ac39718203b79a83b7737057 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent95ba62f8d0e753bc7905b915d0b2b510d09c320c (diff)
Don't recreate the surface unnecessarily
Bug: 19896200 The flicker is caused because ViewRootImpl is requesting a change from OPAQUE to TRANSLUCENT due to the presence of a GLSurfaceView. However, WindowManager will use this as a signal to recreate the SurfaceControl. This is not actually correct, as the underlying format of the SurfaceControl was *already* TRANSLUCENT due to being hardware accelerated. Add a fast-path for this step where the format didn't actually change such that all that is necessary is for the OPAQUE flag to be flushed through to SurfaceFlinger. This doesn't address the larger, more complex issue of a surface flickering if the pixel format really did need to change, but this should address the common case. Change-Id: Ia5275705733123a3d7929bf5951829415753e2b2
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions