summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-08-03 14:01:57 -0700
committerDianne Hackborn <hackbod@google.com>2012-08-03 17:27:29 -0700
commitdde331cebd87982faded6818ad5f9927ff994c96 (patch)
treec2f9c4c62113fc93948d3988fc09cc3727c4b9ca /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5345c310af8363948cee6a91d11add3ec51e8a9c (diff)
We can now (kind-of) change screen density on the fly.
Preloaded drawables now have a density associated with them, so we can load the correct drawable if we are using a different density. Window manager now formally keeps track of the density for each screen, allowing it to be overridden like you can already do with size, and relies on this density to drive itself internally and the configurations it reports. There are a new set of Bitmap constructors where you provide a DisplayMetrics so they can be constructed with the correct density. (This will be for when you can have different windows in the same app running at different densities.) ActivityThread now watches for density changes, and pushes them to the DENSITY_DEVICE and Bitmap global density values for that process. A new am command allows you to change the density.
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions