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

Unified Diff: src/gpu/GrTest.h

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? Created 4 years, 9 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 | « src/gpu/GrContextFactory.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTest.h
diff --git a/src/gpu/GrTest.h b/src/gpu/GrTest.h
deleted file mode 100644
index 53aaac34e48afc5920d7f16d3a72e9cce182eb78..0000000000000000000000000000000000000000
--- a/src/gpu/GrTest.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrTest_DEFINED
-#define GrTest_DEFINED
-
-#include "GrContext.h"
-#include "GrDrawTarget.h"
-#include "gl/GrGLContext.h"
-
-namespace GrTest {
- /**
- * Forces the GrContext to use a small atlas which only has room for one plot and will thus
- * constantly be evicting entries
- */
- void SetupAlwaysEvictAtlas(GrContext*);
-};
-
-/** TODO Please do not use this if you can avoid it. We are in the process of deleting it.
- Allows a test to temporarily draw to a GrDrawTarget owned by a GrContext. Tests that use this
- should be careful not to mix using the GrDrawTarget directly and drawing via SkCanvas or
- GrContext. In the future this object may provide some guards to prevent this. */
-class GrTestTarget {
-public:
- GrTestTarget() {};
-
- void init(GrContext*, GrDrawTarget*, GrRenderTarget*);
-
- GrDrawTarget* target() { return fDrawTarget.get(); }
- GrResourceProvider* resourceProvider() { return fContext->resourceProvider(); }
-
-private:
- SkAutoTUnref<GrContext> fContext;
- SkAutoTUnref<GrDrawTarget> fDrawTarget;
- SkAutoTUnref<GrRenderTarget> fRenderTarget;
-};
-
-#endif
« no previous file with comments | « src/gpu/GrContextFactory.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698