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

Side by Side Diff: include/gpu/gl/GrGLExtensions.h

Issue 12316141: Sort GL extension strings and search to find. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkTypes.h ('k') | src/core/SkTSort.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGLExtensions_DEFINED 8 #ifndef GrGLExtensions_DEFINED
9 #define GrGLExtensions_DEFINED 9 #define GrGLExtensions_DEFINED
10 10
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 /** 26 /**
27 * We sometimes need to use this class without having yet created a GrGLInte rface. This version 27 * We sometimes need to use this class without having yet created a GrGLInte rface. This version
28 * of init expects that getString is always non-NULL while getIntegerv and g etStringi are non- 28 * of init expects that getString is always non-NULL while getIntegerv and g etStringi are non-
29 * NULL if on desktop GL with version 3.0 or higher. Otherwise it will fail. 29 * NULL if on desktop GL with version 3.0 or higher. Otherwise it will fail.
30 */ 30 */
31 bool init(GrGLBinding binding, 31 bool init(GrGLBinding binding,
32 GrGLGetStringProc getString, 32 GrGLGetStringProc getString,
33 GrGLGetStringiProc getStringi, 33 GrGLGetStringiProc getStringi,
34 GrGLGetIntegervProc getIntegerv); 34 GrGLGetIntegervProc getIntegerv);
35 35
36 /** 36 /**
37 * Queries whether an extension is present. This will fail if init() has not been called. 37 * Queries whether an extension is present. This will fail if init() has not been called.
38 */ 38 */
39 bool has(const char*) const; 39 bool has(const char*) const;
40 40
41 void reset() { fStrings.reset(); } 41 void reset() { fStrings.reset(); }
42 42
43 private: 43 private:
44 SkTArray<SkString> fStrings; 44 SkTArray<SkString> fStrings;
45 }; 45 };
46 46
47 #endif 47 #endif
OLDNEW
« no previous file with comments | « include/core/SkTypes.h ('k') | src/core/SkTSort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698