commit | 0b93e3149d2cb30860c51f9f3204ae811d9a97ca | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Fri Sep 18 08:26:25 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Sep 18 08:26:26 2015 -0700 |
tree | 0b25b7b300a6683636c560f9be74c926761d68fc | |
parent | 3b0d532df72db806c255cad98538fcbb4d9678a8 [diff] |
add ImageShader, sharing code with its Bitmap cousin This is done by having abstracted the BitmapShaderContext to take a BitmapProvider, instead of just a bitmap. This allows us to share all of that code between SkBitmap and SkImage, since both are valid providers. It also means that we can simplify SkImage_Base to not need a virtual for onNewShader, since ALL images can uniformly be turned into a shader now. BUG=skia: Review URL: https://codereview.chromium.org/1342113002