Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: dm/DMGpuSupport.h

Issue 894013002: patch from issue 886233004 at patchset 40001 (http://crrev.com/886233004#ps40001) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698