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

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

Issue 1420033005: Create swizzle table inside of glsl caps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 | include/gpu/GrContextOptions.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 bool fPathRenderingSupport : 1; 93 bool fPathRenderingSupport : 1;
94 bool fDstReadInShaderSupport : 1; 94 bool fDstReadInShaderSupport : 1;
95 bool fDualSourceBlendingSupport : 1; 95 bool fDualSourceBlendingSupport : 1;
96 bool fMixedSamplesSupport : 1; 96 bool fMixedSamplesSupport : 1;
97 bool fProgrammableSampleLocationsSupport : 1; 97 bool fProgrammableSampleLocationsSupport : 1;
98 98
99 bool fShaderPrecisionVaries; 99 bool fShaderPrecisionVaries;
100 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount]; 100 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount];
101 101
102 private: 102 private:
103 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
103 typedef SkRefCnt INHERITED; 104 typedef SkRefCnt INHERITED;
104 }; 105 };
105 106
106 /** 107 /**
107 * Represents the capabilities of a GrContext. 108 * Represents the capabilities of a GrContext.
108 */ 109 */
109 class GrCaps : public SkRefCnt { 110 class GrCaps : public SkRefCnt {
110 public: 111 public:
111 GrCaps(const GrContextOptions&); 112 GrCaps(const GrContextOptions&);
112 113
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 int fMaxRenderTargetSize; 268 int fMaxRenderTargetSize;
268 int fMaxTextureSize; 269 int fMaxTextureSize;
269 int fMaxTileSize; 270 int fMaxTileSize;
270 int fMaxSampleCount; 271 int fMaxSampleCount;
271 272
272 // The first entry for each config is without msaa and the second is with. 273 // The first entry for each config is without msaa and the second is with.
273 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 274 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
274 bool fConfigTextureSupport[kGrPixelConfigCnt]; 275 bool fConfigTextureSupport[kGrPixelConfigCnt];
275 276
276 private: 277 private:
278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
279
277 bool fSupressPrints : 1; 280 bool fSupressPrints : 1;
278 bool fDrawPathMasksToCompressedTextureSupport : 1; 281 bool fDrawPathMasksToCompressedTextureSupport : 1;
279 282
280 typedef SkRefCnt INHERITED; 283 typedef SkRefCnt INHERITED;
281 }; 284 };
282 285
283 #endif 286 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrContextOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698