Plumb dst color space in many places, rather than "mode"
authorBrian Osman <brianosman@google.com>
Fri, 9 Dec 2016 19:51:59 +0000 (14:51 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 9 Dec 2016 20:31:23 +0000 (20:31 +0000)
commit61624f0c716b576706659750d87b6956f4c15722
tree00122b478cf21327b70364fefc5f3f9a6169377e
parent073285c0595d46205d1482cc19af2d7d891bfeae
Plumb dst color space in many places, rather than "mode"

This is less to type in most cases, and gives us more information
(for things like picture-backed images, where we need to know all
about the destination surface).

Additionally, strip out the plumbing entirely for bitmap sources,
where we don't need to know anything.

BUG=skia:

Change-Id: I4deff6c7c345fcf62eb08b2aff0560adae4313da
Reviewed-on: https://skia-review.googlesource.com/5748
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
49 files changed:
bench/SkBlend_optsBench.cpp
experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp
gm/image_pict.cpp
gm/texturedomaineffect.cpp
gm/yuvtorgbeffect.cpp
include/core/SkShader.h
include/gpu/GrRenderTargetContext.h
include/gpu/SkGr.h
src/core/SkBitmapController.cpp
src/core/SkBitmapDevice.cpp
src/core/SkBitmapProvider.cpp
src/core/SkBitmapProvider.h
src/core/SkDevice.cpp
src/core/SkImageCacherator.cpp
src/core/SkImageCacherator.h
src/core/SkLocalMatrixShader.cpp
src/core/SkPictureShader.cpp
src/core/SkSpecialImage.cpp
src/core/SkSpecialImage.h
src/effects/SkImageSource.cpp
src/effects/SkPerlinNoiseShader.cpp
src/effects/SkTableColorFilter.cpp
src/effects/gradients/SkGradientShader.cpp
src/gpu/GrBitmapTextureMaker.cpp
src/gpu/GrBitmapTextureMaker.h
src/gpu/GrImageTextureMaker.cpp
src/gpu/GrImageTextureMaker.h
src/gpu/GrTestUtils.cpp
src/gpu/GrTextureAdjuster.cpp
src/gpu/GrTextureAdjuster.h
src/gpu/GrTextureMaker.cpp
src/gpu/GrTextureMaker.h
src/gpu/GrTextureProducer.h
src/gpu/SkGpuDevice.cpp
src/gpu/SkGpuDevice_drawTexture.cpp
src/gpu/SkGr.cpp
src/gpu/SkGrPriv.h
src/image/SkImage.cpp
src/image/SkImageShader.cpp
src/image/SkImage_Base.h
src/image/SkImage_Generator.cpp
src/image/SkImage_Gpu.cpp
src/image/SkImage_Gpu.h
src/image/SkImage_Raster.cpp
src/pdf/SkPDFBitmap.cpp
src/pdf/SkPDFDevice.cpp
tests/ImageFilterCacheTest.cpp
tests/SkBlend_optsTest.cpp
tests/SpecialImageTest.cpp