commit | 62feb3a0b4690144a067080ab17beae160ea6320 | [log] [tgz] |
---|---|---|
author | Matt Sarett <msarett@google.com> | Tue Sep 20 10:34:11 2016 -0400 |
committer | Matt Sarett <msarett@google.com> | Tue Sep 20 11:09:11 2016 -0400 |
tree | 6e728cfe90e81ca225869728086365ba028ffcd9 | |
parent | 682ad3b4d34c68152c32c1f5993a536a6512e9b3 [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