summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2016-03-30 13:24:26 -0700
committerRobert Carr <racarr@google.com>2016-03-30 13:32:46 -0700
commit603248d909e7383aff39c29cea0e50cdc75143e1 (patch)
treebdd7ad265a735d3243109650db68c99cb6f2228b /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parenta85c273ca50b7958aa5b6ada2b3585a5bd0c623a (diff)
Update surface size even when preserving geometry.
A recent change is causing some apps to request their SurfaceView size before requesting visibility. We won't apply this because of the View.GONE check in WMS. Once the app becomes visible, it thinks the surface size hasn't changed locally, so it appends PRESERVE_GEOMETRY to let the render thread and reposition child control the layout size. Now we will never set a requested width/height though and end up with 0. The line to not update requested size while preferring geometry was required when we were using SCALING_MODE_NO_SCALE_CROP, as making the size smaller would apply immediately (with the surface size acting as a reduced crop until we got a new buffer), but now that we are using SCALING_MODE_FREEZE there are no problems. Bug: 27914300 Change-Id: Ic0997ab3950f3eac360260e9939b6f2ee6667453
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions