diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-06 15:32:52 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-06 15:32:52 +0000 |
commit | 39ee0ffa72fbd5df6d3ec6db4fdad0c1bc3946fd (patch) | |
tree | 02cd7e93425776b39d82b5f4673832d058e57502 /src/gpu/GrTesselatedPathRenderer.cpp | |
parent | b0c5e078d8af06ec3ce5ea2cdc86c2f1084457a2 (diff) |
Prep #1 for making GrDrawState a class
Review URL: http://codereview.appspot.com/5437138/
git-svn-id: http://skia.googlecode.com/svn/trunk@2808 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrTesselatedPathRenderer.cpp')
-rw-r--r-- | src/gpu/GrTesselatedPathRenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrTesselatedPathRenderer.cpp b/src/gpu/GrTesselatedPathRenderer.cpp index 51cea10ae7..b6612d1d29 100644 --- a/src/gpu/GrTesselatedPathRenderer.cpp +++ b/src/gpu/GrTesselatedPathRenderer.cpp @@ -346,7 +346,7 @@ static size_t computeEdgesAndIntersect(const GrMatrix& matrix, return edges->count(); } -void GrTesselatedPathRenderer::drawPath(GrDrawTarget::StageBitfield stages) { +void GrTesselatedPathRenderer::drawPath(GrDrawState::StageMask stageMask) { GrDrawTarget::AutoStateRestore asr(fTarget); // face culling doesn't make sense here GrAssert(GrDrawState::kBoth_DrawFace == fTarget->getDrawFace()); @@ -362,7 +362,7 @@ void GrTesselatedPathRenderer::drawPath(GrDrawTarget::StageBitfield stages) { GrVertexLayout layout = 0; for (int s = 0; s < GrDrawState::kNumStages; ++s) { - if ((1 << s) & stages) { + if ((1 << s) & stageMask) { layout |= GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(s); } } |