| 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 |
| 11 #include "../../private/SkTArray.h" |
| 11 #include "GrGLFunctions.h" | 12 #include "GrGLFunctions.h" |
| 12 #include "SkString.h" | 13 #include "SkString.h" |
| 13 #include "SkTArray.h" | |
| 14 | 14 |
| 15 struct GrGLInterface; | 15 struct GrGLInterface; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * This helper queries the current GL context for its extensions, remembers them
, and can be | 18 * This helper queries the current GL context for its extensions, remembers them
, and can be |
| 19 * queried. It supports both glGetString- and glGetStringi-style extension strin
g APIs and will | 19 * queried. It supports both glGetString- and glGetStringi-style extension strin
g APIs and will |
| 20 * use the latter if it is available. It also will query for EGL extensions if a
eglQueryString | 20 * use the latter if it is available. It also will query for EGL extensions if a
eglQueryString |
| 21 * implementation is provided. | 21 * implementation is provided. |
| 22 */ | 22 */ |
| 23 class SK_API GrGLExtensions { | 23 class SK_API GrGLExtensions { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void reset() { fStrings->reset(); } | 65 void reset() { fStrings->reset(); } |
| 66 | 66 |
| 67 void print(const char* sep = "\n") const; | 67 void print(const char* sep = "\n") const; |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 bool fInitialized; | 70 bool fInitialized; |
| 71 SkAutoTDelete<SkTArray<SkString> > fStrings; | 71 SkAutoTDelete<SkTArray<SkString> > fStrings; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif | 74 #endif |
| OLD | NEW |