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

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

Issue 1418473004: Allow max tile size to be overridden separately from max texture size. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix comment spelling 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 | « gm/bleed.cpp ('k') | 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 // Scratch textures not being reused means that those scratch textures 183 // Scratch textures not being reused means that those scratch textures
184 // that we upload to (i.e., don't have a render target) will not be 184 // that we upload to (i.e., don't have a render target) will not be
185 // recycled in the texture cache. This is to prevent ghosting by drivers 185 // recycled in the texture cache. This is to prevent ghosting by drivers
186 // (in particular for deferred architectures). 186 // (in particular for deferred architectures).
187 bool reuseScratchTextures() const { return fReuseScratchTextures; } 187 bool reuseScratchTextures() const { return fReuseScratchTextures; }
188 bool reuseScratchBuffers() const { return fReuseScratchBuffers; } 188 bool reuseScratchBuffers() const { return fReuseScratchBuffers; }
189 189
190 int maxRenderTargetSize() const { return fMaxRenderTargetSize; } 190 int maxRenderTargetSize() const { return fMaxRenderTargetSize; }
191 int maxTextureSize() const { return fMaxTextureSize; } 191 int maxTextureSize() const { return fMaxTextureSize; }
192 /** This is the maximum tile size to use by GPU devices for rendering sw-bac ked images/bitmaps.
193 It is usually the max texture size, unless we're overriding it for testi ng. */
194 int maxTileSize() const { SkASSERT(fMaxTileSize <= fMaxTextureSize); return fMaxTileSize; }
192 195
193 // Will be 0 if MSAA is not supported 196 // Will be 0 if MSAA is not supported
194 int maxSampleCount() const { return fMaxSampleCount; } 197 int maxSampleCount() const { return fMaxSampleCount; }
195 198
196 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const { 199 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const {
197 SkASSERT(kGrPixelConfigCnt > config); 200 SkASSERT(kGrPixelConfigCnt > config);
198 return fConfigRenderSupport[config][withMSAA]; 201 return fConfigRenderSupport[config][withMSAA];
199 } 202 }
200 203
201 bool isConfigTexturable(GrPixelConfig config) const { 204 bool isConfigTexturable(GrPixelConfig config) const {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 259
257 BlendEquationSupport fBlendEquationSupport; 260 BlendEquationSupport fBlendEquationSupport;
258 uint32_t fAdvBlendEqBlacklist; 261 uint32_t fAdvBlendEqBlacklist;
259 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); 262 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32);
260 263
261 uint32_t fMapBufferFlags; 264 uint32_t fMapBufferFlags;
262 int fGeometryBufferMapThreshold; 265 int fGeometryBufferMapThreshold;
263 266
264 int fMaxRenderTargetSize; 267 int fMaxRenderTargetSize;
265 int fMaxTextureSize; 268 int fMaxTextureSize;
269 int fMaxTileSize;
266 int fMaxSampleCount; 270 int fMaxSampleCount;
267 271
268 // 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.
269 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 273 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
270 bool fConfigTextureSupport[kGrPixelConfigCnt]; 274 bool fConfigTextureSupport[kGrPixelConfigCnt];
271 275
272 private: 276 private:
273 bool fSupressPrints : 1; 277 bool fSupressPrints : 1;
274 bool fDrawPathMasksToCompressedTextureSupport : 1; 278 bool fDrawPathMasksToCompressedTextureSupport : 1;
275 279
276 typedef SkRefCnt INHERITED; 280 typedef SkRefCnt INHERITED;
277 }; 281 };
278 282
279 #endif 283 #endif
OLDNEW
« no previous file with comments | « gm/bleed.cpp ('k') | include/gpu/GrContextOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698