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

Side by Side Diff: src/gpu/GrContextFactory.h

Issue 1338003002: skia: Add ANGLE with GL backend to nanobench/DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove PictureRenderer changes Created 5 years, 3 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 | « include/gpu/gl/angle/SkANGLEGLContext.h ('k') | src/gpu/GrContextFactory.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrContextFactory_DEFINED 8 #ifndef GrContextFactory_DEFINED
9 #define GrContextFactory_DEFINED 9 #define GrContextFactory_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 /** 26 /**
27 * Types of GL contexts supported. For historical and testing reasons the na tive GrContext will 27 * Types of GL contexts supported. For historical and testing reasons the na tive GrContext will
28 * not use "GL_NV_path_rendering" even when the driver supports it. There is a separate context 28 * not use "GL_NV_path_rendering" even when the driver supports it. There is a separate context
29 * type that does not remove NVPR support and which will fail when the drive r does not support 29 * type that does not remove NVPR support and which will fail when the drive r does not support
30 * the extension. 30 * the extension.
31 */ 31 */
32 enum GLContextType { 32 enum GLContextType {
33 kNative_GLContextType, 33 kNative_GLContextType,
34 #if SK_ANGLE 34 #if SK_ANGLE
35 kANGLE_GLContextType, 35 kANGLE_GLContextType,
36 kANGLE_GL_GLContextType,
36 #endif 37 #endif
37 #if SK_COMMAND_BUFFER 38 #if SK_COMMAND_BUFFER
38 kCommandBuffer_GLContextType, 39 kCommandBuffer_GLContextType,
39 #endif 40 #endif
40 #if SK_MESA 41 #if SK_MESA
41 kMESA_GLContextType, 42 kMESA_GLContextType,
42 #endif 43 #endif
43 /** Similar to kNative but does not filter NVPR. It will fail if the GL dr iver does not 44 /** Similar to kNative but does not filter NVPR. It will fail if the GL dr iver does not
44 support NVPR */ 45 support NVPR */
45 kNVPR_GLContextType, 46 kNVPR_GLContextType,
(...skipping 17 matching lines...) Expand all
63 64
64 static const char* GLContextTypeName(GLContextType type) { 65 static const char* GLContextTypeName(GLContextType type) {
65 switch (type) { 66 switch (type) {
66 case kNative_GLContextType: 67 case kNative_GLContextType:
67 return "native"; 68 return "native";
68 case kNull_GLContextType: 69 case kNull_GLContextType:
69 return "null"; 70 return "null";
70 #if SK_ANGLE 71 #if SK_ANGLE
71 case kANGLE_GLContextType: 72 case kANGLE_GLContextType:
72 return "angle"; 73 return "angle";
74 case kANGLE_GL_GLContextType:
75 return "angle-gl";
73 #endif 76 #endif
74 #if SK_COMMAND_BUFFER 77 #if SK_COMMAND_BUFFER
75 case kCommandBuffer_GLContextType: 78 case kCommandBuffer_GLContextType:
76 return "commandbuffer"; 79 return "commandbuffer";
77 #endif 80 #endif
78 #if SK_MESA 81 #if SK_MESA
79 case kMESA_GLContextType: 82 case kMESA_GLContextType:
80 return "mesa"; 83 return "mesa";
81 #endif 84 #endif
82 case kNVPR_GLContextType: 85 case kNVPR_GLContextType:
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 struct GPUContext { 143 struct GPUContext {
141 GLContextType fType; 144 GLContextType fType;
142 SkGLContext* fGLContext; 145 SkGLContext* fGLContext;
143 GrContext* fGrContext; 146 GrContext* fGrContext;
144 }; 147 };
145 SkTArray<GPUContext, true> fContexts; 148 SkTArray<GPUContext, true> fContexts;
146 const GrContextOptions fGlobalOptions; 149 const GrContextOptions fGlobalOptions;
147 }; 150 };
148 151
149 #endif 152 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/angle/SkANGLEGLContext.h ('k') | src/gpu/GrContextFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698