| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 DMGpuSupport_DEFINED | 8 #ifndef DMGpuSupport_DEFINED |
| 9 #define DMGpuSupport_DEFINED | 9 #define DMGpuSupport_DEFINED |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 struct GrContextOptions {}; | 58 struct GrContextOptions {}; |
| 59 | 59 |
| 60 class GrContextFactory { | 60 class GrContextFactory { |
| 61 public: | 61 public: |
| 62 GrContextFactory() {}; | 62 GrContextFactory() {}; |
| 63 explicit GrContextFactory(const GrContextOptions&) {} | 63 explicit GrContextFactory(const GrContextOptions&) {} |
| 64 | 64 |
| 65 typedef int GLContextType; | 65 typedef int GLContextType; |
| 66 | 66 |
| 67 static const GLContextType kANGLE_GLContextType = 0, | 67 static const GLContextType kANGLE_GLContextType = 0, |
| 68 kDebug_GLContextType = 0, | 68 kCommandBuffer_GLContextType = 0, |
| 69 kMESA_GLContextType = 0, | 69 kDebug_GLContextType = 0, |
| 70 kNVPR_GLContextType = 0, | 70 kMESA_GLContextType = 0, |
| 71 kNative_GLContextType = 0, | 71 kNVPR_GLContextType = 0, |
| 72 kNull_GLContextType = 0; | 72 kNative_GLContextType = 0, |
| 73 kNull_GLContextType = 0; |
| 73 static const int kGLContextTypeCnt = 1; | 74 static const int kGLContextTypeCnt = 1; |
| 74 void destroyContexts() {} | 75 void destroyContexts() {} |
| 75 | 76 |
| 76 void abandonContexts() {} | 77 void abandonContexts() {} |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 namespace DM { | 80 namespace DM { |
| 80 | 81 |
| 81 static const bool kGPUDisabled = true; | 82 static const bool kGPUDisabled = true; |
| 82 | 83 |
| 83 static inline SkSurface* NewGpuSurface(GrContextFactory*, | 84 static inline SkSurface* NewGpuSurface(GrContextFactory*, |
| 84 GrContextFactory::GLContextType, | 85 GrContextFactory::GLContextType, |
| 85 GrGLStandard, | 86 GrGLStandard, |
| 86 SkImageInfo, | 87 SkImageInfo, |
| 87 int, | 88 int, |
| 88 bool) { | 89 bool) { |
| 89 return nullptr; | 90 return nullptr; |
| 90 } | 91 } |
| 91 | 92 |
| 92 } // namespace DM | 93 } // namespace DM |
| 93 | 94 |
| 94 #endif//SK_SUPPORT_GPU | 95 #endif//SK_SUPPORT_GPU |
| 95 | 96 |
| 96 #endif//DMGpuSupport_DEFINED | 97 #endif//DMGpuSupport_DEFINED |
| OLD | NEW |