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

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

Issue 437473002: Wrap NV_path_rendering API with GrGLPathRendering (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
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 19 matching lines...) Expand all
30 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor t of MIP Maps (e.g. 30 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor t of MIP Maps (e.g.
31 only for POT textures) */ 31 only for POT textures) */
32 bool mipMapSupport() const { return fMipMapSupport; } 32 bool mipMapSupport() const { return fMipMapSupport; }
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 pathRenderingV13Support() const { return fPathRenderingV13Support; }
40 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } 41 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; }
41 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; } 42 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; }
42 bool gpuTracingSupport() const { return fGpuTracingSupport; } 43 bool gpuTracingSupport() const { return fGpuTracingSupport; }
43 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup port; } 44 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup port; }
44 45
45 /** 46 /**
46 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte x buffers and 47 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte x buffers and
47 * textures allows partial mappings or full mappings. 48 * textures allows partial mappings or full mappings.
48 */ 49 */
49 enum MapFlags { 50 enum MapFlags {
(...skipping 30 matching lines...) Expand all
80 protected: 81 protected:
81 bool fNPOTTextureTileSupport : 1; 82 bool fNPOTTextureTileSupport : 1;
82 bool fMipMapSupport : 1; 83 bool fMipMapSupport : 1;
83 bool fTwoSidedStencilSupport : 1; 84 bool fTwoSidedStencilSupport : 1;
84 bool fStencilWrapOpsSupport : 1; 85 bool fStencilWrapOpsSupport : 1;
85 bool fHWAALineSupport : 1; 86 bool fHWAALineSupport : 1;
86 bool fShaderDerivativeSupport : 1; 87 bool fShaderDerivativeSupport : 1;
87 bool fGeometryShaderSupport : 1; 88 bool fGeometryShaderSupport : 1;
88 bool fDualSourceBlendingSupport : 1; 89 bool fDualSourceBlendingSupport : 1;
89 bool fPathRenderingSupport : 1; 90 bool fPathRenderingSupport : 1;
91 bool fPathRenderingV13Support : 1;
90 bool fDstReadInShaderSupport : 1; 92 bool fDstReadInShaderSupport : 1;
91 bool fDiscardRenderTargetSupport: 1; 93 bool fDiscardRenderTargetSupport: 1;
92 bool fReuseScratchTextures : 1; 94 bool fReuseScratchTextures : 1;
93 bool fGpuTracingSupport : 1; 95 bool fGpuTracingSupport : 1;
94 bool fCompressedTexSubImageSupport : 1; 96 bool fCompressedTexSubImageSupport : 1;
95 97
96 uint32_t fMapBufferFlags; 98 uint32_t fMapBufferFlags;
97 99
98 int fMaxRenderTargetSize; 100 int fMaxRenderTargetSize;
99 int fMaxTextureSize; 101 int fMaxTextureSize;
100 int fMaxSampleCount; 102 int fMaxSampleCount;
101 103
102 // The first entry for each config is without msaa and the second is with. 104 // The first entry for each config is without msaa and the second is with.
103 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 105 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
104 bool fConfigTextureSupport[kGrPixelConfigCnt]; 106 bool fConfigTextureSupport[kGrPixelConfigCnt];
105 107
106 typedef SkRefCnt INHERITED; 108 typedef SkRefCnt INHERITED;
107 }; 109 };
108 110
109 #endif 111 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698