| OLD | NEW |
| 1 #ifndef DMGpuSupport_DEFINED | 1 #ifndef DMGpuSupport_DEFINED |
| 2 #define DMGpuSupport_DEFINED | 2 #define DMGpuSupport_DEFINED |
| 3 | 3 |
| 4 // Provides Ganesh to DM, | 4 // Provides Ganesh to DM, |
| 5 // or if it's not available, fakes it enough so most code doesn't have to know t
hat. | 5 // or if it's not available, fakes it enough so most code doesn't have to know t
hat. |
| 6 | 6 |
| 7 #include "SkSurface.h" | 7 #include "SkSurface.h" |
| 8 | 8 |
| 9 #if SK_SUPPORT_GPU | 9 #if SK_SUPPORT_GPU |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 public: | 41 public: |
| 42 typedef int GLContextType; | 42 typedef int GLContextType; |
| 43 | 43 |
| 44 static const GLContextType kANGLE_GLContextType = 0, | 44 static const GLContextType kANGLE_GLContextType = 0, |
| 45 kDebug_GLContextType = 0, | 45 kDebug_GLContextType = 0, |
| 46 kMESA_GLContextType = 0, | 46 kMESA_GLContextType = 0, |
| 47 kNVPR_GLContextType = 0, | 47 kNVPR_GLContextType = 0, |
| 48 kNative_GLContextType = 0, | 48 kNative_GLContextType = 0, |
| 49 kNull_GLContextType = 0; | 49 kNull_GLContextType = 0; |
| 50 void destroyContexts() {} | 50 void destroyContexts() {} |
| 51 |
| 52 void abandonContexts() {} |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 namespace DM { | 55 namespace DM { |
| 54 | 56 |
| 55 static const bool kGPUDisabled = true; | 57 static const bool kGPUDisabled = true; |
| 56 | 58 |
| 57 static inline SkSurface* NewGpuSurface(GrContextFactory*, | 59 static inline SkSurface* NewGpuSurface(GrContextFactory*, |
| 58 GrContextFactory::GLContextType, | 60 GrContextFactory::GLContextType, |
| 59 GrGLStandard, | 61 GrGLStandard, |
| 60 SkImageInfo, | 62 SkImageInfo, |
| 61 int) { | 63 int) { |
| 62 return NULL; | 64 return NULL; |
| 63 } | 65 } |
| 64 | 66 |
| 65 } // namespace DM | 67 } // namespace DM |
| 66 | 68 |
| 67 #endif//SK_SUPPORT_GPU | 69 #endif//SK_SUPPORT_GPU |
| 68 | 70 |
| 69 #endif//DMGpuSupport_DEFINED | 71 #endif//DMGpuSupport_DEFINED |
| OLD | NEW |