Index: src/gpu/GrDistanceFieldTextContext.cpp |
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
index 47d408f7f8969270ab01beb53c7386931a82dd44..d2b34e68a01b1940f8e5ad51f48fb905f2e41ee0 100755 |
--- a/src/gpu/GrDistanceFieldTextContext.cpp |
+++ b/src/gpu/GrDistanceFieldTextContext.cpp |
@@ -112,9 +112,9 @@ |
return true; |
} |
-inline void GrDistanceFieldTextContext::init(GrRenderTarget* rt, const GrClip& clip, |
- const GrPaint& paint, const SkPaint& skPaint) { |
- GrTextContext::init(rt, clip, paint, skPaint); |
+inline void GrDistanceFieldTextContext::init(GrRenderTarget* rt, const GrPaint& paint, |
+ const SkPaint& skPaint) { |
+ GrTextContext::init(rt, paint, skPaint); |
fStrike = NULL; |
@@ -207,8 +207,7 @@ |
} |
} |
-void GrDistanceFieldTextContext::onDrawText(GrRenderTarget* rt, const GrClip& clip, |
- const GrPaint& paint, |
+void GrDistanceFieldTextContext::onDrawText(GrRenderTarget* rt, const GrPaint& paint, |
const SkPaint& skPaint, const SkMatrix& viewMatrix, |
const char text[], size_t byteLength, |
SkScalar x, SkScalar y) { |
@@ -269,12 +268,11 @@ |
y -= alignY; |
SkPoint offset = SkPoint::Make(x, y); |
- this->drawPosText(rt, clip, paint, skPaint, viewMatrix, text, byteLength, positions.begin(), 2, |
+ this->drawPosText(rt, paint, skPaint, viewMatrix, text, byteLength, positions.begin(), 2, |
offset); |
} |
-void GrDistanceFieldTextContext::onDrawPosText(GrRenderTarget* rt, const GrClip& clip, |
- const GrPaint& paint, |
+void GrDistanceFieldTextContext::onDrawPosText(GrRenderTarget* rt, const GrPaint& paint, |
const SkPaint& skPaint, const SkMatrix& viewMatrix, |
const char text[], size_t byteLength, |
const SkScalar pos[], int scalarsPerPosition, |
@@ -289,7 +287,7 @@ |
} |
fViewMatrix = viewMatrix; |
- this->init(rt, clip, paint, skPaint); |
+ this->init(rt, paint, skPaint); |
SkDrawCacheProc glyphCacheProc = fSkPaint.getDrawCacheProc(); |
@@ -364,7 +362,7 @@ |
this->finish(); |
if (fallbackTxt.count() > 0) { |
- fFallbackTextContext->drawPosText(rt, clip, paint, skPaint, viewMatrix, fallbackTxt.begin(), |
+ fFallbackTextContext->drawPosText(rt, paint, skPaint, viewMatrix, fallbackTxt.begin(), |
fallbackTxt.count(), fallbackPos.begin(), |
scalarsPerPosition, offset); |
} |
@@ -573,7 +571,7 @@ |
tmpPath.transform(ctm); |
GrStrokeInfo strokeInfo(SkStrokeRec::kFill_InitStyle); |
- fContext->drawPath(fRenderTarget, fClip, fPaint, fViewMatrix, tmpPath, strokeInfo); |
+ fContext->drawPath(fRenderTarget, fPaint, fViewMatrix, tmpPath, strokeInfo); |
// remove this glyph from the vertices we need to allocate |
fTotalVertexCount -= kVerticesPerGlyph; |