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

Unified Diff: src/gpu/GrContextFactory.h

Issue 1158433006: Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: remove case statement accidentally checked in Created 5 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 | « src/gpu/GrContext.cpp ('k') | src/gpu/GrContextFactory.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 353e3d9c96ada7ec5dff59d7487008b63219187c..7fd4b77ce0bb2f7e4c6f31c8a4bce5ace05cc540 100644
--- a/src/gpu/GrContextFactory.h
+++ b/src/gpu/GrContextFactory.h
@@ -9,6 +9,7 @@
#define GrContextFactory_DEFINED
#include "GrContext.h"
+#include "GrContextOptions.h"
#include "gl/SkGLContext.h"
#include "SkTArray.h"
@@ -80,7 +81,7 @@ public:
}
}
- explicit GrContextFactory(const GrContext::Options& opts) : fGlobalOptions(opts) { }
+ explicit GrContextFactory(const GrContextOptions& opts) : fGlobalOptions(opts) { }
GrContextFactory() { }
~GrContextFactory() { this->destroyContexts(); }
@@ -126,7 +127,7 @@ public:
return NULL;
}
- const GrContext::Options& getGlobalOptions() const { return fGlobalOptions; }
+ const GrContextOptions& getGlobalOptions() const { return fGlobalOptions; }
private:
struct GPUContext {
@@ -135,7 +136,7 @@ private:
GrContext* fGrContext;
};
SkTArray<GPUContext, true> fContexts;
- const GrContext::Options fGlobalOptions;
+ const GrContextOptions fGlobalOptions;
};
#endif
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrContextFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698