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

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

Issue 1158963002: Add caps overrides to GMs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tiny Created 5 years, 6 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
« src/gpu/GrCaps.cpp ('K') | « src/gpu/GrTest.cpp ('k') | no next file » | 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 fMultisampleDisableSupport = false; 43 fMultisampleDisableSupport = false;
44 fUseNonVBOVertexAndIndexDynamicData = false; 44 fUseNonVBOVertexAndIndexDynamicData = false;
45 fIsCoreProfile = false; 45 fIsCoreProfile = false;
46 fFullClearIsFree = false; 46 fFullClearIsFree = false;
47 47
48 fReadPixelsSupportedCache.reset(); 48 fReadPixelsSupportedCache.reset();
49 49
50 this->init(ctxInfo, glInterface); 50 this->init(ctxInfo, glInterface);
51 51
52 fShaderCaps.reset(SkNEW_ARGS(GrGLSLCaps, (ctxInfo, glInterface, *this))); 52 fShaderCaps.reset(SkNEW_ARGS(GrGLSLCaps, (ctxInfo, glInterface, *this)));
53
54 this->applyOptionsOverrides(contextOptions);
53 } 55 }
54 56
55 void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { 57 void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {
56 GrGLStandard standard = ctxInfo.standard(); 58 GrGLStandard standard = ctxInfo.standard();
57 GrGLVersion version = ctxInfo.version(); 59 GrGLVersion version = ctxInfo.version();
58 60
59 /************************************************************************** 61 /**************************************************************************
60 * Caps specific to GrGLCaps 62 * Caps specific to GrGLCaps
61 **************************************************************************/ 63 **************************************************************************/
62 64
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 if (fGeometryShaderSupport) { 1106 if (fGeometryShaderSupport) {
1105 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1107 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1106 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1108 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1107 } 1109 }
1108 } 1110 }
1109 } 1111 }
1110 1112
1111 1113
1112 1114
1113 1115
OLDNEW
« src/gpu/GrCaps.cpp ('K') | « src/gpu/GrTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698