| Index: src/gpu/GrTest.cpp
|
| diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
|
| index 37a0feb6fab416386433cb998b29607d50fc7d43..449a76300af7d103e854272b269507c676d5afc3 100644
|
| --- a/src/gpu/GrTest.cpp
|
| +++ b/src/gpu/GrTest.cpp
|
| @@ -8,17 +8,18 @@
|
|
|
| #include "GrTest.h"
|
| #include "GrContextOptions.h"
|
| -
|
| #include "GrGpuResourceCacheAccess.h"
|
| #include "GrInOrderDrawBuffer.h"
|
| #include "GrResourceCache.h"
|
| +#include "gl/GrGLInterface.h"
|
| #include "SkString.h"
|
|
|
| -void GrTestTarget::init(GrContext* ctx, GrDrawTarget* target) {
|
| +void GrTestTarget::init(GrContext* ctx, GrDrawTarget* target, const GrGLInterface* gl) {
|
| SkASSERT(!fContext);
|
|
|
| fContext.reset(SkRef(ctx));
|
| fDrawTarget.reset(SkRef(target));
|
| + fGLInterface.reset(SkSafeRef(gl));
|
| }
|
|
|
| void GrContext::getTestTarget(GrTestTarget* tar) {
|
| @@ -27,7 +28,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);
|
| + tar->init(this, fDrawingMgr.fDrawTarget, fGpu->glInterfaceForTesting());
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|