| OLD | NEW |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 /** | 47 /** |
| 48 * Queries whether an extension is present. This will fail if init() has not
been called. | 48 * Queries whether an extension is present. This will fail if init() has not
been called. |
| 49 */ | 49 */ |
| 50 bool has(const char[]) const; | 50 bool has(const char[]) const; |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * Removes an extension if present. Returns true if the extension was presen
t before the call. | 53 * Removes an extension if present. Returns true if the extension was presen
t before the call. |
| 54 */ | 54 */ |
| 55 bool remove(const char[]); | 55 bool remove(const char[]); |
| 56 | 56 |
| 57 /** |
| 58 * Adds an extension to list |
| 59 */ |
| 60 void add(const char[]); |
| 61 |
| 57 void reset() { fStrings->reset(); } | 62 void reset() { fStrings->reset(); } |
| 58 | 63 |
| 59 void print(const char* sep = "\n") const; | 64 void print(const char* sep = "\n") const; |
| 60 | 65 |
| 61 private: | 66 private: |
| 62 bool fInitialized; | 67 bool fInitialized; |
| 63 SkAutoTDelete<SkTArray<SkString> > fStrings; | 68 SkAutoTDelete<SkTArray<SkString> > fStrings; |
| 64 }; | 69 }; |
| 65 | 70 |
| 66 #endif | 71 #endif |
| OLD | NEW |