Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index 63a56ddd2d42bebd0bf4a38190a2521d0f9652a4..e38b913a2270c90d8e15908e84545c5da02cac7d 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -10,6 +10,7 @@ |
#include "GrPipelineBuilder.h" |
#include "GrProgramDesc.h" |
+#include "GrStencil.h" |
#include "GrSwizzle.h" |
#include "GrAllocator.h" |
#include "GrTextureParamsAdjuster.h" |
@@ -33,7 +34,6 @@ |
class GrPrimitiveProcessor; |
class GrRenderTarget; |
class GrStencilAttachment; |
-class GrStencilSettings; |
class GrSurface; |
class GrTexture; |
@@ -485,6 +485,17 @@ |
virtual void resetShaderCacheForTesting() const {} |
protected: |
+ // Functions used to map clip-respecting stencil tests into normal |
+ // stencil funcs supported by GPUs. |
+ static GrStencilFunc ConvertStencilFunc(bool stencilInClip, |
+ GrStencilFunc func); |
+ static void ConvertStencilFuncAndMask(GrStencilFunc func, |
+ bool clipInStencil, |
+ unsigned int clipBit, |
+ unsigned int userBits, |
+ unsigned int* ref, |
+ unsigned int* mask); |
+ |
static void ElevateDrawPreference(GrGpu::DrawPreference* preference, |
GrGpu::DrawPreference elevation) { |
GR_STATIC_ASSERT(GrGpu::kCallerPrefersDraw_DrawPreference > GrGpu::kNoDraw_DrawPreference); |