Revert "Revert "Move GrTextureProvider to src""
authorBrian Osman <brianosman@google.com>
Wed, 1 Mar 2017 21:54:04 +0000 (21:54 +0000)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 1 Mar 2017 21:54:16 +0000 (21:54 +0000)
This reverts commit 13d7f5d7c2872ed4298330758e173ae605578cb2.

Reason for revert: Fixed client code. Re-landing.

Original change's description:
> Revert "Move GrTextureProvider to src"
>
> This reverts commit 24429c68c56683252e3fc2a79d9b660eaf96ec0c.
>
> Reason for revert: Breaking a roll
>
> Original change's description:
> > Move GrTextureProvider to src
> >
> > With this hidden, we can make further simplification. Just want to test
> > this change against our external clients first, to make sure we're okay
> > to proceed.
> >
> > BUG=skia:
> >
> > Change-Id: I47f8c8f2912201c2890bc2f9a9d68aa92649a2d4
> > Reviewed-on: https://skia-review.googlesource.com/9072
> > Commit-Queue: Brian Osman <brianosman@google.com>
> > Reviewed-by: Brian Salomon <bsalomon@google.com>
> >
>
> TBR=bsalomon@google.com,brianosman@google.com,benjaminwagner@google.com,reviews@skia.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=skia:
>
> Change-Id: I43cc135731245c29e24bbecf06ee46c562955c03
> Reviewed-on: https://skia-review.googlesource.com/9123
> Reviewed-by: Brian Osman <brianosman@google.com>
> Commit-Queue: Brian Osman <brianosman@google.com>
>

TBR=bsalomon@google.com,benjaminwagner@google.com,reviews@skia.org,brianosman@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Change-Id: Ibcb2ea34654315327c46ea8e4de5bf14376d9bdf
Reviewed-on: https://skia-review.googlesource.com/9127
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>

24 files changed:
gn/gpu.gni
include/gpu/GrContext.h
src/core/SkImageCacherator.cpp
src/effects/SkBlurMaskFilter.cpp
src/gpu/GrBitmapTextureMaker.cpp
src/gpu/GrTextureAdjuster.cpp
src/gpu/GrTextureMaker.cpp
src/gpu/GrTextureProvider.h [moved from include/gpu/GrTextureProvider.h with 100% similarity]
src/gpu/SkGr.cpp
src/gpu/effects/GrTextureStripAtlas.cpp
src/image/SkImage_Gpu.cpp
tests/FloatingPointTextureTest.cpp
tests/GrSurfaceTest.cpp
tests/ImageFilterCacheTest.cpp
tests/ImageStorageTest.cpp
tests/IntTextureTest.cpp
tests/PackedConfigsTextureTest.cpp
tests/ProxyConversionTest.cpp
tests/ProxyRefTest.cpp
tests/ProxyTest.cpp
tests/ReadPixelsTest.cpp
tests/ReadWriteAlphaTest.cpp
tests/SRGBMipMapTest.cpp
tests/SRGBReadWritePixelsTest.cpp

