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

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

Issue 1426653008: Revert of 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&) {};
104 typedef SkRefCnt INHERITED; 103 typedef SkRefCnt INHERITED;
105 }; 104 };
106 105
107 /** 106 /**
108 * Represents the capabilities of a GrContext. 107 * Represents the capabilities of a GrContext.
109 */ 108 */
110 class GrCaps : public SkRefCnt { 109 class GrCaps : public SkRefCnt {
111 public: 110 public:
112 GrCaps(const GrContextOptions&); 111 GrCaps(const GrContextOptions&);
113 112
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 int fMaxRenderTargetSize; 267 int fMaxRenderTargetSize;
269 int fMaxTextureSize; 268 int fMaxTextureSize;
270 int fMaxTileSize; 269 int fMaxTileSize;
271 int fMaxSampleCount; 270 int fMaxSampleCount;
272 271
273 // The first entry for each config is without msaa and the second is with. 272 // The first entry for each config is without msaa and the second is with.
274 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 273 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
275 bool fConfigTextureSupport[kGrPixelConfigCnt]; 274 bool fConfigTextureSupport[kGrPixelConfigCnt];
276 275
277 private: 276 private:
278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
279
280 bool fSupressPrints : 1; 277 bool fSupressPrints : 1;
281 bool fDrawPathMasksToCompressedTextureSupport : 1; 278 bool fDrawPathMasksToCompressedTextureSupport : 1;
282 279
283 typedef SkRefCnt INHERITED; 280 typedef SkRefCnt INHERITED;
284 }; 281 };
285 282
286 #endif 283 #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