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

Side by Side Diff: src/gpu/GrDrawTargetCaps.h

Issue 53133002: Make not-reusing-scratch-textures only apply to texture uploads (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: clean up Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrSWMaskHelper.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 8
9 #include "SkRefCnt.h" 9 #include "SkRefCnt.h"
10 #include "GrTypes.h" 10 #include "GrTypes.h"
(...skipping 19 matching lines...) Expand all
30 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } 30 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; }
31 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } 31 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; }
32 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } 32 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; }
33 bool hwAALineSupport() const { return fHWAALineSupport; } 33 bool hwAALineSupport() const { return fHWAALineSupport; }
34 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } 34 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; }
35 bool geometryShaderSupport() const { return fGeometryShaderSupport; } 35 bool geometryShaderSupport() const { return fGeometryShaderSupport; }
36 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; } 36 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; }
37 bool bufferLockSupport() const { return fBufferLockSupport; } 37 bool bufferLockSupport() const { return fBufferLockSupport; }
38 bool pathRenderingSupport() const { return fPathRenderingSupport; } 38 bool pathRenderingSupport() const { return fPathRenderingSupport; }
39 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } 39 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; }
40
41 // Scratch textures not being reused means that those scratch textures
42 // that we upload to (i.e., don't have a render target) will not be
43 // recycled in the texture cache. This is to prevent ghosting by drivers
44 // (in particular for deferred architectures).
40 bool reuseScratchTextures() const { return fReuseScratchTextures; } 45 bool reuseScratchTextures() const { return fReuseScratchTextures; }
41 46
42 int maxRenderTargetSize() const { return fMaxRenderTargetSize; } 47 int maxRenderTargetSize() const { return fMaxRenderTargetSize; }
43 int maxTextureSize() const { return fMaxTextureSize; } 48 int maxTextureSize() const { return fMaxTextureSize; }
44 // Will be 0 if MSAA is not supported 49 // Will be 0 if MSAA is not supported
45 int maxSampleCount() const { return fMaxSampleCount; } 50 int maxSampleCount() const { return fMaxSampleCount; }
46 51
47 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const { 52 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const {
48 SkASSERT(kGrPixelConfigCnt > config); 53 SkASSERT(kGrPixelConfigCnt > config);
49 return fConfigRenderSupport[config][withMSAA]; 54 return fConfigRenderSupport[config][withMSAA];
(...skipping 17 matching lines...) Expand all
67 int fMaxTextureSize; 72 int fMaxTextureSize;
68 int fMaxSampleCount; 73 int fMaxSampleCount;
69 74
70 // The first entry for each config is without msaa and the second is with. 75 // The first entry for each config is without msaa and the second is with.
71 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 76 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
72 77
73 typedef SkRefCnt INHERITED; 78 typedef SkRefCnt INHERITED;
74 }; 79 };
75 80
76 #endif 81 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698