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

Unified Diff: dm/DMGpuSupport.h

Issue 1856703002: Revert of Rename enums in GrContextFactory to remove "GL" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMGpuSupport.h
diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h
index 2352f83ae4c326fef9e0a709898d7c8df22ed1c6..490737f41ee283fceaac2d9ff858be13e81d8edd 100644
--- a/dm/DMGpuSupport.h
+++ b/dm/DMGpuSupport.h
@@ -30,8 +30,8 @@
static inline sk_sp<SkSurface> NewGpuSurface(
sk_gpu_test::GrContextFactory* grFactory,
- sk_gpu_test::GrContextFactory::ContextType type,
- sk_gpu_test::GrContextFactory::ContextOptions options,
+ sk_gpu_test::GrContextFactory::GLContextType type,
+ sk_gpu_test::GrContextFactory::GLContextOptions options,
SkImageInfo info,
int samples,
bool useDIText) {
@@ -66,22 +66,20 @@
GrContextFactory() {};
explicit GrContextFactory(const GrContextOptions&) {}
- typedef int ContextType;
+ typedef int GLContextType;
- static const ContextType kANGLE_ContextType = 0,
- kANGLE_GL_ContextType = 0,
- kCommandBuffer_ContextType = 0,
- kDebugGL_ContextType = 0,
- kMESA_ContextType = 0,
- kNVPR_ContextType = 0,
- kNativeGL_ContextType = 0,
- kGL_ContextType = 0,
- kGLES_ContextType = 0,
- kNullGL_ContextType = 0;
- static const int kContextTypeCnt = 1;
- enum ContextOptions {
- kNone_ContextOptions = 0,
- kEnableNVPR_ContextOptions = 0x1,
+ static const GLContextType kANGLE_GLContextType = 0,
+ kANGLE_GL_GLContextType = 0,
+ kCommandBuffer_GLContextType = 0,
+ kDebug_GLContextType = 0,
+ kMESA_GLContextType = 0,
+ kNVPR_GLContextType = 0,
+ kNative_GLContextType = 0,
+ kNull_GLContextType = 0;
+ static const int kGLContextTypeCnt = 1;
+ enum GLContextOptions {
+ kNone_GLContextOptions = 0,
+ kEnableNVPR_GLContextOptions = 0x1,
};
void destroyContexts() {}
@@ -96,8 +94,8 @@
static const bool kGPUDisabled = true;
static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*,
- sk_gpu_test::GrContextFactory::ContextType,
- sk_gpu_test::GrContextFactory::ContextOptions,
+ sk_gpu_test::GrContextFactory::GLContextType,
+ sk_gpu_test::GrContextFactory::GLContextOptions,
SkImageInfo,
int,
bool) {
« 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