| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 38 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
| 39 bool hwAALineSupport() const { return fHWAALineSupport; } | 39 bool hwAALineSupport() const { return fHWAALineSupport; } |
| 40 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } | 40 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } |
| 41 bool geometryShaderSupport() const { return fGeometryShaderSupport; } | 41 bool geometryShaderSupport() const { return fGeometryShaderSupport; } |
| 42 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} | 42 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} |
| 43 bool pathRenderingSupport() const { return fPathRenderingSupport; } | 43 bool pathRenderingSupport() const { return fPathRenderingSupport; } |
| 44 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } | 44 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } |
| 45 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } | 45 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } |
| 46 bool gpuTracingSupport() const { return fGpuTracingSupport; } | 46 bool gpuTracingSupport() const { return fGpuTracingSupport; } |
| 47 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } | 47 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } |
| 48 bool has3DTexImageSupport() const { return f3DTexImageSupport; } |
| 48 | 49 |
| 49 /** | 50 /** |
| 50 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte
x buffers and | 51 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte
x buffers and |
| 51 * textures allows partial mappings or full mappings. | 52 * textures allows partial mappings or full mappings. |
| 52 */ | 53 */ |
| 53 enum MapFlags { | 54 enum MapFlags { |
| 54 kNone_MapFlags = 0x0, //<! Cannot map the resource. | 55 kNone_MapFlags = 0x0, //<! Cannot map the resource. |
| 55 | 56 |
| 56 kCanMap_MapFlag = 0x1, //<! The resource can be mapped. Must be s
et for any of | 57 kCanMap_MapFlag = 0x1, //<! The resource can be mapped. Must be s
et for any of |
| 57 // the other flags to have meaning.k | 58 // the other flags to have meaning.k |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 bool fHWAALineSupport : 1; | 97 bool fHWAALineSupport : 1; |
| 97 bool fShaderDerivativeSupport : 1; | 98 bool fShaderDerivativeSupport : 1; |
| 98 bool fGeometryShaderSupport : 1; | 99 bool fGeometryShaderSupport : 1; |
| 99 bool fDualSourceBlendingSupport : 1; | 100 bool fDualSourceBlendingSupport : 1; |
| 100 bool fPathRenderingSupport : 1; | 101 bool fPathRenderingSupport : 1; |
| 101 bool fDstReadInShaderSupport : 1; | 102 bool fDstReadInShaderSupport : 1; |
| 102 bool fDiscardRenderTargetSupport: 1; | 103 bool fDiscardRenderTargetSupport: 1; |
| 103 bool fReuseScratchTextures : 1; | 104 bool fReuseScratchTextures : 1; |
| 104 bool fGpuTracingSupport : 1; | 105 bool fGpuTracingSupport : 1; |
| 105 bool fCompressedTexSubImageSupport : 1; | 106 bool fCompressedTexSubImageSupport : 1; |
| 107 bool f3DTexImageSupport : 1; |
| 106 | 108 |
| 107 uint32_t fMapBufferFlags; | 109 uint32_t fMapBufferFlags; |
| 108 | 110 |
| 109 int fMaxRenderTargetSize; | 111 int fMaxRenderTargetSize; |
| 110 int fMaxTextureSize; | 112 int fMaxTextureSize; |
| 111 int fMaxSampleCount; | 113 int fMaxSampleCount; |
| 112 | 114 |
| 113 // The first entry for each config is without msaa and the second is with. | 115 // The first entry for each config is without msaa and the second is with. |
| 114 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; | 116 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
| 115 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 117 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
| 116 | 118 |
| 117 private: | 119 private: |
| 118 static uint32_t CreateUniqueID(); | 120 static uint32_t CreateUniqueID(); |
| 119 | 121 |
| 120 const uint32_t fUniqueID; | 122 const uint32_t fUniqueID; |
| 121 | 123 |
| 122 typedef SkRefCnt INHERITED; | 124 typedef SkRefCnt INHERITED; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 #endif | 127 #endif |
| OLD | NEW |