diff options
author | 2016-07-21 09:21:04 -0700 | |
---|---|---|
committer | 2016-07-21 09:21:04 -0700 | |
commit | 5fa7f30331585f78cf0f81ac185abbff1fee1152 (patch) | |
tree | d7e66b1fc8927769571675b7f677d14284c6f264 /src/gpu/GrPipelineBuilder.h | |
parent | 0ae097d116f4332be02a135ffc99c162473dee6a (diff) |
Remove DrawFace enum from GrPipelineBuilder
This gets GrPipelineBuilder.h out of the headers
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2165283002
Committed: https://skia.googlesource.com/skia/+/da152ebb032c61bb2561bbb3e9a78037ad174d34
Review-Url: https://codereview.chromium.org/2165283002
Diffstat (limited to 'src/gpu/GrPipelineBuilder.h')
-rw-r--r-- | src/gpu/GrPipelineBuilder.h | 16 |
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; |