diff options
author | Brian Salomon <bsalomon@google.com> | 2017-11-06 16:26:02 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-07 01:56:36 +0000 |
commit | 18923f9a2e83675aecba7561f5095429fb467633 (patch) | |
tree | e59e9a98ee1f7422ecf641cc998a977f28151a70 /gn/gpu.gni | |
parent | 75a1377e54fb44c84a2712d9c678b1b448a9cffe (diff) |
Make GrAtlasTextBlob return to caller when a flush is required during subrun tessellation.
The old code used a helper object in the tessellation code that called flush() on GrAtlasTextOp.
A confusing aspect of this was that the pre-flush vertex data generated for the sub run was copied
to the op's vertex buffer after flush() had already recorded the draw that read the data.
The new code adds a tessellator nested helper class to GrAtlasTextBlob. The helper exits early if
a flush is required, the op performs the flush, and then the helper is invoked again until
tessellation is complete.
This also changes the blob object to use char* instead of unsigned char* for its vertex pointers.
Change-Id: I31bed251435f13b2172e6f5829ba437b882dd44d
Reviewed-on: https://skia-review.googlesource.com/67856
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gn/gpu.gni')
-rw-r--r-- | gn/gpu.gni | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn/gpu.gni b/gn/gpu.gni index ef6031246c..e67b2acb85 100644 --- a/gn/gpu.gni +++ b/gn/gpu.gni @@ -387,7 +387,7 @@ skia_gpu_sources = [ "$_src/gpu/text/GrAtlasGlyphCache.cpp", "$_src/gpu/text/GrAtlasGlyphCache.h", "$_src/gpu/text/GrAtlasTextBlob.cpp", - "$_src/gpu/text/GrAtlasTextBlob_regenInOp.cpp", + "$_src/gpu/text/GrAtlasTextBlobVertexRegenerator.cpp", "$_src/gpu/text/GrAtlasTextBlob.h", "$_src/gpu/text/GrAtlasTextContext.cpp", "$_src/gpu/text/GrAtlasTextContext.h", |