This replaces the texture creation/caching functions on GrContext with a GrTexturePro...
authorbsalomon <bsalomon@google.com>
Thu, 30 Apr 2015 21:18:54 +0000 (14:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Apr 2015 21:18:54 +0000 (14:18 -0700)
commitd309e7aa0efa2d5dd7e7b1af97026fcd3a047e98
tree28290abc67fd60111bba896722a14dcb0611df84
parent3ffa126066542590dc7430514a1174e49191b875
This replaces the texture creation/caching functions on GrContext with a GrTextureProvider interface. The goal is to pass this narrowly focused object in places that currently take a GrContext but don't need and shouldn't use its other methods. It also has an extended private interface for interacting with non-texture resource types.

Review URL: https://codereview.chromium.org/1107973004
44 files changed:
gm/texdata.cpp
gyp/gpu.gypi
include/gpu/GrContext.h
include/gpu/GrTextureProvider.h [new file with mode: 0644]
src/core/SkImageFilter.cpp
src/effects/SkAlphaThresholdFilter.cpp
src/effects/SkBlurMaskFilter.cpp
src/effects/SkColorCubeFilter.cpp
src/effects/SkDisplacementMapEffect.cpp
src/effects/SkGpuBlurUtils.cpp
src/effects/SkLightingImageFilter.cpp
src/effects/SkMorphologyImageFilter.cpp
src/effects/SkXfermodeImageFilter.cpp
src/gpu/GrAADistanceFieldPathRenderer.cpp
src/gpu/GrBatchFontCache.cpp
src/gpu/GrClipMaskCache.h
src/gpu/GrClipMaskManager.cpp
src/gpu/GrContext.cpp
src/gpu/GrDrawTarget.cpp
src/gpu/GrLayerCache.cpp
src/gpu/GrResourceProvider.h [new file with mode: 0644]
src/gpu/GrSWMaskHelper.cpp
src/gpu/GrStencilAndCoverPathRenderer.cpp
src/gpu/GrStencilAndCoverTextContext.cpp
src/gpu/GrTextureProvider.cpp [new file with mode: 0644]
src/gpu/SkGpuDevice.cpp
src/gpu/SkGr.cpp
src/gpu/SkGrPixelRef.cpp
src/gpu/effects/GrConfigConversionEffect.cpp
src/gpu/effects/GrTextureStripAtlas.cpp
src/image/SkSurface_Gpu.cpp
src/views/SkWindow.cpp
tests/ClipCacheTest.cpp
tests/FloatingPointTextureTest.cpp
tests/GLProgramsTest.cpp
tests/GrSurfaceTest.cpp
tests/ReadPixelsTest.cpp
tests/ReadWriteAlphaTest.cpp
tests/RecordReplaceDrawTest.cpp
tests/ResourceCacheTest.cpp
tests/SurfaceTest.cpp
tests/TessellatingPathRendererTests.cpp
tests/WritePixelsTest.cpp
tools/PictureRenderer.cpp