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

Unified Diff: src/gpu/GrGpu.cpp

Issue 563283004: Use per-typeface sets of glyphs for nvpr text (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_glyphmemorypath
Patch Set: Created 6 years, 3 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/GrGpu.cpp
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index 667cae9c44649611f14bd3497e9fc7efa6706bed..a8177b57702bf24e14bdccc412fcd335478e3926 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -170,9 +170,11 @@ GrPath* GrGpu::createPath(const SkPath& path, const SkStrokeRec& stroke) {
return this->pathRendering()->createPath(path, stroke);
}
-GrPathRange* GrGpu::createPathRange(size_t size, const SkStrokeRec& stroke) {
+GrPathRange* GrGpu::createGlyphs(const SkTypeface* typeface,
+ const SkDescriptor* desc,
+ const SkStrokeRec& stroke) {
this->handleDirtyContext();
- return this->pathRendering()->createPathRange(size, stroke);
+ return this->pathRendering()->createGlyphs(typeface, desc, stroke);
}
void GrGpu::clear(const SkIRect* rect,
@@ -389,6 +391,7 @@ void GrGpu::onDrawPaths(const GrPathRange* pathRange,
return;
}
+ pathRange->willDrawPaths(indices, count);
this->pathRendering()->drawPaths(pathRange, indices, count, transforms, transformsType, fill);
}

Powered by Google App Engine
This is Rietveld 408576698