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

Unified Diff: src/gpu/GrContextFactory.h

Issue 1455093003: Remove GrContextFactory::getGLContext (Closed) Base URL: https://skia.googlesource.com/skia.git@commandbuffer-as-api-01-gpu-test-context-support
Patch Set: rebase Created 5 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 | « bench/nanobench.cpp ('k') | tests/EGLImageTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContextFactory.h
diff --git a/src/gpu/GrContextFactory.h b/src/gpu/GrContextFactory.h
index 6d174323180b2a3eb651445549b2ec54c0dfeb32..c837e74a25b29c36ee2031ed97686d089b87d893 100644
--- a/src/gpu/GrContextFactory.h
+++ b/src/gpu/GrContextFactory.h
@@ -137,19 +137,6 @@ public:
}
return nullptr;
}
-
- // Returns the GLContext of the given type. If it has not been created yet,
- // nullptr is returned instead.
- SkGLContext* getGLContext(GLContextType type) {
- for (int i = 0; i < fContexts.count(); ++i) {
- if (fContexts[i]->fType == type) {
- return fContexts[i]->fGLContext;
- }
- }
-
- return nullptr;
- }
-
const GrContextOptions& getGlobalOptions() const { return fGlobalOptions; }
private:
« no previous file with comments | « bench/nanobench.cpp ('k') | tests/EGLImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698