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/gl/GrGLExtensions.h

Issue 146863003: Revert "Turn NVPR on by default (but off in tools)." (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 11 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 | « include/gpu/gl/GrGLConfig.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/GrGLExtensions.h
diff --git a/include/gpu/gl/GrGLExtensions.h b/include/gpu/gl/GrGLExtensions.h
index 76516cf11f9fff31a7b1044c46aeb65e9fc9d1bb..c9f59a2702dfed7a3b3a32f3d4641f2e928b835c 100644
--- a/include/gpu/gl/GrGLExtensions.h
+++ b/include/gpu/gl/GrGLExtensions.h
@@ -19,17 +19,12 @@ struct GrGLInterface;
* queried. It supports both glGetString- and glGetStringi-style extension string APIs and will
* use the latter if it is available.
*/
-class GrGLExtensions {
+class GrGLExtensions : public SkNoncopyable {
public:
GrGLExtensions() : fInitialized(false), fStrings(SkNEW(SkTArray<SkString>)) {}
- GrGLExtensions(const GrGLExtensions&);
-
- GrGLExtensions& operator=(const GrGLExtensions&);
-
void swap(GrGLExtensions* that) {
fStrings.swap(&that->fStrings);
- SkTSwap(fInitialized, that->fInitialized);
}
/**
@@ -47,12 +42,7 @@ public:
/**
* Queries whether an extension is present. This will fail if init() has not been called.
*/
- bool has(const char[]) const;
-
- /**
- * Removes an extension if present. Returns true if the extension was present before the call.
- */
- bool remove(const char[]);
+ bool has(const char*) const;
void reset() { fStrings->reset(); }
« no previous file with comments | « include/gpu/gl/GrGLConfig.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698