diff options
author | 2014-01-24 14:38:27 +0000 | |
---|---|---|
committer | 2014-01-24 14:38:27 +0000 | |
commit | cc40f06db77a3a27f3d685c222086d245399bc0a (patch) | |
tree | bdde781340379b0307e2129c5694919f203e8c73 /src/gpu/GrTextContext.cpp | |
parent | 83d81c96de34950bdd84dc575997a250b685a3d6 (diff) |
Add factory class for generating various flavors of GrTextContext.
This is the first pass of making Gr*TextContext more generic and easily
subclassed. The next stage will be making GrBitmapTextContext and
GrDistanceFieldTextContext more similar by moving the SkDraw loop into
each subclass.
BUG=skia:2018
Committed: http://code.google.com/p/skia/source/detail?r=13142
R=bsalomon@google.com, reed@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/144283002
git-svn-id: http://skia.googlecode.com/svn/trunk@13165 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrTextContext.cpp')
-rw-r--r-- | src/gpu/GrTextContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp index 9e9162878d..77e98d2fd5 100644 --- a/src/gpu/GrTextContext.cpp +++ b/src/gpu/GrTextContext.cpp @@ -8,7 +8,8 @@ #include "GrTextContext.h" -GrTextContext::GrTextContext(GrContext* context, const GrPaint& paint) : fPaint(paint) { +GrTextContext::GrTextContext(GrContext* context, const GrPaint& paint, + const SkPaint& skPaint) : fPaint(paint), fSkPaint(skPaint) { fContext = context; const GrClipData* clipData = context->getClip(); |