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

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

Issue 1830303002: Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB convers… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added comment to srgbSupport() Created 4 years, 9 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 | include/gpu/GrPaint.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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 GrCaps(const GrContextOptions&); 130 GrCaps(const GrContextOptions&);
131 131
132 virtual SkString dump() const; 132 virtual SkString dump() const;
133 133
134 GrShaderCaps* shaderCaps() const { return fShaderCaps; } 134 GrShaderCaps* shaderCaps() const { return fShaderCaps; }
135 135
136 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } 136 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; }
137 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor t of MIP Maps (e.g. 137 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor t of MIP Maps (e.g.
138 only for POT textures) */ 138 only for POT textures) */
139 bool mipMapSupport() const { return fMipMapSupport; } 139 bool mipMapSupport() const { return fMipMapSupport; }
140
141 /**
142 * Skia convention is that a device only has sRGB support if it supports sRG B formats for both
143 * textures and framebuffers. In addition:
144 * Decoding to linear of an sRGB texture can be disabled.
145 * Encoding and gamma-correct blending to an sRGB framebuffer can be disab led.
146 */
140 bool srgbSupport() const { return fSRGBSupport; } 147 bool srgbSupport() const { return fSRGBSupport; }
141 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } 148 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; }
142 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } 149 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; }
143 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; } 150 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; }
144 bool gpuTracingSupport() const { return fGpuTracingSupport; } 151 bool gpuTracingSupport() const { return fGpuTracingSupport; }
145 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup port; } 152 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup port; }
146 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } 153 bool oversizedStencilSupport() const { return fOversizedStencilSupport; }
147 bool textureBarrierSupport() const { return fTextureBarrierSupport; } 154 bool textureBarrierSupport() const { return fTextureBarrierSupport; }
148 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } 155 bool sampleLocationsSupport() const { return fSampleLocationsSupport; }
149 bool usesMixedSamples() const { return fUsesMixedSamples; } 156 bool usesMixedSamples() const { return fUsesMixedSamples; }
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 322 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
316 323
317 bool fSuppressPrints : 1; 324 bool fSuppressPrints : 1;
318 bool fImmediateFlush: 1; 325 bool fImmediateFlush: 1;
319 bool fDrawPathMasksToCompressedTextureSupport : 1; 326 bool fDrawPathMasksToCompressedTextureSupport : 1;
320 327
321 typedef SkRefCnt INHERITED; 328 typedef SkRefCnt INHERITED;
322 }; 329 };
323 330
324 #endif 331 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698