Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: src/gpu/GrTextContext.cpp

Issue 1486323002: Remove plumbing of clipRect in GrAtlasTextContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove dead code Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrTextContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTextContext.cpp
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp
index 5cfcf64c1abe184f9534d9d2a45f8246ca0f5841..b1bae56ed5a5b0551f3d6adb2f2b19732a8e2acd 100644
--- a/src/gpu/GrTextContext.cpp
+++ b/src/gpu/GrTextContext.cpp
@@ -42,7 +42,7 @@ void GrTextContext::drawText(GrDrawContext* dc, GrRenderTarget* rt,
GrTextContext* textContext = this;
do {
- if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) {
+ if (textContext->canDraw(skPaint, viewMatrix)) {
textContext->onDrawText(dc, rt, clip, paint, skPaint, viewMatrix,
text, byteLength, x, y, clipBounds);
return;
@@ -51,8 +51,7 @@ void GrTextContext::drawText(GrDrawContext* dc, GrRenderTarget* rt,
} while (textContext);
// fall back to drawing as a path
- this->drawTextAsPath(dc, clip, skPaint, viewMatrix,
- text, byteLength, x, y, clipBounds);
+ this->drawTextAsPath(dc, clip, skPaint, viewMatrix, text, byteLength, x, y, clipBounds);
}
void GrTextContext::drawPosText(GrDrawContext* dc, GrRenderTarget* rt,
@@ -67,7 +66,7 @@ void GrTextContext::drawPosText(GrDrawContext* dc, GrRenderTarget* rt,
GrTextContext* textContext = this;
do {
- if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) {
+ if (textContext->canDraw(skPaint, viewMatrix)) {
textContext->onDrawPosText(dc, rt, clip, paint, skPaint, viewMatrix,
text, byteLength, pos,
scalarsPerPosition, offset, clipBounds);
« no previous file with comments | « src/gpu/GrTextContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698