diff options
author | cdalton <cdalton@nvidia.com> | 2015-10-05 15:56:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-05 15:56:34 -0700 |
commit | d1201058bf73a0a5c2e19c0cc142082b1827461c (patch) | |
tree | e297f50c6a506cd28da803f5dce8640728f06381 /src/gpu/GrPathRendering.h | |
parent | cdd7907a3d7daf195f76e33af5dab20c83fe715f (diff) |
Make path range loading explicit
Requires the caller to explicitly preload paths within a range before
calling drawPaths. This allows us to remove the implicit lazy load,
thereby eliminating a redundant check on every redraw of a text blob.
BUG=skia:
Review URL: https://codereview.chromium.org/1382013002
Diffstat (limited to 'src/gpu/GrPathRendering.h')
-rw-r--r-- | src/gpu/GrPathRendering.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrPathRendering.h b/src/gpu/GrPathRendering.h index 47c9a46f83..a2e9c0295b 100644 --- a/src/gpu/GrPathRendering.h +++ b/src/gpu/GrPathRendering.h @@ -179,7 +179,9 @@ public: if (GrXferBarrierType barrierType = args.fPipeline->xferBarrierType(*fGpu->caps())) { fGpu->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); } - pathRange->willDrawPaths(indices, indexType, count); +#ifdef SK_DEBUG + pathRange->assertPathsLoaded(indices, indexType, count); +#endif this->onDrawPaths(args, pathRange, indices, indexType, transformValues, transformType, count); } |