| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index d0c32eb77c68693c525b04726c97c67ee0db9273..ca068fcc30716cadd5daef5d1aa4b1a687b43ff6 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -167,11 +167,6 @@ void SkGpuDevice::initFromRenderTarget(GrContext* context,
|
| fContext = context;
|
| fContext->ref();
|
|
|
| - bool useDFFonts = !!(flags & kDFFonts_Flag);
|
| - fMainTextContext = SkNEW_ARGS(GrDistanceFieldTextContext, (fContext, fLeakyProperties,
|
| - useDFFonts));
|
| - fFallbackTextContext = SkNEW_ARGS(GrBitmapTextContext, (fContext, fLeakyProperties));
|
| -
|
| fRenderTarget = NULL;
|
| fNeedClear = flags & kNeedClear_Flag;
|
|
|
| @@ -192,6 +187,10 @@ void SkGpuDevice::initFromRenderTarget(GrContext* context,
|
| (surface->info(), surface, SkToBool(flags & kCached_Flag)));
|
|
|
| this->setPixelRef(pr)->unref();
|
| +
|
| + bool useDFFonts = !!(flags & kDFFonts_Flag);
|
| + fMainTextContext = fContext->createTextContext(fRenderTarget, fLeakyProperties, useDFFonts);
|
| + fFallbackTextContext = SkNEW_ARGS(GrBitmapTextContext, (fContext, fLeakyProperties));
|
| }
|
|
|
| SkGpuDevice* SkGpuDevice::Create(GrContext* context, const SkImageInfo& origInfo,
|
|
|