| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrGpu_DEFINED | 8 #ifndef GrGpu_DEFINED |
| 9 #define GrGpu_DEFINED | 9 #define GrGpu_DEFINED |
| 10 | 10 |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 // Determines whether a copy of a texture must be made in order to be compat
ible with | 391 // Determines whether a copy of a texture must be made in order to be compat
ible with |
| 392 // a given GrTextureParams. If so, the width, height and filter used for the
copy are | 392 // a given GrTextureParams. If so, the width, height and filter used for the
copy are |
| 393 // output via the CopyParams. | 393 // output via the CopyParams. |
| 394 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, | 394 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, |
| 395 GrTextureProducer::CopyParams*) const; | 395 GrTextureProducer::CopyParams*) const; |
| 396 | 396 |
| 397 // This is only to be used in GL-specific tests. | 397 // This is only to be used in GL-specific tests. |
| 398 virtual const GrGLContext* glContextForTesting() const { return nullptr; } | 398 virtual const GrGLContext* glContextForTesting() const { return nullptr; } |
| 399 | 399 |
| 400 // This is only to be used by testing code |
| 401 virtual void resetShaderCacheForTesting() const {} |
| 402 |
| 400 protected: | 403 protected: |
| 401 // Functions used to map clip-respecting stencil tests into normal | 404 // Functions used to map clip-respecting stencil tests into normal |
| 402 // stencil funcs supported by GPUs. | 405 // stencil funcs supported by GPUs. |
| 403 static GrStencilFunc ConvertStencilFunc(bool stencilInClip, | 406 static GrStencilFunc ConvertStencilFunc(bool stencilInClip, |
| 404 GrStencilFunc func); | 407 GrStencilFunc func); |
| 405 static void ConvertStencilFuncAndMask(GrStencilFunc func, | 408 static void ConvertStencilFuncAndMask(GrStencilFunc func, |
| 406 bool clipInStencil, | 409 bool clipInStencil, |
| 407 unsigned int clipBit, | 410 unsigned int clipBit, |
| 408 unsigned int userBits, | 411 unsigned int userBits, |
| 409 unsigned int* ref, | 412 unsigned int* ref, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 ResetTimestamp fResetTi
mestamp; | 506 ResetTimestamp fResetTi
mestamp; |
| 504 uint32_t fResetBi
ts; | 507 uint32_t fResetBi
ts; |
| 505 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 508 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 506 GrContext* fContext
; | 509 GrContext* fContext
; |
| 507 | 510 |
| 508 friend class GrPathRendering; | 511 friend class GrPathRendering; |
| 509 typedef SkRefCnt INHERITED; | 512 typedef SkRefCnt INHERITED; |
| 510 }; | 513 }; |
| 511 | 514 |
| 512 #endif | 515 #endif |
| OLD | NEW |