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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Ganesh is not available. Fake it. | 36 // Ganesh is not available. Fake it. |
37 | 37 |
38 enum GrGLStandard { | 38 enum GrGLStandard { |
39 kNone_GrGLStandard, | 39 kNone_GrGLStandard, |
40 kGL_GrGLStandard, | 40 kGL_GrGLStandard, |
41 kGLES_GrGLStandard | 41 kGLES_GrGLStandard |
42 }; | 42 }; |
43 static const int kGrGLStandardCnt = 3; | 43 static const int kGrGLStandardCnt = 3; |
44 | 44 |
| 45 class GrContext { |
| 46 public: |
| 47 void dumpCacheStats(SkString*) const {} |
| 48 void dumpGpuStats(SkString*) const {} |
| 49 }; |
| 50 |
45 class GrContextFactory { | 51 class GrContextFactory { |
46 public: | 52 public: |
47 typedef int GLContextType; | 53 typedef int GLContextType; |
48 | 54 |
49 static const GLContextType kANGLE_GLContextType = 0, | 55 static const GLContextType kANGLE_GLContextType = 0, |
50 kDebug_GLContextType = 0, | 56 kDebug_GLContextType = 0, |
51 kMESA_GLContextType = 0, | 57 kMESA_GLContextType = 0, |
52 kNVPR_GLContextType = 0, | 58 kNVPR_GLContextType = 0, |
53 kNative_GLContextType = 0, | 59 kNative_GLContextType = 0, |
54 kNull_GLContextType = 0; | 60 kNull_GLContextType = 0; |
(...skipping 14 matching lines...) Expand all Loading... |
69 int, | 75 int, |
70 bool) { | 76 bool) { |
71 return NULL; | 77 return NULL; |
72 } | 78 } |
73 | 79 |
74 } // namespace DM | 80 } // namespace DM |
75 | 81 |
76 #endif//SK_SUPPORT_GPU | 82 #endif//SK_SUPPORT_GPU |
77 | 83 |
78 #endif//DMGpuSupport_DEFINED | 84 #endif//DMGpuSupport_DEFINED |
OLD | NEW |