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

Side by Side Diff: src/gpu/gl/GrGLCaps.cpp

Issue 1158433006: Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: remove case statement accidentally checked in Created 5 years, 7 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 | « src/gpu/gl/GrGLCaps.h ('k') | src/gpu/gl/GrGLContext.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 /* 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 8
9 #include "GrGLCaps.h" 9 #include "GrGLCaps.h"
10 10
11 #include "GrGLContext.h" 11 #include "GrGLContext.h"
12 #include "SkTSearch.h" 12 #include "SkTSearch.h"
13 #include "SkTSort.h" 13 #include "SkTSort.h"
14 14
15 GrGLCaps::GrGLCaps(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterf ace) { 15 GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions,
16 const GrGLContextInfo& ctxInfo,
17 const GrGLInterface* glInterface) : INHERITED(contextOptions) {
16 fVerifiedColorConfigs.reset(); 18 fVerifiedColorConfigs.reset();
17 fStencilFormats.reset(); 19 fStencilFormats.reset();
18 fStencilVerifiedColorConfigs.reset(); 20 fStencilVerifiedColorConfigs.reset();
19 fMSFBOType = kNone_MSFBOType; 21 fMSFBOType = kNone_MSFBOType;
20 fInvalidateFBType = kNone_InvalidateFBType; 22 fInvalidateFBType = kNone_InvalidateFBType;
21 fLATCAlias = kLATC_LATCAlias; 23 fLATCAlias = kLATC_LATCAlias;
22 fMapBufferType = kNone_MapBufferType; 24 fMapBufferType = kNone_MapBufferType;
23 fMaxFragmentUniformVectors = 0; 25 fMaxFragmentUniformVectors = 0;
24 fMaxVertexAttributes = 0; 26 fMaxVertexAttributes = 0;
25 fMaxFragmentTextureUnits = 0; 27 fMaxFragmentTextureUnits = 0;
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 if (fGeometryShaderSupport) { 1104 if (fGeometryShaderSupport) {
1103 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1105 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1104 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1106 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1105 } 1107 }
1106 } 1108 }
1107 } 1109 }
1108 1110
1109 1111
1110 1112
1111 1113
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.h ('k') | src/gpu/gl/GrGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698