Index: tests/RectangleTextureTest.cpp |
diff --git a/tests/RectangleTextureTest.cpp b/tests/RectangleTextureTest.cpp |
index 2dbb8884257f833dba281e8f60f853b9b59ed8ea..a21b5a2f63364de4fd1c43e5ba4dd53d9e263809 100644 |
--- a/tests/RectangleTextureTest.cpp |
+++ b/tests/RectangleTextureTest.cpp |
@@ -8,6 +8,7 @@ |
#include "Test.h" |
#if SK_SUPPORT_GPU |
#include "GrContext.h" |
+#include "GrContextPriv.h" |
#include "GrDrawContext.h" |
#include "gl/GrGLGpu.h" |
#include "gl/GrGLUtil.h" |
@@ -89,9 +90,9 @@ static void test_copy_surface_dst(skiatest::Reporter* reporter, GrContext* conte |
static void test_clear(skiatest::Reporter* reporter, GrContext* context, |
GrTexture* rectangleTexture) { |
if (rectangleTexture->asRenderTarget()) { |
- sk_sp<GrDrawContext> dc( |
- context->makeDrawContext(sk_ref_sp(rectangleTexture->asRenderTarget()), |
- nullptr)); |
+ sk_sp<GrDrawContext> dc(context->contextPriv().makeWrappedDrawContext( |
+ sk_ref_sp(rectangleTexture->asRenderTarget()), |
+ nullptr)); |
if (!dc) { |
ERRORF(reporter, "Could not get GrDrawContext for rectangle texture."); |
return; |