Chromium Code Reviews| Index: include/gpu/GrContextFactory.h |
| diff --git a/include/gpu/GrContextFactory.h b/include/gpu/GrContextFactory.h |
| index d78120ccb0e265682d891bd07bdde5648c64c589..7f35bcef774d4e48b9451c43324135644476a6fd 100644 |
| --- a/include/gpu/GrContextFactory.h |
| +++ b/include/gpu/GrContextFactory.h |
| @@ -15,7 +15,7 @@ |
| #if SK_MESA |
| #include "gl/SkMesaGLContext.h" |
| #endif |
| -#include "gl/SkNativeGLContext.h" |
| +#include "gl/SkGLContext.h" |
| #include "gl/SkNullGLContext.h" |
| #include "GrContext.h" |
| @@ -130,12 +130,12 @@ public: |
| return fContexts[i].fGrContext; |
| } |
| } |
| - SkAutoTUnref<SkGLContextHelper> glCtx; |
| + SkAutoTUnref<SkGLContext> glCtx; |
| SkAutoTUnref<GrContext> grCtx; |
| switch (type) { |
| case kNVPR_GLContextType: // fallthru |
| case kNative_GLContextType: |
| - glCtx.reset(SkNEW(SkNativeGLContext)); |
| + glCtx.reset(SkCreateGLContext()); |
| break; |
| #ifdef SK_ANGLE |
| case kANGLE_GLContextType: |
| @@ -192,7 +192,7 @@ public: |
| // Returns the GLContext of the given type. If it has not been created yet, |
| // NULL is returned instead. |
| - SkGLContextHelper* getGLContext(GLContextType type) { |
| + SkGLContext* getGLContext(GLContextType type) { |
| for (int i = 0; i < fContexts.count(); ++i) { |
| if (fContexts[i].fType == type) { |
| return fContexts[i].fGLContext; |
| @@ -207,7 +207,7 @@ public: |
| private: |
| struct GPUContext { |
| GLContextType fType; |
| - SkGLContextHelper* fGLContext; |
| + SkGLContext* fGLContext; |
|
bsalomon
2014/10/06 12:56:37
can you realign these?
|
| GrContext* fGrContext; |
| }; |
| SkTArray<GPUContext, true> fContexts; |