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

Unified Diff: include/gpu/GrContext.h

Issue 702083003: Add mock context and use in ResourceCacheTest. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: restore removed null check Created 6 years, 1 month 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 | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 464f36d1239e04660d4cdd7d9271fcc2d7d227be..2adc84211a5c97cc7e7eb3f71ee48163a9ab5f90 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -63,6 +63,11 @@ public:
*/
static GrContext* Create(GrBackend, GrBackendContext, const Options* opts = NULL);
+ /**
+ * Only defined in test apps.
+ */
+ static GrContext* CreateMockContext();
+
virtual ~GrContext();
/**
@@ -978,6 +983,8 @@ private:
GrContext(const Options&); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext);
+ void initMockContext();
+ void initCommon();
void setupDrawBuffer();
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698