Descriptionadd 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:
Committed: https://skia.googlesource.com/skia/+/0b93e3149d2cb30860c51f9f3204ae811d9a97ca
Patch Set 1 #Patch Set 2 : now with actual added files #
Total comments: 1
Patch Set 3 : #Patch Set 4 : rebase w/ provider-based bitmapstate #Patch Set 5 : rebase #Patch Set 6 : #Patch Set 7 : rebase #Patch Set 8 : #
Total comments: 2
Patch Set 9 : fix copyright date #Patch Set 10 : rebase #
Messages
Total messages: 33 (15 generated)
|