| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 int widt
h, | 377 int widt
h, |
| 378 int heig
ht) = 0; | 378 int heig
ht) = 0; |
| 379 // clears target's entire stencil buffer to 0 | 379 // clears target's entire stencil buffer to 0 |
| 380 virtual void clearStencil(GrRenderTarget* target) = 0; | 380 virtual void clearStencil(GrRenderTarget* target) = 0; |
| 381 | 381 |
| 382 | 382 |
| 383 // Determines whether a copy of a texture must be made in order to be compat
ible with | 383 // Determines whether a copy of a texture must be made in order to be compat
ible with |
| 384 // a given GrTextureParams. If so, the width, height and filter used for the
copy are | 384 // a given GrTextureParams. If so, the width, height and filter used for the
copy are |
| 385 // output via the CopyParams. | 385 // output via the CopyParams. |
| 386 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, | 386 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, |
| 387 GrTextureParamsAdjuster::CopyParams*) const; | 387 GrTextureProducer::CopyParams*) const; |
| 388 | 388 |
| 389 // This is only to be used in GL-specific tests. | 389 // This is only to be used in GL-specific tests. |
| 390 virtual const GrGLContext* glContextForTesting() const { return nullptr; } | 390 virtual const GrGLContext* glContextForTesting() const { return nullptr; } |
| 391 | 391 |
| 392 protected: | 392 protected: |
| 393 // Functions used to map clip-respecting stencil tests into normal | 393 // Functions used to map clip-respecting stencil tests into normal |
| 394 // stencil funcs supported by GPUs. | 394 // stencil funcs supported by GPUs. |
| 395 static GrStencilFunc ConvertStencilFunc(bool stencilInClip, | 395 static GrStencilFunc ConvertStencilFunc(bool stencilInClip, |
| 396 GrStencilFunc func); | 396 GrStencilFunc func); |
| 397 static void ConvertStencilFuncAndMask(GrStencilFunc func, | 397 static void ConvertStencilFuncAndMask(GrStencilFunc func, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 ResetTimestamp fResetTi
mestamp; | 495 ResetTimestamp fResetTi
mestamp; |
| 496 uint32_t fResetBi
ts; | 496 uint32_t fResetBi
ts; |
| 497 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 497 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 498 GrContext* fContext
; | 498 GrContext* fContext
; |
| 499 | 499 |
| 500 friend class GrPathRendering; | 500 friend class GrPathRendering; |
| 501 typedef SkRefCnt INHERITED; | 501 typedef SkRefCnt INHERITED; |
| 502 }; | 502 }; |
| 503 | 503 |
| 504 #endif | 504 #endif |
| OLD | NEW |