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

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

Issue 1151793002: Make mixed samples contingent on auxiliary extensions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 GrShaderCaps& operator= (const GrShaderCaps&); 62 GrShaderCaps& operator= (const GrShaderCaps&);
63 63
64 virtual void reset(); 64 virtual void reset();
65 virtual SkString dump() const; 65 virtual SkString dump() const;
66 66
67 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } 67 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; }
68 bool geometryShaderSupport() const { return fGeometryShaderSupport; } 68 bool geometryShaderSupport() const { return fGeometryShaderSupport; }
69 bool pathRenderingSupport() const { return fPathRenderingSupport; } 69 bool pathRenderingSupport() const { return fPathRenderingSupport; }
70 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } 70 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; }
71 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; } 71 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; }
72 bool mixedSamplesSupport() const { return fMixedSamplesSupport; }
72 73
73 /** 74 /**
74 * Get the precision info for a variable of type kFloat_GrSLType, kVec2f_GrSL Type, etc in a 75 * Get the precision info for a variable of type kFloat_GrSLType, kVec2f_GrSL Type, etc in a
75 * given shader type. If the shader type is not supported or the precision le vel is not 76 * given shader type. If the shader type is not supported or the precision le vel is not
76 * supported in that shader type then the returned struct will report false w hen supported() is 77 * supported in that shader type then the returned struct will report false w hen supported() is
77 * called. 78 * called.
78 */ 79 */
79 const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType, 80 const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType,
80 GrSLPrecision precision) const { 81 GrSLPrecision precision) const {
81 return fFloatPrecisions[shaderType][precision]; 82 return fFloatPrecisions[shaderType][precision];
82 }; 83 };
83 84
84 /** 85 /**
85 * Is there any difference between the float shader variable precision types? If this is true 86 * Is there any difference between the float shader variable precision types? If this is true
86 * then unless the shader type is not supported, any call to getFloatShaderPr ecisionInfo() would 87 * then unless the shader type is not supported, any call to getFloatShaderPr ecisionInfo() would
87 * report the same info for all precisions in all shader types. 88 * report the same info for all precisions in all shader types.
88 */ 89 */
89 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; } 90 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; }
90 91
91 protected: 92 protected:
92 bool fShaderDerivativeSupport : 1; 93 bool fShaderDerivativeSupport : 1;
93 bool fGeometryShaderSupport : 1; 94 bool fGeometryShaderSupport : 1;
94 bool fPathRenderingSupport : 1; 95 bool fPathRenderingSupport : 1;
95 bool fDstReadInShaderSupport : 1; 96 bool fDstReadInShaderSupport : 1;
96 bool fDualSourceBlendingSupport : 1; 97 bool fDualSourceBlendingSupport : 1;
98 bool fMixedSamplesSupport : 1;
97 99
98 bool fShaderPrecisionVaries; 100 bool fShaderPrecisionVaries;
99 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount]; 101 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount];
100 102
101 private: 103 private:
102 typedef SkRefCnt INHERITED; 104 typedef SkRefCnt INHERITED;
103 }; 105 };
104 106
105 /** 107 /**
106 * Represents the capabilities of a GrContext. 108 * Represents the capabilities of a GrContext.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 228
227 // The first entry for each config is without msaa and the second is with. 229 // The first entry for each config is without msaa and the second is with.
228 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 230 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
229 bool fConfigTextureSupport[kGrPixelConfigCnt]; 231 bool fConfigTextureSupport[kGrPixelConfigCnt];
230 232
231 private: 233 private:
232 typedef SkRefCnt INHERITED; 234 typedef SkRefCnt INHERITED;
233 }; 235 };
234 236
235 #endif 237 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698