Index: src/gpu/GrPipelineBuilder.h |
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h |
index dca7f3603483c7ed802ca24756f6eb8bb41dc5fc..06c843fe539237b438214ba8c03d2c6554741925 100644 |
--- a/src/gpu/GrPipelineBuilder.h |
+++ b/src/gpu/GrPipelineBuilder.h |
@@ -266,19 +266,27 @@ |
/// @name Face Culling |
//// |
+ enum DrawFace { |
+ kInvalid_DrawFace = -1, |
+ |
+ kBoth_DrawFace, |
+ kCCW_DrawFace, |
+ kCW_DrawFace, |
+ }; |
+ |
/** |
* Gets whether the target is drawing clockwise, counterclockwise, |
* or both faces. |
* @return the current draw face(s). |
*/ |
- GrDrawFace getDrawFace() const { return fDrawFace; } |
+ DrawFace getDrawFace() const { return fDrawFace; } |
/** |
* Controls whether clockwise, counterclockwise, or both faces are drawn. |
* @param face the face(s) to draw. |
*/ |
- void setDrawFace(GrDrawFace face) { |
- SkASSERT(GrDrawFace::kInvalid != face); |
+ void setDrawFace(DrawFace face) { |
+ SkASSERT(kInvalid_DrawFace != face); |
fDrawFace = face; |
} |
@@ -297,7 +305,7 @@ |
uint32_t fFlags; |
const GrUserStencilSettings* fUserStencilSettings; |
- GrDrawFace fDrawFace; |
+ DrawFace fDrawFace; |
mutable sk_sp<GrXPFactory> fXPFactory; |
FragmentProcessorArray fColorFragmentProcessors; |
FragmentProcessorArray fCoverageFragmentProcessors; |