Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: tools/gpu/GrTest.h

Issue 2004433002: Retract GrRenderTarget from GrTestTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix bench build Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/TessellatingPathRendererTests.cpp ('k') | tools/gpu/GrTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gpu/GrTest.h
diff --git a/tools/gpu/GrTest.h b/tools/gpu/GrTest.h
index 53aaac34e48afc5920d7f16d3a72e9cce182eb78..217efe6b7d818fcf0b52f63fe5f25b0fe0a89683 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
« no previous file with comments | « tests/TessellatingPathRendererTests.cpp ('k') | tools/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698