summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorMatt Sarett <msarett@google.com>2016-09-20 10:34:11 -0400
committerMatt Sarett <msarett@google.com>2016-09-20 11:09:11 -0400
commit62feb3a0b4690144a067080ab17beae160ea6320 (patch)
tree6e728cfe90e81ca225869728086365ba028ffcd9 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent682ad3b4d34c68152c32c1f5993a536a6512e9b3 (diff)
Use SkMakeBitmapShader, avoid bitmap copy
CreateBitmapShader now forces a copy. This updates the call sites to use SkMakeBitmapShader (in SkImagePriv.h) with kNever_SkCopyPixelsMode. This maintains the behavior where apps can modify the bitmap in the shader after creating the shader. This also ensures that the texture cache will work (since it's based off of SkPixelRefs). BUG:31594626 Change-Id: Ic75cb6cdc05c750b7946208e48a8127838d9c2f8
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions