| Index: src/gpu/GrTest.cpp
|
| diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
|
| index 3e1ef6c3d9d858a39bbb5f9f4652062738c1dab2..5a3c014413a1ac0ac4ae67af39806e123d1001de 100644
|
| --- a/src/gpu/GrTest.cpp
|
| +++ b/src/gpu/GrTest.cpp
|
| @@ -13,12 +13,11 @@
|
| #include "GrResourceCache.h"
|
| #include "SkString.h"
|
|
|
| -void GrTestTarget::init(GrContext* ctx, GrDrawTarget* target, const GrGLContext* gl) {
|
| +void GrTestTarget::init(GrContext* ctx, GrDrawTarget* target) {
|
| SkASSERT(!fContext);
|
|
|
| fContext.reset(SkRef(ctx));
|
| fDrawTarget.reset(SkRef(target));
|
| - fGLContext.reset(SkRef(gl));
|
| }
|
|
|
| void GrContext::getTestTarget(GrTestTarget* tar) {
|
| @@ -27,7 +26,7 @@ void GrContext::getTestTarget(GrTestTarget* tar) {
|
| // then disconnects. This would help prevent test writers from mixing using the returned
|
| // GrDrawTarget and regular drawing. We could also assert or fail in GrContext drawing methods
|
| // until ~GrTestTarget().
|
| - tar->init(this, fDrawingMgr.fDrawTarget, fGpu->glContextForTesting());
|
| + tar->init(this, fDrawingMgr.fDrawTarget);
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| @@ -236,6 +235,11 @@ private:
|
|
|
| void didRemoveGpuTraceMarker() override {}
|
|
|
| + GrBackendObject createBackendTexture(void* pixels, int w, int h,
|
| + GrPixelConfig config) const override { return 0; }
|
| + bool isBackendTexture(GrBackendObject id) const override { return false; }
|
| + void deleteBackendTexture(GrBackendObject id) const override {}
|
| +
|
| typedef GrGpu INHERITED;
|
| };
|
|
|
|
|