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

Unified Diff: gpu/command_buffer/service/context_group.h

Issue 3122033: Adds support for EXT_framebuffer_multisample... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
Index: gpu/command_buffer/service/context_group.h
===================================================================
--- gpu/command_buffer/service/context_group.h (revision 56887)
+++ gpu/command_buffer/service/context_group.h (working copy)
@@ -30,6 +30,14 @@
// resources.
class ContextGroup {
public:
+ struct ExtensionFlags {
+ ExtensionFlags()
+ : ext_framebuffer_multisample(false) {
+ }
+
+ bool ext_framebuffer_multisample;
+ };
+
ContextGroup();
~ContextGroup();
@@ -101,6 +109,10 @@
return extensions_;
}
+ const ExtensionFlags& extension_flags() const {
+ return extension_flags_;
+ }
+
private:
void AddExtensionString(const std::string& str);
@@ -135,6 +147,9 @@
// The extensions string returned by glGetString(GL_EXTENSIONS);
std::string extensions_;
+ // Flags for some extensions
+ ExtensionFlags extension_flags_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};

Powered by Google App Engine
This is Rietveld 408576698