reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 1 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 2 | * Copyright 2010 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
tomhudson@google.com | 375ff85 | 2012-06-29 18:37:57 +0000 | [diff] [blame] | 8 | #include "GrTextContext.h" |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 9 | #include "GrBlurUtils.h" |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 10 | #include "GrContext.h" |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 11 | #include "GrDrawContext.h" |
joshualitt | 570d2f8 | 2015-02-25 13:19:48 -0800 | [diff] [blame] | 12 | #include "GrFontScaler.h" |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 13 | |
| 14 | #include "SkAutoKern.h" |
joshualitt | 9c32818 | 2015-03-23 08:13:04 -0700 | [diff] [blame] | 15 | #include "SkDrawFilter.h" |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 16 | #include "SkDrawProcs.h" |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 17 | #include "SkGlyphCache.h" |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 18 | #include "SkGpuDevice.h" |
joshualitt | 9c32818 | 2015-03-23 08:13:04 -0700 | [diff] [blame] | 19 | #include "SkTextBlob.h" |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 20 | #include "SkTextMapStateProc.h" |
| 21 | #include "SkTextToPathIter.h" |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 22 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 23 | GrTextContext::GrTextContext(GrContext* context, const SkDeviceProperties& properties) |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 24 | : fFallbackTextContext(NULL) |
| 25 | , fContext(context) |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 26 | , fDeviceProperties(properties) { |
commit-bot@chromium.org | cbbc481 | 2014-01-30 22:05:47 +0000 | [diff] [blame] | 27 | } |
tomhudson@google.com | 375ff85 | 2012-06-29 18:37:57 +0000 | [diff] [blame] | 28 | |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 29 | GrTextContext::~GrTextContext() { |
| 30 | SkDELETE(fFallbackTextContext); |
| 31 | } |
| 32 | |
joshualitt | 570d2f8 | 2015-02-25 13:19:48 -0800 | [diff] [blame] | 33 | void GrTextContext::init(GrRenderTarget* rt, const GrClip& clip, const GrPaint& grPaint, |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 34 | const SkPaint& skPaint, const SkIRect& regionClipBounds) { |
joshualitt | 570d2f8 | 2015-02-25 13:19:48 -0800 | [diff] [blame] | 35 | fClip = clip; |
robertphillips@google.com | beb1af7 | 2012-07-26 18:52:16 +0000 | [diff] [blame] | 36 | |
joshualitt | 25d9c15 | 2015-02-18 12:29:52 -0800 | [diff] [blame] | 37 | fRenderTarget.reset(SkRef(rt)); |
| 38 | |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 39 | fRegionClipBounds = regionClipBounds; |
joshualitt | 570d2f8 | 2015-02-25 13:19:48 -0800 | [diff] [blame] | 40 | fClip.getConservativeBounds(fRenderTarget->width(), fRenderTarget->height(), &fClipRect); |
robertphillips@google.com | beb1af7 | 2012-07-26 18:52:16 +0000 | [diff] [blame] | 41 | |
commit-bot@chromium.org | cbbc481 | 2014-01-30 22:05:47 +0000 | [diff] [blame] | 42 | fPaint = grPaint; |
| 43 | fSkPaint = skPaint; |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 44 | } |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 45 | |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 46 | void GrTextContext::drawText(GrRenderTarget* rt, const GrClip& clip, const GrPaint& paint, |
joshualitt | 570d2f8 | 2015-02-25 13:19:48 -0800 | [diff] [blame] | 47 | const SkPaint& skPaint, const SkMatrix& viewMatrix, |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 48 | const char text[], size_t byteLength, |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 49 | SkScalar x, SkScalar y, const SkIRect& clipBounds) { |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 50 | if (fContext->abandoned()) { |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 51 | return; |
joshualitt | 5f5a8d7 | 2015-02-25 14:09:45 -0800 | [diff] [blame] | 52 | } |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 53 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 54 | GrDrawContext* drawContext = fContext->drawContext(); |
| 55 | if (!drawContext) { |
| 56 | return; |
| 57 | } |
| 58 | |
jvanverth | aab626c | 2014-10-16 08:04:39 -0700 | [diff] [blame] | 59 | GrTextContext* textContext = this; |
| 60 | do { |
cdalton | e68f736 | 2015-03-25 14:02:37 -0700 | [diff] [blame] | 61 | if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) { |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 62 | textContext->onDrawText(drawContext, rt, clip, paint, skPaint, viewMatrix, |
| 63 | text, byteLength, x, y, clipBounds); |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 64 | return; |
jvanverth | aab626c | 2014-10-16 08:04:39 -0700 | [diff] [blame] | 65 | } |
| 66 | textContext = textContext->fFallbackTextContext; |
| 67 | } while (textContext); |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 68 | |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 69 | // fall back to drawing as a path |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 70 | this->drawTextAsPath(drawContext, rt, clip, skPaint, viewMatrix, |
| 71 | text, byteLength, x, y, clipBounds); |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 72 | } |
| 73 | |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 74 | void GrTextContext::drawPosText(GrRenderTarget* rt, const GrClip& clip, const GrPaint& paint, |
joshualitt | 570d2f8 | 2015-02-25 13:19:48 -0800 | [diff] [blame] | 75 | const SkPaint& skPaint, const SkMatrix& viewMatrix, |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 76 | const char text[], size_t byteLength, |
| 77 | const SkScalar pos[], int scalarsPerPosition, |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 78 | const SkPoint& offset, const SkIRect& clipBounds) { |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 79 | if (fContext->abandoned()) { |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 80 | return; |
joshualitt | 5f5a8d7 | 2015-02-25 14:09:45 -0800 | [diff] [blame] | 81 | } |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 82 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 83 | GrDrawContext* drawContext = fContext->drawContext(); |
| 84 | if (!drawContext) { |
| 85 | return; |
| 86 | } |
| 87 | |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 88 | GrTextContext* textContext = this; |
| 89 | do { |
cdalton | e68f736 | 2015-03-25 14:02:37 -0700 | [diff] [blame] | 90 | if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) { |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 91 | textContext->onDrawPosText(drawContext, rt, clip, paint, skPaint, viewMatrix, |
| 92 | text, byteLength, pos, |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 93 | scalarsPerPosition, offset, clipBounds); |
| 94 | return; |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 95 | } |
| 96 | textContext = textContext->fFallbackTextContext; |
| 97 | } while (textContext); |
| 98 | |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 99 | // fall back to drawing as a path |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 100 | this->drawPosTextAsPath(drawContext, rt, clip, skPaint, viewMatrix, text, byteLength, pos, |
| 101 | scalarsPerPosition, offset, clipBounds); |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 102 | } |
| 103 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 104 | void GrTextContext::drawTextBlob(SkGpuDevice* gpuDevice, GrRenderTarget* rt, |
| 105 | const GrClip& clip, const SkPaint& skPaint, |
joshualitt | 9c32818 | 2015-03-23 08:13:04 -0700 | [diff] [blame] | 106 | const SkMatrix& viewMatrix, const SkTextBlob* blob, |
| 107 | SkScalar x, SkScalar y, |
| 108 | SkDrawFilter* drawFilter, const SkIRect& clipBounds) { |
cdalton | e68f736 | 2015-03-25 14:02:37 -0700 | [diff] [blame] | 109 | SkPaint runPaint = skPaint; |
joshualitt | 9c32818 | 2015-03-23 08:13:04 -0700 | [diff] [blame] | 110 | |
cdalton | e68f736 | 2015-03-25 14:02:37 -0700 | [diff] [blame] | 111 | SkTextBlob::RunIterator it(blob); |
| 112 | for (;!it.done(); it.next()) { |
| 113 | size_t textLen = it.glyphCount() * sizeof(uint16_t); |
| 114 | const SkPoint& offset = it.offset(); |
| 115 | // applyFontToPaint() always overwrites the exact same attributes, |
| 116 | // so it is safe to not re-seed the paint for this reason. |
| 117 | it.applyFontToPaint(&runPaint); |
| 118 | |
| 119 | if (drawFilter && !drawFilter->filter(&runPaint, SkDrawFilter::kText_Type)) { |
| 120 | // A false return from filter() means we should abort the current draw. |
| 121 | runPaint = skPaint; |
| 122 | continue; |
joshualitt | 9c32818 | 2015-03-23 08:13:04 -0700 | [diff] [blame] | 123 | } |
cdalton | e68f736 | 2015-03-25 14:02:37 -0700 | [diff] [blame] | 124 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 125 | runPaint.setFlags(gpuDevice->filterTextFlags(runPaint)); |
cdalton | e68f736 | 2015-03-25 14:02:37 -0700 | [diff] [blame] | 126 | |
| 127 | GrPaint grPaint; |
bsalomon | bed83a6 | 2015-04-15 14:18:34 -0700 | [diff] [blame] | 128 | if (!SkPaint2GrPaint(fContext, fRenderTarget, runPaint, viewMatrix, true, &grPaint)) { |
| 129 | return; |
| 130 | } |
cdalton | e68f736 | 2015-03-25 14:02:37 -0700 | [diff] [blame] | 131 | |
| 132 | switch (it.positioning()) { |
| 133 | case SkTextBlob::kDefault_Positioning: |
| 134 | this->drawText(rt, clip, grPaint, runPaint, viewMatrix, (const char *)it.glyphs(), |
| 135 | textLen, x + offset.x(), y + offset.y(), clipBounds); |
| 136 | break; |
| 137 | case SkTextBlob::kHorizontal_Positioning: |
| 138 | this->drawPosText(rt, clip, grPaint, runPaint, viewMatrix, (const char*)it.glyphs(), |
| 139 | textLen, it.pos(), 1, SkPoint::Make(x, y + offset.y()), clipBounds); |
| 140 | break; |
| 141 | case SkTextBlob::kFull_Positioning: |
| 142 | this->drawPosText(rt, clip, grPaint, runPaint, viewMatrix, (const char*)it.glyphs(), |
| 143 | textLen, it.pos(), 2, SkPoint::Make(x, y), clipBounds); |
| 144 | break; |
| 145 | default: |
| 146 | SkFAIL("unhandled positioning mode"); |
| 147 | } |
| 148 | |
| 149 | if (drawFilter) { |
| 150 | // A draw filter may change the paint arbitrarily, so we must re-seed in this case. |
| 151 | runPaint = skPaint; |
| 152 | } |
| 153 | } |
joshualitt | 9c32818 | 2015-03-23 08:13:04 -0700 | [diff] [blame] | 154 | } |
| 155 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 156 | void GrTextContext::drawTextAsPath(GrDrawContext* drawContext, GrRenderTarget* rt, |
| 157 | const GrClip& clip, |
| 158 | const SkPaint& skPaint, const SkMatrix& viewMatrix, |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 159 | const char text[], size_t byteLength, SkScalar x, SkScalar y, |
| 160 | const SkIRect& clipBounds) { |
| 161 | SkTextToPathIter iter(text, byteLength, skPaint, true); |
| 162 | |
| 163 | SkMatrix matrix; |
| 164 | matrix.setScale(iter.getPathScale(), iter.getPathScale()); |
| 165 | matrix.postTranslate(x, y); |
| 166 | |
| 167 | const SkPath* iterPath; |
| 168 | SkScalar xpos, prevXPos = 0; |
| 169 | |
| 170 | while (iter.next(&iterPath, &xpos)) { |
| 171 | matrix.postTranslate(xpos - prevXPos, 0); |
| 172 | if (iterPath) { |
| 173 | const SkPaint& pnt = iter.getPaint(); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 174 | GrBlurUtils::drawPathWithMaskFilter(fContext, drawContext, rt, clip, *iterPath, |
| 175 | pnt, viewMatrix, &matrix, clipBounds, false); |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 176 | } |
| 177 | prevXPos = xpos; |
| 178 | } |
| 179 | } |
| 180 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 181 | void GrTextContext::drawPosTextAsPath(GrDrawContext* drawContext, GrRenderTarget* rt, |
| 182 | const GrClip& clip, |
| 183 | const SkPaint& origPaint, const SkMatrix& viewMatrix, |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 184 | const char text[], size_t byteLength, |
| 185 | const SkScalar pos[], int scalarsPerPosition, |
| 186 | const SkPoint& offset, const SkIRect& clipBounds) { |
| 187 | // setup our std paint, in hopes of getting hits in the cache |
| 188 | SkPaint paint(origPaint); |
| 189 | SkScalar matrixScale = paint.setupForAsPaths(); |
| 190 | |
| 191 | SkMatrix matrix; |
| 192 | matrix.setScale(matrixScale, matrixScale); |
| 193 | |
| 194 | // Temporarily jam in kFill, so we only ever ask for the raw outline from the cache. |
| 195 | paint.setStyle(SkPaint::kFill_Style); |
| 196 | paint.setPathEffect(NULL); |
| 197 | |
| 198 | SkDrawCacheProc glyphCacheProc = paint.getDrawCacheProc(); |
| 199 | SkAutoGlyphCache autoCache(paint, NULL, NULL); |
| 200 | SkGlyphCache* cache = autoCache.getCache(); |
| 201 | |
| 202 | const char* stop = text + byteLength; |
| 203 | SkTextAlignProc alignProc(paint.getTextAlign()); |
| 204 | SkTextMapStateProc tmsProc(SkMatrix::I(), offset, scalarsPerPosition); |
| 205 | |
| 206 | // Now restore the original settings, so we "draw" with whatever style/stroking. |
| 207 | paint.setStyle(origPaint.getStyle()); |
| 208 | paint.setPathEffect(origPaint.getPathEffect()); |
| 209 | |
| 210 | while (text < stop) { |
| 211 | const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); |
| 212 | if (glyph.fWidth) { |
| 213 | const SkPath* path = cache->findPath(glyph); |
| 214 | if (path) { |
| 215 | SkPoint tmsLoc; |
| 216 | tmsProc(pos, &tmsLoc); |
| 217 | SkPoint loc; |
| 218 | alignProc(tmsLoc, glyph, &loc); |
| 219 | |
| 220 | matrix[SkMatrix::kMTransX] = loc.fX; |
| 221 | matrix[SkMatrix::kMTransY] = loc.fY; |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame^] | 222 | GrBlurUtils::drawPathWithMaskFilter(fContext, drawContext, rt, clip, *path, paint, |
| 223 | viewMatrix, &matrix, clipBounds, false); |
joshualitt | 6e8cd96 | 2015-03-20 10:30:14 -0700 | [diff] [blame] | 224 | } |
| 225 | } |
| 226 | pos += scalarsPerPosition; |
| 227 | } |
| 228 | } |
jvanverth | 8c27a18 | 2014-10-14 08:45:50 -0700 | [diff] [blame] | 229 | |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 230 | //*** change to output positions? |
jvanverth | 73f1053 | 2014-10-23 11:57:12 -0700 | [diff] [blame] | 231 | int GrTextContext::MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 232 | const char text[], size_t byteLength, SkVector* stopVector) { |
| 233 | SkFixed x = 0, y = 0; |
| 234 | const char* stop = text + byteLength; |
skia.committer@gmail.com | e5d7015 | 2014-01-29 07:01:48 +0000 | [diff] [blame] | 235 | |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 236 | SkAutoKern autokern; |
skia.committer@gmail.com | e5d7015 | 2014-01-29 07:01:48 +0000 | [diff] [blame] | 237 | |
jvanverth | 73f1053 | 2014-10-23 11:57:12 -0700 | [diff] [blame] | 238 | int numGlyphs = 0; |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 239 | while (text < stop) { |
| 240 | // don't need x, y here, since all subpixel variants will have the |
| 241 | // same advance |
| 242 | const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); |
skia.committer@gmail.com | e5d7015 | 2014-01-29 07:01:48 +0000 | [diff] [blame] | 243 | |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 244 | x += autokern.adjust(glyph) + glyph.fAdvanceX; |
| 245 | y += glyph.fAdvanceY; |
jvanverth | 73f1053 | 2014-10-23 11:57:12 -0700 | [diff] [blame] | 246 | ++numGlyphs; |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 247 | } |
| 248 | stopVector->set(SkFixedToScalar(x), SkFixedToScalar(y)); |
skia.committer@gmail.com | e5d7015 | 2014-01-29 07:01:48 +0000 | [diff] [blame] | 249 | |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 250 | SkASSERT(text == stop); |
jvanverth | 73f1053 | 2014-10-23 11:57:12 -0700 | [diff] [blame] | 251 | |
| 252 | return numGlyphs; |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 253 | } |
| 254 | |
| 255 | static void GlyphCacheAuxProc(void* data) { |
| 256 | GrFontScaler* scaler = (GrFontScaler*)data; |
| 257 | SkSafeUnref(scaler); |
| 258 | } |
| 259 | |
| 260 | GrFontScaler* GrTextContext::GetGrFontScaler(SkGlyphCache* cache) { |
| 261 | void* auxData; |
| 262 | GrFontScaler* scaler = NULL; |
skia.committer@gmail.com | e5d7015 | 2014-01-29 07:01:48 +0000 | [diff] [blame] | 263 | |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 264 | if (cache->getAuxProcData(GlyphCacheAuxProc, &auxData)) { |
| 265 | scaler = (GrFontScaler*)auxData; |
| 266 | } |
| 267 | if (NULL == scaler) { |
jvanverth | 733f5f5 | 2014-07-11 19:45:16 -0700 | [diff] [blame] | 268 | scaler = SkNEW_ARGS(GrFontScaler, (cache)); |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 269 | cache->setAuxProc(GlyphCacheAuxProc, scaler); |
| 270 | } |
skia.committer@gmail.com | e5d7015 | 2014-01-29 07:01:48 +0000 | [diff] [blame] | 271 | |
commit-bot@chromium.org | e8612d9 | 2014-01-28 22:02:07 +0000 | [diff] [blame] | 272 | return scaler; |
| 273 | } |