diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-27 11:26:10 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-27 11:26:10 +0000 |
commit | dcb8ef9e866b2674e8f9a70b761fcc4fec87dbbe (patch) | |
tree | 3ebbd306fe2550edd16e14619f464435fb257544 /gyp | |
parent | db35dab49e0e6bf16ccad5052bf6e6826daad27d (diff) |
Implement text rendering with NVPR
Use path rendering to render the text from outlines if supported by the
GPU. Implement this in GrStencilAndCoverTextContext by copying large
chunks of code from GrBitmapTextContext (drawText) and
GrDistanceFieldTextContext (drawPosText).
The drawing is implemented with "instanced" path drawing
functions.
Moves the creation of the "main" text context from SkGpuDevice to the
GrContext::createTextContext. This is done because the decision of which
text renderer is optimal can be made only with the internal
implementation-specific information of the context.
R=jvanverth@google.com, bsalomon@google.com
Author: kkinnunen@nvidia.com
Review URL: https://codereview.chromium.org/196133014
git-svn-id: http://skia.googlecode.com/svn/trunk@13962 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/gpu.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gyp/gpu.gypi b/gyp/gpu.gypi index b92ad5bb99..ebb3d0a52c 100644 --- a/gyp/gpu.gypi +++ b/gyp/gpu.gypi @@ -110,6 +110,8 @@ '<(skia_src_path)/gpu/GrStencil.h', '<(skia_src_path)/gpu/GrStencilAndCoverPathRenderer.cpp', '<(skia_src_path)/gpu/GrStencilAndCoverPathRenderer.h', + '<(skia_src_path)/gpu/GrStencilAndCoverTextContext.cpp', + '<(skia_src_path)/gpu/GrStencilAndCoverTextContext.h', '<(skia_src_path)/gpu/GrStencilBuffer.cpp', '<(skia_src_path)/gpu/GrStencilBuffer.h', '<(skia_src_path)/gpu/GrTBSearch.h', |