Index: tests/SpecialImageTest.cpp |
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp |
index bde140d2ce105a5ff3e528a35c2bd8e3540318d3..3dd6da92f417ec4d93c18fde8decc773c1c90024 100644 |
--- a/tests/SpecialImageTest.cpp |
+++ b/tests/SpecialImageTest.cpp |
@@ -11,25 +11,12 @@ |
#include "SkSpecialImage.h" |
#include "SkSpecialSurface.h" |
#include "Test.h" |
+#include "TestingSpecialImageAccess.h" |
#if SK_SUPPORT_GPU |
#include "GrContext.h" |
#endif |
-class TestingSpecialImageAccess { |
-public: |
- static const SkIRect& Subset(const SkSpecialImage* img) { |
- return img->subset(); |
- } |
- |
- static bool PeekPixels(const SkSpecialImage* img, SkPixmap* pixmap) { |
- return img->peekPixels(pixmap); |
- } |
- |
- static GrTexture* PeekTexture(const SkSpecialImage* img) { |
- return img->peekTexture(); |
- } |
-}; |
// This test creates backing resources exactly sized to [kFullSize x kFullSize]. |
// It then wraps them in an SkSpecialImage with only the center (red) region being active. |