| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  153     bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |  153     bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 
|  154     bool stencilWrapOpsSupport() const { return  fStencilWrapOpsSupport; } |  154     bool stencilWrapOpsSupport() const { return  fStencilWrapOpsSupport; } | 
|  155     bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
     ; } |  155     bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
     ; } | 
|  156     bool gpuTracingSupport() const { return fGpuTracingSupport; } |  156     bool gpuTracingSupport() const { return fGpuTracingSupport; } | 
|  157     bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
     port; } |  157     bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
     port; } | 
|  158     bool oversizedStencilSupport() const { return fOversizedStencilSupport; } |  158     bool oversizedStencilSupport() const { return fOversizedStencilSupport; } | 
|  159     bool textureBarrierSupport() const { return fTextureBarrierSupport; } |  159     bool textureBarrierSupport() const { return fTextureBarrierSupport; } | 
|  160     bool sampleLocationsSupport() const { return fSampleLocationsSupport; } |  160     bool sampleLocationsSupport() const { return fSampleLocationsSupport; } | 
|  161     bool multisampleDisableSupport() const { return fMultisampleDisableSupport; 
     } |  161     bool multisampleDisableSupport() const { return fMultisampleDisableSupport; 
     } | 
|  162     bool usesMixedSamples() const { return fUsesMixedSamples; } |  162     bool usesMixedSamples() const { return fUsesMixedSamples; } | 
 |  163     bool preferClientSideDynamicBuffers() const { return fPreferClientSideDynami
     cBuffers; } | 
|  163  |  164  | 
|  164     bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } |  165     bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } | 
|  165     bool useDrawInsteadOfPartialRenderTargetWrite() const { |  166     bool useDrawInsteadOfPartialRenderTargetWrite() const { | 
|  166         return fUseDrawInsteadOfPartialRenderTargetWrite; |  167         return fUseDrawInsteadOfPartialRenderTargetWrite; | 
|  167     } |  168     } | 
|  168  |  169  | 
|  169     bool useDrawInsteadOfAllRenderTargetWrites() const { |  170     bool useDrawInsteadOfAllRenderTargetWrites() const { | 
|  170         return fUseDrawInsteadOfAllRenderTargetWrites; |  171         return fUseDrawInsteadOfAllRenderTargetWrites; | 
|  171     } |  172     } | 
|  172  |  173  | 
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  290     bool fDiscardRenderTargetSupport                 : 1; |  291     bool fDiscardRenderTargetSupport                 : 1; | 
|  291     bool fReuseScratchTextures                       : 1; |  292     bool fReuseScratchTextures                       : 1; | 
|  292     bool fReuseScratchBuffers                        : 1; |  293     bool fReuseScratchBuffers                        : 1; | 
|  293     bool fGpuTracingSupport                          : 1; |  294     bool fGpuTracingSupport                          : 1; | 
|  294     bool fCompressedTexSubImageSupport               : 1; |  295     bool fCompressedTexSubImageSupport               : 1; | 
|  295     bool fOversizedStencilSupport                    : 1; |  296     bool fOversizedStencilSupport                    : 1; | 
|  296     bool fTextureBarrierSupport                      : 1; |  297     bool fTextureBarrierSupport                      : 1; | 
|  297     bool fSampleLocationsSupport                     : 1; |  298     bool fSampleLocationsSupport                     : 1; | 
|  298     bool fMultisampleDisableSupport                  : 1; |  299     bool fMultisampleDisableSupport                  : 1; | 
|  299     bool fUsesMixedSamples                           : 1; |  300     bool fUsesMixedSamples                           : 1; | 
 |  301     bool fPreferClientSideDynamicBuffers             : 1; | 
|  300     bool fSupportsInstancedDraws                     : 1; |  302     bool fSupportsInstancedDraws                     : 1; | 
|  301     bool fFullClearIsFree                            : 1; |  303     bool fFullClearIsFree                            : 1; | 
|  302     bool fMustClearUploadedBufferData                : 1; |  304     bool fMustClearUploadedBufferData                : 1; | 
|  303  |  305  | 
|  304     // Driver workaround |  306     // Driver workaround | 
|  305     bool fUseDrawInsteadOfClear                      : 1; |  307     bool fUseDrawInsteadOfClear                      : 1; | 
|  306     bool fUseDrawInsteadOfPartialRenderTargetWrite   : 1; |  308     bool fUseDrawInsteadOfPartialRenderTargetWrite   : 1; | 
|  307     bool fUseDrawInsteadOfAllRenderTargetWrites      : 1; |  309     bool fUseDrawInsteadOfAllRenderTargetWrites      : 1; | 
|  308  |  310  | 
|  309     // ANGLE workaround |  311     // ANGLE workaround | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
|  329 private: |  331 private: | 
|  330     virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |  332     virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 
|  331  |  333  | 
|  332     bool fSuppressPrints : 1; |  334     bool fSuppressPrints : 1; | 
|  333     bool fImmediateFlush: 1; |  335     bool fImmediateFlush: 1; | 
|  334  |  336  | 
|  335     typedef SkRefCnt INHERITED; |  337     typedef SkRefCnt INHERITED; | 
|  336 }; |  338 }; | 
|  337  |  339  | 
|  338 #endif |  340 #endif | 
| OLD | NEW |