diff options
author | Robert Phillips <robertphillips@google.com> | 2017-06-13 12:44:56 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-13 17:21:41 +0000 |
commit | 646e4293f06d9de6d44dbfa3c32cdc15a6f5906e (patch) | |
tree | 282acbcd4dc4204d06ed7d61e1d9884dbd6dd3f1 /tests | |
parent | 1791a064f1c1256cf29c69a5eef88de66ee6e794 (diff) |
Retract GrTexture*.h & GrRenderTarget*.h from other headers
This does push some additional work (& includes) into the .cpp files.
Change-Id: I27c847e371802270d13594dcc22aae44039990bb
Reviewed-on: https://skia-review.googlesource.com/19660
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ClearTest.cpp | 4 | ||||
-rw-r--r-- | tests/CopySurfaceTest.cpp | 1 | ||||
-rw-r--r-- | tests/FloatingPointTextureTest.cpp | 1 | ||||
-rw-r--r-- | tests/GrSurfaceTest.cpp | 1 | ||||
-rw-r--r-- | tests/ImageFilterCacheTest.cpp | 1 | ||||
-rw-r--r-- | tests/ImageTest.cpp | 1 | ||||
-rw-r--r-- | tests/PackedConfigsTextureTest.cpp | 1 | ||||
-rw-r--r-- | tests/ProxyConversionTest.cpp | 1 | ||||
-rw-r--r-- | tests/ProxyRefTest.cpp | 2 | ||||
-rw-r--r-- | tests/ProxyTest.cpp | 1 | ||||
-rw-r--r-- | tests/ResourceCacheTest.cpp | 4 | ||||
-rw-r--r-- | tests/SkpSkGrTest.cpp | 1 | ||||
-rw-r--r-- | tests/VkWrapTests.cpp | 2 |
13 files changed, 9 insertions, 12 deletions
diff --git a/tests/ClearTest.cpp b/tests/ClearTest.cpp index b6ae685831..bcd0899867 100644 --- a/tests/ClearTest.cpp +++ b/tests/ClearTest.cpp @@ -10,10 +10,6 @@ #if SK_SUPPORT_GPU #include "GrContext.h" #include "GrRenderTargetContext.h" -#include "GrGpu.h" -#include "GrRenderTarget.h" -#include "GrResourceProvider.h" -#include "GrTexture.h" static bool check_rect(GrRenderTargetContext* rtc, const SkIRect& rect, uint32_t expectedValue, uint32_t* actualValue, int* failX, int* failY) { diff --git a/tests/CopySurfaceTest.cpp b/tests/CopySurfaceTest.cpp index 6acb23967b..2e35256d78 100644 --- a/tests/CopySurfaceTest.cpp +++ b/tests/CopySurfaceTest.cpp @@ -14,7 +14,6 @@ #include "GrResourceProvider.h" #include "GrSurfaceContext.h" #include "GrSurfaceProxy.h" -#include "GrTexture.h" #include "SkUtils.h" diff --git a/tests/FloatingPointTextureTest.cpp b/tests/FloatingPointTextureTest.cpp index e092921cbb..ed68e91e4a 100644 --- a/tests/FloatingPointTextureTest.cpp +++ b/tests/FloatingPointTextureTest.cpp @@ -19,7 +19,6 @@ #include "GrContext.h" #include "GrContextPriv.h" #include "GrResourceProvider.h" -#include "GrTexture.h" #include "SkHalf.h" static const int DEV_W = 100, DEV_H = 100; diff --git a/tests/GrSurfaceTest.cpp b/tests/GrSurfaceTest.cpp index 85fc835bfe..037b55399f 100644 --- a/tests/GrSurfaceTest.cpp +++ b/tests/GrSurfaceTest.cpp @@ -12,7 +12,6 @@ #include "GrContext.h" #include "GrContextPriv.h" #include "GrGpu.h" -#include "GrRenderTarget.h" #include "GrResourceProvider.h" #include "GrTest.h" #include "GrTexture.h" diff --git a/tests/ImageFilterCacheTest.cpp b/tests/ImageFilterCacheTest.cpp index d0c6c5bcb5..23341723ef 100644 --- a/tests/ImageFilterCacheTest.cpp +++ b/tests/ImageFilterCacheTest.cpp @@ -182,6 +182,7 @@ DEF_TEST(ImageFilterCache_ImageBackedRaster, reporter) { #include "GrContextPriv.h" #include "GrResourceProvider.h" #include "GrTest.h" +#include "GrTexture.h" static sk_sp<GrTextureProxy> create_proxy(GrResourceProvider* resourceProvider) { SkBitmap srcBM = create_bm(); diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp index 84f9084a03..d69b89fb90 100644 --- a/tests/ImageTest.cpp +++ b/tests/ImageTest.cpp @@ -36,6 +36,7 @@ #include "GrGpu.h" #include "GrResourceCache.h" #include "GrTest.h" +#include "GrTexture.h" #endif using namespace sk_gpu_test; diff --git a/tests/PackedConfigsTextureTest.cpp b/tests/PackedConfigsTextureTest.cpp index e104be594d..916f27a04a 100644 --- a/tests/PackedConfigsTextureTest.cpp +++ b/tests/PackedConfigsTextureTest.cpp @@ -17,7 +17,6 @@ #include "GrContext.h" #include "GrContextPriv.h" #include "GrResourceProvider.h" -#include "GrTexture.h" static const int DEV_W = 10, DEV_H = 10; static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); diff --git a/tests/ProxyConversionTest.cpp b/tests/ProxyConversionTest.cpp index 167cc4b10d..98f0985e03 100644 --- a/tests/ProxyConversionTest.cpp +++ b/tests/ProxyConversionTest.cpp @@ -14,6 +14,7 @@ #include "GrRenderTargetProxy.h" #include "GrResourceProvider.h" #include "GrSurfaceProxy.h" +#include "GrTexture.h" #include "GrTextureProxy.h" static sk_sp<GrSurfaceProxy> make_wrapped_FBO0(GrResourceProvider* provider, diff --git a/tests/ProxyRefTest.cpp b/tests/ProxyRefTest.cpp index cd07e186c8..61e57209ce 100644 --- a/tests/ProxyRefTest.cpp +++ b/tests/ProxyRefTest.cpp @@ -11,10 +11,10 @@ #if SK_SUPPORT_GPU #include "GrContextPriv.h" -#include "GrRenderTargetPriv.h" #include "GrRenderTargetProxy.h" #include "GrResourceProvider.h" #include "GrSurfaceProxy.h" +#include "GrTexture.h" #include "GrTextureProxy.h" int32_t GrIORefProxy::getProxyRefCnt_TestOnly() const { diff --git a/tests/ProxyTest.cpp b/tests/ProxyTest.cpp index 114f5bb639..f9cefc5b89 100644 --- a/tests/ProxyTest.cpp +++ b/tests/ProxyTest.cpp @@ -16,6 +16,7 @@ #include "GrRenderTargetProxy.h" #include "GrResourceProvider.h" #include "GrSurfaceProxy.h" +#include "GrTexture.h" #include "GrTextureProxy.h" // Check that the surface proxy's member vars are set as expected diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp index 460d4ee096..2429fbdf09 100644 --- a/tests/ResourceCacheTest.cpp +++ b/tests/ResourceCacheTest.cpp @@ -16,11 +16,11 @@ #include "GrGpu.h" #include "GrGpuResourceCacheAccess.h" #include "GrGpuResourcePriv.h" -#include "GrRenderTarget.h" -#include "GrRenderTargetPriv.h" #include "GrResourceCache.h" #include "GrResourceProvider.h" #include "GrTest.h" +#include "GrTexture.h" + #include "SkCanvas.h" #include "SkGr.h" #include "SkMessageBus.h" diff --git a/tests/SkpSkGrTest.cpp b/tests/SkpSkGrTest.cpp index 0e425a006a..8280e143a7 100644 --- a/tests/SkpSkGrTest.cpp +++ b/tests/SkpSkGrTest.cpp @@ -7,7 +7,6 @@ #include "GrContext.h" #include "GrContextFactory.h" -#include "GrRenderTarget.h" #include "SkGpuDevice.h" #include "gl/GrGLDefines.h" diff --git a/tests/VkWrapTests.cpp b/tests/VkWrapTests.cpp index c2edae41ff..bbc3f8d847 100644 --- a/tests/VkWrapTests.cpp +++ b/tests/VkWrapTests.cpp @@ -13,6 +13,8 @@ #include "GrContextFactory.h" #include "GrTest.h" +#include "GrTexture.h" + #include "Test.h" #include "vk/GrVkCaps.h" #include "vk/GrVkGpu.h" |