index d60570d..a773b6c 100644 (file)
@@ -36,7 +36,6 @@ skia_gpu_sources = [
   "$_include/gpu/GrTexture.h",
   "$_include/gpu/GrTextureContext.h",
   "$_include/gpu/GrSamplerParams.h",
-  "$_include/gpu/GrTextureProvider.h",
   "$_include/gpu/GrTestUtils.h",
   "$_include/gpu/GrTypes.h",
   "$_include/gpu/GrTypesPriv.h",
@@ -212,6 +211,7 @@ skia_gpu_sources = [
   "$_src/gpu/GrTextureProducer.cpp",
   "$_src/gpu/GrTextureProducer.h",
   "$_src/gpu/GrTextureProvider.cpp",
+  "$_src/gpu/GrTextureProvider.h",
   "$_src/gpu/GrTextureProxy.cpp",
   "$_src/gpu/GrTextureRenderTargetProxy.cpp",
   "$_src/gpu/GrTextureToYUVPlanes.cpp",
index 2c24050..285525f 100644 (file)
@@ -13,7 +13,6 @@
 #include "GrColor.h"
 #include "GrPaint.h"
 #include "GrRenderTarget.h"
-#include "GrTextureProvider.h"
 #include "SkMatrix.h"
 #include "SkPathEffect.h"
 #include "SkTypes.h"
@@ -38,6 +37,7 @@ class GrResourceCache;
 class GrResourceProvider;
 class GrTextBlobCache;
 class GrTextContext;
+class GrTextureProvider;
 class GrSamplerParams;
 class GrVertexBuffer;
 class GrSwizzle;
index e971883..5ff7c0b 100644 (file)
@@ -22,6 +22,7 @@
 #include "GrImageTextureMaker.h"
 #include "GrResourceKey.h"
 #include "GrSamplerParams.h"
+#include "GrTextureProvider.h"
 #include "GrYUVProvider.h"
 #include "SkGr.h"
 #include "SkGrPriv.h"
index dcc3429..2ee942d 100644 (file)
@@ -23,6 +23,7 @@
 #include "GrFragmentProcessor.h"
 #include "GrShaderCaps.h"
 #include "GrStyle.h"
+#include "GrTextureProvider.h"
 #include "GrTextureProxy.h"
 #include "effects/GrSimpleTextureEffect.h"
 #include "glsl/GrGLSLFragmentProcessor.h"
index 184640f..5080c5d 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "GrContext.h"
 #include "GrGpuResourcePriv.h"
+#include "GrTextureProvider.h"
 #include "SkBitmap.h"
 #include "SkGrPriv.h"
 #include "SkPixelRef.h"
index 2fa5241..fca57b7 100644 (file)
@@ -11,6 +11,7 @@
 #include "GrGpu.h"
 #include "GrGpuResourcePriv.h"
 #include "GrTexture.h"
+#include "GrTextureProvider.h"
 #include "SkGrPriv.h"
 
 GrTextureAdjuster::GrTextureAdjuster(GrTexture* original, SkAlphaType alphaType,
index e68703a..ac89af7 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "GrContext.h"
 #include "GrGpu.h"
+#include "GrTextureProvider.h"
 
 GrTexture* GrTextureMaker::refTextureForParams(const GrSamplerParams& params,
                                                SkColorSpace* dstColorSpace,
index fe7e98c..5b8e061 100644 (file)
@@ -14,6 +14,7 @@
 #include "GrGpuResourcePriv.h"
 #include "GrRenderTargetContext.h"
 #include "GrTexturePriv.h"
+#include "GrTextureProvider.h"
 #include "GrTextureProxy.h"
 #include "GrTypes.h"
 #include "GrXferProcessor.h"
index f498304..1791b20 100644 (file)
@@ -10,6 +10,7 @@
 #include "GrContextPriv.h"
 #include "GrResourceProvider.h"
 #include "GrSurfaceContext.h"
+#include "GrTextureProvider.h"
 #include "SkGr.h"
 #include "SkPixelRef.h"
 #include "SkTSearch.h"
index 33d17bc..88d1889 100644 (file)
@@ -19,6 +19,7 @@
 #include "GrRenderTargetContext.h"
 #include "GrTextureAdjuster.h"
 #include "GrTexturePriv.h"
+#include "GrTextureProvider.h"
 #include "GrTextureProxy.h"
 #include "effects/GrYUVEffect.h"
 #include "SkCanvas.h"
index 84f2a59..b19a071 100644 (file)
@@ -18,6 +18,7 @@
 #if SK_SUPPORT_GPU
 #include "GrContext.h"
 #include "GrTexture.h"
+#include "GrTextureProvider.h"
 #include "SkHalf.h"
 
 static const int DEV_W = 100, DEV_H = 100;
index 5a69e53..5e52a0a 100644 (file)
@@ -13,6 +13,7 @@
 #include "GrGpu.h"
 #include "GrRenderTarget.h"
 #include "GrTexture.h"
+#include "GrTextureProvider.h"
 #include "GrSurfacePriv.h"
 #include "Test.h"
 
index d2d543c..a337208 100644 (file)
@@ -179,6 +179,7 @@ DEF_TEST(ImageFilterCache_ImageBackedRaster, reporter) {
 
 #if SK_SUPPORT_GPU
 #include "GrContext.h"
+#include "GrTextureProvider.h"
 
 static GrTexture* create_texture(GrContext* context) {
     SkBitmap srcBM = create_bm();
index dc7db51..d08ac6d 100644 (file)
@@ -12,6 +12,7 @@
 #include "GrFragmentProcessor.h"
 #include "GrRenderTargetContext.h"
 #include "GrTexture.h"
+#include "GrTextureProvider.h"
 #include "glsl/GrGLSLFragmentProcessor.h"
 #include "glsl/GrGLSLFragmentShaderBuilder.h"
 
index c1da323..4642e31 100644 (file)
@@ -11,6 +11,7 @@
 #include "GrContext.h"
 #include "GrRenderTargetContext.h"
 #include "GrTexture.h"
+#include "GrTextureProvider.h"
 #include "effects/GrSimpleTextureEffect.h"
 
 template <typename I>
index 429f8af..c948bf9 100644 (file)
@@ -16,6 +16,7 @@
 #if SK_SUPPORT_GPU
 #include "GrContext.h"
 #include "GrTexture.h"
+#include "GrTextureProvider.h"
 
 static const int DEV_W = 10, DEV_H = 10;
 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
index 16cea8a..4504a65 100644 (file)
@@ -11,6 +11,7 @@
 
 #if SK_SUPPORT_GPU
 #include "GrSurfaceProxy.h"
+#include "GrTextureProvider.h"
 #include "GrTextureProxy.h"
 #include "GrRenderTargetProxy.h"
 
index 3a72acb..83411d3 100644 (file)
@@ -11,6 +11,7 @@
 
 #if SK_SUPPORT_GPU
 #include "GrSurfaceProxy.h"
+#include "GrTextureProvider.h"
 #include "GrTextureProxy.h"
 #include "GrRenderTargetPriv.h"
 #include "GrRenderTargetProxy.h"
index ef22dfa..ac32752 100644 (file)
@@ -11,6 +11,7 @@
 
 #if SK_SUPPORT_GPU
 #include "GrSurfaceProxy.h"
+#include "GrTextureProvider.h"
 #include "GrTextureProxy.h"
 #include "GrRenderTargetPriv.h"
 #include "GrRenderTargetProxy.h"
index aa98e91..2142154 100644 (file)
@@ -16,6 +16,7 @@
 
 #if SK_SUPPORT_GPU
 #include "GrContext.h"
+#include "GrTextureProvider.h"
 #include "SkGr.h"
 #endif
 
index 27c2260..613f45f 100644 (file)
@@ -14,6 +14,7 @@
 #include "GrContextPriv.h"
 #include "GrSurfaceContext.h"
 #include "GrSurfaceProxy.h"
+#include "GrTextureProvider.h"
 #include "SkCanvas.h"
 #include "SkSurface.h"
 
index a25c868..dd87f19 100644 (file)
@@ -10,6 +10,7 @@
 #include "GrCaps.h"
 #include "GrContext.h"
 #include "GrRenderTargetContext.h"
+#include "GrTextureProvider.h"
 #include "gl/GrGLGpu.h"
 #include "SkCanvas.h"
 #include "SkSurface.h"
index 4295167..847dafc 100644 (file)
@@ -9,6 +9,7 @@
 #if SK_SUPPORT_GPU
 #include "GrCaps.h"
 #include "GrContext.h"
+#include "GrTextureProvider.h"
 #include "SkCanvas.h"
 #include "SkSurface.h"