Index: tests/RecordReplaceDrawTest.cpp |
diff --git a/tests/RecordReplaceDrawTest.cpp b/tests/RecordReplaceDrawTest.cpp |
index 41da9a1b5cefe782ab23ff93f49645a99a8ee1a2..473683bc56ac27f65d841c54e5cf640cd40c64cd 100644 |
--- a/tests/RecordReplaceDrawTest.cpp |
+++ b/tests/RecordReplaceDrawTest.cpp |
@@ -5,10 +5,10 @@ |
* found in the LICENSE file. |
*/ |
-#if SK_SUPPORT_GPU |
- |
#include "Test.h" |
+#if SK_SUPPORT_GPU |
+ |
#include "GrContextFactory.h" |
#include "GrLayerCache.h" |
#include "GrRecordReplaceDraw.h" |
@@ -124,7 +124,8 @@ void test_replacements(skiatest::Reporter* r, GrContext* context, bool useBBH) { |
desc.fHeight = kHeight; |
desc.fSampleCnt = 0; |
- SkAutoTUnref<GrTexture> texture(context->createTexture(desc, false, NULL, 0)); |
+ SkAutoTUnref<GrTexture> texture(context->textureProvider()->createTexture(desc, |
+ false, NULL, 0)); |
layer->setTexture(texture, SkIRect::MakeWH(kWidth, kHeight)); |
SkAutoTUnref<SkBBoxHierarchy> bbh; |