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

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 1320323004: Make GrTextContext no longer store a GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add newline Created 5 years, 4 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
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 4b86fd084a90745367daa88d92fca0fd0d0e68aa..b11518f018fe89d86444785b053291c6ebc1b7e3 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -65,11 +65,11 @@ GrTextContext* GrDrawContext::createTextContext(GrRenderTarget* renderTarget,
fSurfaceProps.isUseDeviceIndependentFonts()) {
GrStencilAttachment* sb = renderTarget->renderTargetPriv().attachStencilAttachment();
if (sb) {
- return GrStencilAndCoverTextContext::Create(fContext, this, surfaceProps);
+ return GrStencilAndCoverTextContext::Create(fContext, surfaceProps);
}
}
- return GrAtlasTextContext::Create(fContext, this, surfaceProps);
+ return GrAtlasTextContext::Create(fContext, surfaceProps);
}
void GrDrawContext::drawText(GrRenderTarget* rt, const GrClip& clip, const GrPaint& grPaint,
@@ -81,7 +81,7 @@ void GrDrawContext::drawText(GrRenderTarget* rt, const GrClip& clip, const GrPai
fTextContext = this->createTextContext(rt, fSurfaceProps);
}
- fTextContext->drawText(rt, clip, grPaint, skPaint, viewMatrix,
+ fTextContext->drawText(this, rt, clip, grPaint, skPaint, viewMatrix,
text, byteLength, x, y, clipBounds);
}
@@ -95,8 +95,8 @@ void GrDrawContext::drawPosText(GrRenderTarget* rt, const GrClip& clip, const Gr
fTextContext = this->createTextContext(rt, fSurfaceProps);
}
- fTextContext->drawPosText(rt, clip, grPaint, skPaint, viewMatrix, text, byteLength,
- pos, scalarsPerPosition, offset, clipBounds);
+ fTextContext->drawPosText(this, rt, clip, grPaint, skPaint, viewMatrix, text, byteLength,
+ pos, scalarsPerPosition, offset, clipBounds);
}
void GrDrawContext::drawTextBlob(GrRenderTarget* rt, const GrClip& clip, const SkPaint& skPaint,
@@ -107,7 +107,8 @@ void GrDrawContext::drawTextBlob(GrRenderTarget* rt, const GrClip& clip, const S
fTextContext = this->createTextContext(rt, fSurfaceProps);
}
- fTextContext->drawTextBlob(rt, clip, skPaint, viewMatrix, blob, x, y, filter, clipBounds);
+ fTextContext->drawTextBlob(this, rt,
+ clip, skPaint, viewMatrix, blob, x, y, filter, clipBounds);
}
void GrDrawContext::drawPaths(GrPipelineBuilder* pipelineBuilder,
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698