aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPipelineBuilder.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-07-21 09:21:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-21 09:21:04 -0700
commit5fa7f30331585f78cf0f81ac185abbff1fee1152 (patch)
treed7e66b1fc8927769571675b7f677d14284c6f264 /src/gpu/GrPipelineBuilder.h
parent0ae097d116f4332be02a135ffc99c162473dee6a (diff)
Remove DrawFace enum from GrPipelineBuilder
Diffstat (limited to 'src/gpu/GrPipelineBuilder.h')
-rw-r--r--src/gpu/GrPipelineBuilder.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h
index 06c843fe53..dca7f36034 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -266,27 +266,19 @@ public:
/// @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).
*/
- DrawFace getDrawFace() const { return fDrawFace; }
+ GrDrawFace getDrawFace() const { return fDrawFace; }
/**
* Controls whether clockwise, counterclockwise, or both faces are drawn.
* @param face the face(s) to draw.
*/
- void setDrawFace(DrawFace face) {
- SkASSERT(kInvalid_DrawFace != face);
+ void setDrawFace(GrDrawFace face) {
+ SkASSERT(GrDrawFace::kInvalid != face);
fDrawFace = face;
}
@@ -305,7 +297,7 @@ private:
uint32_t fFlags;
const GrUserStencilSettings* fUserStencilSettings;
- DrawFace fDrawFace;
+ GrDrawFace fDrawFace;
mutable sk_sp<GrXPFactory> fXPFactory;
FragmentProcessorArray fColorFragmentProcessors;
FragmentProcessorArray fCoverageFragmentProcessors;