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

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

Issue 1513573009: Add check for highp support in Conic effect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/effects/GrBezierEffect.cpp » ('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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } 63 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; }
64 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; } 64 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; }
65 65
66 /** 66 /**
67 * Get the precision info for a variable of type kFloat_GrSLType, kVec2f_GrSL Type, etc in a 67 * Get the precision info for a variable of type kFloat_GrSLType, kVec2f_GrSL Type, etc in a
68 * given shader type. If the shader type is not supported or the precision le vel is not 68 * given shader type. If the shader type is not supported or the precision le vel is not
69 * supported in that shader type then the returned struct will report false w hen supported() is 69 * supported in that shader type then the returned struct will report false w hen supported() is
70 * called. 70 * called.
71 */ 71 */
72 const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType, 72 const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType,
73 GrSLPrecision precision) const { 73 GrSLPrecision precision) co nst {
74 return fFloatPrecisions[shaderType][precision]; 74 return fFloatPrecisions[shaderType][precision];
75 }; 75 };
76 76
77 /** 77 /**
78 * Is there any difference between the float shader variable precision types? If this is true 78 * Is there any difference between the float shader variable precision types? If this is true
79 * then unless the shader type is not supported, any call to getFloatShaderPr ecisionInfo() would 79 * then unless the shader type is not supported, any call to getFloatShaderPr ecisionInfo() would
80 * report the same info for all precisions in all shader types. 80 * report the same info for all precisions in all shader types.
81 */ 81 */
82 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; } 82 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; }
83 83
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
279 279
280 bool fSuppressPrints : 1; 280 bool fSuppressPrints : 1;
281 bool fImmediateFlush: 1; 281 bool fImmediateFlush: 1;
282 bool fDrawPathMasksToCompressedTextureSupport : 1; 282 bool fDrawPathMasksToCompressedTextureSupport : 1;
283 283
284 typedef SkRefCnt INHERITED; 284 typedef SkRefCnt INHERITED;
285 }; 285 };
286 286
287 #endif 287 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698