diff options
author | 2016-05-20 11:14:33 -0700 | |
---|---|---|
committer | 2016-05-20 11:14:33 -0700 | |
commit | 87f15c8ff11ad2bfb0c6711d7837020a50fe7fb8 (patch) | |
tree | fc3899058560ca294ba062de98c3246db3c225d2 /tools/gpu/GrTest.h | |
parent | f2c96a2a6fa22c674083db701d15702636f9d5fc (diff) |
Retract GrRenderTarget from GrTestTarget
Split out of: https://codereview.chromium.org/1988923002/ (Declassify GrClipMaskManager and Remove GrRenderTarget and GrDrawTarget from GrPipelineBuilder)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=2004433002
Review-Url: https://codereview.chromium.org/2004433002
Diffstat (limited to 'tools/gpu/GrTest.h')
-rw-r--r-- | tools/gpu/GrTest.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/gpu/GrTest.h b/tools/gpu/GrTest.h index 53aaac34e4..217efe6b7d 100644 --- a/tools/gpu/GrTest.h +++ b/tools/gpu/GrTest.h @@ -9,8 +9,7 @@ #define GrTest_DEFINED #include "GrContext.h" -#include "GrDrawTarget.h" -#include "gl/GrGLContext.h" +#include "GrDrawContext.h" namespace GrTest { /** @@ -28,15 +27,14 @@ class GrTestTarget { public: GrTestTarget() {}; - void init(GrContext*, GrDrawTarget*, GrRenderTarget*); + void init(GrContext*, sk_sp<GrDrawContext>); - GrDrawTarget* target() { return fDrawTarget.get(); } + GrDrawTarget* target() { return fDrawContext->getDrawTarget(); } GrResourceProvider* resourceProvider() { return fContext->resourceProvider(); } private: SkAutoTUnref<GrContext> fContext; - SkAutoTUnref<GrDrawTarget> fDrawTarget; - SkAutoTUnref<GrRenderTarget> fRenderTarget; + sk_sp<GrDrawContext> fDrawContext; }; #endif |