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

Side by Side Diff: include/gpu/GrCaps.h

Issue 1177053002: Init GrGLSLCaps fields from inside GrGLCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef GrCaps_DEFINED 8 #ifndef GrCaps_DEFINED
9 #define GrCaps_DEFINED 9 #define GrCaps_DEFINED
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 }; 77 };
78 78
79 /** 79 /**
80 * Is there any difference between the float shader variable precision types? If this is true 80 * Is there any difference between the float shader variable precision types? If this is true
81 * then unless the shader type is not supported, any call to getFloatShaderPr ecisionInfo() would 81 * then unless the shader type is not supported, any call to getFloatShaderPr ecisionInfo() would
82 * report the same info for all precisions in all shader types. 82 * report the same info for all precisions in all shader types.
83 */ 83 */
84 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; } 84 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; }
85 85
86 protected: 86 protected:
87 /** Subclasses must call this at the end of their constructors in order to a pply caps 87 /** Subclasses must call this after initialization in order to apply caps ov errides requested by
88 overrides requested by the client. Note that overrides will only reduce the caps never 88 the client. Note that overrides will only reduce the caps never expand t hem. */
89 expand them. */
90 void applyOptionsOverrides(const GrContextOptions& options); 89 void applyOptionsOverrides(const GrContextOptions& options);
91 90
92 bool fShaderDerivativeSupport : 1; 91 bool fShaderDerivativeSupport : 1;
93 bool fGeometryShaderSupport : 1; 92 bool fGeometryShaderSupport : 1;
94 bool fPathRenderingSupport : 1; 93 bool fPathRenderingSupport : 1;
95 bool fDstReadInShaderSupport : 1; 94 bool fDstReadInShaderSupport : 1;
96 bool fDualSourceBlendingSupport : 1; 95 bool fDualSourceBlendingSupport : 1;
97 bool fMixedSamplesSupport : 1; 96 bool fMixedSamplesSupport : 1;
98 97
99 bool fShaderPrecisionVaries; 98 bool fShaderPrecisionVaries;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool fConfigTextureSupport[kGrPixelConfigCnt]; 241 bool fConfigTextureSupport[kGrPixelConfigCnt];
243 242
244 private: 243 private:
245 bool fSupressPrints : 1; 244 bool fSupressPrints : 1;
246 bool fDrawPathMasksToCompressedTextureSupport : 1; 245 bool fDrawPathMasksToCompressedTextureSupport : 1;
247 246
248 typedef SkRefCnt INHERITED; 247 typedef SkRefCnt INHERITED;
249 }; 248 };
250 249
251 #endif 250 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698