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

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 1701013002: Create GrPathRenderingDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months 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
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index d971f58ece1ce20156cf6a225e7b263ec8030966..157d14a36339c1542c30486e3032fb4db7c509f7 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -117,7 +117,7 @@ void GrDrawContext::drawText(const GrClip& clip, const GrPaint& grPaint,
GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawText");
if (!fTextContext) {
- fTextContext = fDrawingManager->textContext(fSurfaceProps, fRenderTarget);
+ fTextContext = GrAtlasTextContext::Create();
}
fTextContext->drawText(fContext, this, clip, grPaint, skPaint, viewMatrix, fSurfaceProps,
@@ -136,7 +136,7 @@ void GrDrawContext::drawPosText(const GrClip& clip, const GrPaint& grPaint,
GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawPosText");
if (!fTextContext) {
- fTextContext = fDrawingManager->textContext(fSurfaceProps, fRenderTarget);
+ fTextContext = GrAtlasTextContext::Create();
}
fTextContext->drawPosText(fContext, this, clip, grPaint, skPaint, viewMatrix, fSurfaceProps,
@@ -154,7 +154,7 @@ void GrDrawContext::drawTextBlob(const GrClip& clip, const SkPaint& skPaint,
GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawTextBlob");
if (!fTextContext) {
- fTextContext = fDrawingManager->textContext(fSurfaceProps, fRenderTarget);
+ fTextContext = GrAtlasTextContext::Create();
}
fTextContext->drawTextBlob(fContext, this, clip, skPaint, viewMatrix, fSurfaceProps, blob, x,

Powered by Google App Engine
This is Rietveld 408576698