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

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

Issue 1151603005: Revert of Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: 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 GrContextOptions& contextOptions, 15 GrGLCaps::GrGLCaps(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterf ace) {
16 const GrGLContextInfo& ctxInfo,
17 const GrGLInterface* glInterface) : INHERITED(contextOptions) {
18 fVerifiedColorConfigs.reset(); 16 fVerifiedColorConfigs.reset();
19 fStencilFormats.reset(); 17 fStencilFormats.reset();
20 fStencilVerifiedColorConfigs.reset(); 18 fStencilVerifiedColorConfigs.reset();
21 fMSFBOType = kNone_MSFBOType; 19 fMSFBOType = kNone_MSFBOType;
22 fInvalidateFBType = kNone_InvalidateFBType; 20 fInvalidateFBType = kNone_InvalidateFBType;
23 fLATCAlias = kLATC_LATCAlias; 21 fLATCAlias = kLATC_LATCAlias;
24 fMapBufferType = kNone_MapBufferType; 22 fMapBufferType = kNone_MapBufferType;
25 fMaxFragmentUniformVectors = 0; 23 fMaxFragmentUniformVectors = 0;
26 fMaxVertexAttributes = 0; 24 fMaxVertexAttributes = 0;
27 fMaxFragmentTextureUnits = 0; 25 fMaxFragmentTextureUnits = 0;
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 if (fGeometryShaderSupport) { 1102 if (fGeometryShaderSupport) {
1105 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1103 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1106 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1104 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1107 } 1105 }
1108 } 1106 }
1109 } 1107 }
1110 1108
1111 1109
1112 1110
1113 1111
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