summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2011-10-06 08:34:13 -0700
committerChet Haase <chet@google.com>2011-10-06 11:59:10 -0700
commit40e0383dce630ed9b2b1aa0e497709b89dfab6ef (patch)
treee9c2db24dfa7bcde25788434450f5253ca7ecd71 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent11a670531febb0952224a0b819eb5350022fbe69 (diff)
Fix issue #5384631: hw windows not resizing correctly
When the SystemUi becomes visible, the activity window resizes. The hardware renderer was not begin resized to suit, so it was drawing to a surface larger than that of the activity window, and some of the rendering (like the action bar) appeared off the screen. The fix is to keep track of the surface size in HardwareRenderer and to recreate the surface when the size changes. This change also removes the BUFFER_CHANGE flag from WindowManager.LayoutParams. The only reason the flag existed was to trigger a hardware surface recreation, but checking the old/new size is a more direct way of handling this. Change-Id: I9d6bf6385794886d1d93c60609c170864cdcdfab
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions