OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef SkANGLEGLContext_DEFINED | 8 #ifndef SkANGLEGLContext_DEFINED |
9 #define SkANGLEGLContext_DEFINED | 9 #define SkANGLEGLContext_DEFINED |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 return NULL; | 26 return NULL; |
27 } | 27 } |
28 SkANGLEGLContext* ctx = SkNEW(SkANGLEGLContext); | 28 SkANGLEGLContext* ctx = SkNEW(SkANGLEGLContext); |
29 if (!ctx->isValid()) { | 29 if (!ctx->isValid()) { |
30 SkDELETE(ctx); | 30 SkDELETE(ctx); |
31 return NULL; | 31 return NULL; |
32 } | 32 } |
33 return ctx; | 33 return ctx; |
34 } | 34 } |
35 | 35 |
| 36 static EGLDisplay GetD3DEGLDisplay(EGLNativeDisplayType nativeDisplay); |
| 37 |
36 private: | 38 private: |
37 SkANGLEGLContext(); | 39 SkANGLEGLContext(); |
38 void destroyGLContext(); | 40 void destroyGLContext(); |
39 | 41 |
40 EGLContext fContext; | 42 EGLContext fContext; |
41 EGLDisplay fDisplay; | 43 EGLDisplay fDisplay; |
42 EGLSurface fSurface; | 44 EGLSurface fSurface; |
43 }; | 45 }; |
44 | 46 |
45 #endif | 47 #endif |
46 | 48 |
47 #endif | 49 #endif |
OLD | NEW |