| 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 29 matching lines...) Expand all Loading... |
| 40 class GrContextFactory { | 40 class GrContextFactory { |
| 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 }; | 51 }; |
| 51 | 52 |
| 52 namespace DM { | 53 namespace DM { |
| 53 | 54 |
| 54 static const bool kGPUDisabled = true; | 55 static const bool kGPUDisabled = true; |
| 55 | 56 |
| 56 static inline SkSurface* NewGpuSurface(GrContextFactory*, | 57 static inline SkSurface* NewGpuSurface(GrContextFactory*, |
| 57 GrContextFactory::GLContextType, | 58 GrContextFactory::GLContextType, |
| 58 GrGLStandard, | 59 GrGLStandard, |
| 59 SkImageInfo, | 60 SkImageInfo, |
| 60 int) { | 61 int) { |
| 61 return NULL; | 62 return NULL; |
| 62 } | 63 } |
| 63 | 64 |
| 64 } // namespace DM | 65 } // namespace DM |
| 65 | 66 |
| 66 #endif//SK_SUPPORT_GPU | 67 #endif//SK_SUPPORT_GPU |
| 67 | 68 |
| 68 #endif//DMGpuSupport_DEFINED | 69 #endif//DMGpuSupport_DEFINED |
| OLD | NEW |