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

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

Issue 1592803002: Differentiate maxColorSamples and maxStencilSamples in GrCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | src/gpu/GrCaps.cpp » ('j') | src/gpu/GrContext.cpp » ('J')
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool reuseScratchTextures() const { return fReuseScratchTextures; } 181 bool reuseScratchTextures() const { return fReuseScratchTextures; }
182 bool reuseScratchBuffers() const { return fReuseScratchBuffers; } 182 bool reuseScratchBuffers() const { return fReuseScratchBuffers; }
183 183
184 int maxRenderTargetSize() const { return fMaxRenderTargetSize; } 184 int maxRenderTargetSize() const { return fMaxRenderTargetSize; }
185 int maxTextureSize() const { return fMaxTextureSize; } 185 int maxTextureSize() const { return fMaxTextureSize; }
186 /** This is the maximum tile size to use by GPU devices for rendering sw-bac ked images/bitmaps. 186 /** This is the maximum tile size to use by GPU devices for rendering sw-bac ked images/bitmaps.
187 It is usually the max texture size, unless we're overriding it for testi ng. */ 187 It is usually the max texture size, unless we're overriding it for testi ng. */
188 int maxTileSize() const { SkASSERT(fMaxTileSize <= fMaxTextureSize); return fMaxTileSize; } 188 int maxTileSize() const { SkASSERT(fMaxTileSize <= fMaxTextureSize); return fMaxTileSize; }
189 189
190 // Will be 0 if MSAA is not supported 190 // Will be 0 if MSAA is not supported
191 int maxSampleCount() const { return fMaxSampleCount; } 191 int maxColorSampleCount() const { return fMaxColorSampleCount; }
192 // Will be 0 if MSAA is not supported
193 int maxStencilSampleCount() const { return fMaxStencilSampleCount; }
192 194
193 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; 195 virtual bool isConfigTexturable(GrPixelConfig config) const = 0;
194 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; 196 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
195 197
196 bool suppressPrints() const { return fSuppressPrints; } 198 bool suppressPrints() const { return fSuppressPrints; }
197 199
198 bool immediateFlush() const { return fImmediateFlush; } 200 bool immediateFlush() const { return fImmediateFlush; }
199 201
200 bool drawPathMasksToCompressedTexturesSupport() const { 202 bool drawPathMasksToCompressedTexturesSupport() const {
201 return fDrawPathMasksToCompressedTextureSupport; 203 return fDrawPathMasksToCompressedTextureSupport;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 BlendEquationSupport fBlendEquationSupport; 252 BlendEquationSupport fBlendEquationSupport;
251 uint32_t fAdvBlendEqBlacklist; 253 uint32_t fAdvBlendEqBlacklist;
252 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); 254 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32);
253 255
254 uint32_t fMapBufferFlags; 256 uint32_t fMapBufferFlags;
255 int fGeometryBufferMapThreshold; 257 int fGeometryBufferMapThreshold;
256 258
257 int fMaxRenderTargetSize; 259 int fMaxRenderTargetSize;
258 int fMaxTextureSize; 260 int fMaxTextureSize;
259 int fMaxTileSize; 261 int fMaxTileSize;
260 int fMaxSampleCount; 262 int fMaxColorSampleCount;
263 int fMaxStencilSampleCount;
261 264
262 private: 265 private:
263 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 266 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
264 267
265 bool fSuppressPrints : 1; 268 bool fSuppressPrints : 1;
266 bool fImmediateFlush: 1; 269 bool fImmediateFlush: 1;
267 bool fDrawPathMasksToCompressedTextureSupport : 1; 270 bool fDrawPathMasksToCompressedTextureSupport : 1;
268 271
269 typedef SkRefCnt INHERITED; 272 typedef SkRefCnt INHERITED;
270 }; 273 };
271 274
272 #endif 275 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrCaps.cpp » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698