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 GrCaps_DEFINED | 8 #ifndef GrCaps_DEFINED |
9 #define GrCaps_DEFINED | 9 #define GrCaps_DEFINED |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 GrShaderCaps* shaderCaps() const { return fShaderCaps; } | 112 GrShaderCaps* shaderCaps() const { return fShaderCaps; } |
113 | 113 |
114 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } | 114 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
115 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. | 115 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. |
116 only for POT textures) */ | 116 only for POT textures) */ |
117 bool mipMapSupport() const { return fMipMapSupport; } | 117 bool mipMapSupport() const { return fMipMapSupport; } |
118 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 118 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
119 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 119 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
120 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } | 120 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } |
121 #if GR_FORCE_GPU_TRACE_DEBUGGING | |
122 bool gpuTracingSupport() const { return true; } | |
123 #else | |
124 bool gpuTracingSupport() const { return fGpuTracingSupport; } | 121 bool gpuTracingSupport() const { return fGpuTracingSupport; } |
125 #endif | |
126 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } | 122 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } |
127 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } | 123 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } |
128 bool textureBarrierSupport() const { return fTextureBarrierSupport; } | 124 bool textureBarrierSupport() const { return fTextureBarrierSupport; } |
129 bool mixedSamplesSupport() const { return fMixedSamplesSupport; } | 125 bool mixedSamplesSupport() const { return fMixedSamplesSupport; } |
130 | 126 |
131 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } | 127 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } |
132 bool useDrawInsteadOfPartialRenderTargetWrite() const { | 128 bool useDrawInsteadOfPartialRenderTargetWrite() const { |
133 return fUseDrawInsteadOfPartialRenderTargetWrite; | 129 return fUseDrawInsteadOfPartialRenderTargetWrite; |
134 } | 130 } |
135 | 131 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 274 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
279 | 275 |
280 bool fSuppressPrints : 1; | 276 bool fSuppressPrints : 1; |
281 bool fImmediateFlush: 1; | 277 bool fImmediateFlush: 1; |
282 bool fDrawPathMasksToCompressedTextureSupport : 1; | 278 bool fDrawPathMasksToCompressedTextureSupport : 1; |
283 | 279 |
284 typedef SkRefCnt INHERITED; | 280 typedef SkRefCnt INHERITED; |
285 }; | 281 }; |
286 | 282 |
287 #endif | 283 #endif |
OLD | NEW |