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

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

Issue 430773004: Add query for whether or not we have compressedTexSubImage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLCaps.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 GrDrawTargetCaps_DEFINED 8 #ifndef GrDrawTargetCaps_DEFINED
9 #define GrDrawTargetCaps_DEFINED 9 #define GrDrawTargetCaps_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } 33 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; }
34 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } 34 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; }
35 bool hwAALineSupport() const { return fHWAALineSupport; } 35 bool hwAALineSupport() const { return fHWAALineSupport; }
36 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } 36 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; }
37 bool geometryShaderSupport() const { return fGeometryShaderSupport; } 37 bool geometryShaderSupport() const { return fGeometryShaderSupport; }
38 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; } 38 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; }
39 bool pathRenderingSupport() const { return fPathRenderingSupport; } 39 bool pathRenderingSupport() const { return fPathRenderingSupport; }
40 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } 40 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; }
41 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; } 41 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; }
42 bool gpuTracingSupport() const { return fGpuTracingSupport; } 42 bool gpuTracingSupport() const { return fGpuTracingSupport; }
43 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup port; }
43 44
44 /** 45 /**
45 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte x buffers and 46 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte x buffers and
46 * textures allows partial mappings or full mappings. 47 * textures allows partial mappings or full mappings.
47 */ 48 */
48 enum MapFlags { 49 enum MapFlags {
49 kNone_MapFlags = 0x0, //<! Cannot map the resource. 50 kNone_MapFlags = 0x0, //<! Cannot map the resource.
50 51
51 kCanMap_MapFlag = 0x1, //<! The resource can be mapped. Must be s et for any of 52 kCanMap_MapFlag = 0x1, //<! The resource can be mapped. Must be s et for any of
52 // the other flags to have meaning.k 53 // the other flags to have meaning.k
(...skipping 30 matching lines...) Expand all
83 bool fStencilWrapOpsSupport : 1; 84 bool fStencilWrapOpsSupport : 1;
84 bool fHWAALineSupport : 1; 85 bool fHWAALineSupport : 1;
85 bool fShaderDerivativeSupport : 1; 86 bool fShaderDerivativeSupport : 1;
86 bool fGeometryShaderSupport : 1; 87 bool fGeometryShaderSupport : 1;
87 bool fDualSourceBlendingSupport : 1; 88 bool fDualSourceBlendingSupport : 1;
88 bool fPathRenderingSupport : 1; 89 bool fPathRenderingSupport : 1;
89 bool fDstReadInShaderSupport : 1; 90 bool fDstReadInShaderSupport : 1;
90 bool fDiscardRenderTargetSupport: 1; 91 bool fDiscardRenderTargetSupport: 1;
91 bool fReuseScratchTextures : 1; 92 bool fReuseScratchTextures : 1;
92 bool fGpuTracingSupport : 1; 93 bool fGpuTracingSupport : 1;
94 bool fCompressedTexSubImageSupport : 1;
93 95
94 uint32_t fMapBufferFlags; 96 uint32_t fMapBufferFlags;
95 97
96 int fMaxRenderTargetSize; 98 int fMaxRenderTargetSize;
97 int fMaxTextureSize; 99 int fMaxTextureSize;
98 int fMaxSampleCount; 100 int fMaxSampleCount;
99 101
100 // The first entry for each config is without msaa and the second is with. 102 // The first entry for each config is without msaa and the second is with.
101 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 103 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
102 bool fConfigTextureSupport[kGrPixelConfigCnt]; 104 bool fConfigTextureSupport[kGrPixelConfigCnt];
103 105
104 typedef SkRefCnt INHERITED; 106 typedef SkRefCnt INHERITED;
105 }; 107 };
106 108
107 #endif 109 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698