Make text context responsible for setting GrPaint on GrDrawState.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/16928010
git-svn-id: http://skia.googlecode.com/svn/trunk@9588 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
index f114ccc..2a81e26 100644
--- a/src/gpu/GrDrawState.cpp
+++ b/src/gpu/GrDrawState.cpp
@@ -64,6 +64,9 @@
fCommon.fStencilSettings.setDisabled();
this->resetStateFlags();
+ // Enable the clip bit
+ this->enableState(GrDrawState::kClip_StateBit);
+
this->setColor(paint.getColor());
this->setState(GrDrawState::kDither_StateBit, paint.isDither());
this->setState(GrDrawState::kHWAntialias_StateBit, paint.isAntiAlias());