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

Unified Diff: src/fonts/SkTestScalerContext.cpp

Issue 1880873002: Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.c… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/fonts/SkTestScalerContext.h ('k') | src/gpu/GrPathRendering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/fonts/SkTestScalerContext.cpp
diff --git a/src/fonts/SkTestScalerContext.cpp b/src/fonts/SkTestScalerContext.cpp
index 600e2de609c49fde3d31394742118faee1d4d045..a2748564a56cca6722d165c3fb224fee80712eb9 100644
--- a/src/fonts/SkTestScalerContext.cpp
+++ b/src/fonts/SkTestScalerContext.cpp
@@ -183,8 +183,9 @@ SkASSERT(0); // incomplete
class SkTestScalerContext : public SkScalerContext {
public:
- SkTestScalerContext(SkTestTypeface* face, const SkDescriptor* desc)
- : SkScalerContext(face, desc)
+ SkTestScalerContext(SkTestTypeface* face, const SkScalerContextEffects& effects,
+ const SkDescriptor* desc)
+ : SkScalerContext(face, effects, desc)
, fFace(face)
{
fRec.getSingleMatrix(&fMatrix);
@@ -283,6 +284,7 @@ private:
SkMatrix fMatrix;
};
-SkScalerContext* SkTestTypeface::onCreateScalerContext(const SkDescriptor* desc) const {
- return new SkTestScalerContext(const_cast<SkTestTypeface*>(this), desc);
+SkScalerContext* SkTestTypeface::onCreateScalerContext(const SkScalerContextEffects& effects,
+ const SkDescriptor* desc) const {
+ return new SkTestScalerContext(const_cast<SkTestTypeface*>(this), effects, desc);
}
« no previous file with comments | « src/fonts/SkTestScalerContext.h ('k') | src/gpu/GrPathRendering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698