aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrTextBlobCache.h
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-03-14 10:08:33 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-14 14:44:13 +0000
commitc500d9bd0f55616963562617371fa0bb1011878e (patch)
treee7898836ddca73e031f965f975cbed8d9521c69f /src/gpu/text/GrTextBlobCache.h
parent98629efdde9236e444d7b3fa644eaab3a1301566 (diff)
Use SkTArray for mailbox polling
The mailbox uses SkTArray internally, so swapping is optimal when dest has no preallocated storage. Change-Id: Ic295f3707d07c97b1881e775cac3a23a6b2fef71 Reviewed-on: https://skia-review.googlesource.com/9641 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/gpu/text/GrTextBlobCache.h')
-rw-r--r--src/gpu/text/GrTextBlobCache.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/text/GrTextBlobCache.h b/src/gpu/text/GrTextBlobCache.h
index bf0e6d1245..87a3751bf8 100644
--- a/src/gpu/text/GrTextBlobCache.h
+++ b/src/gpu/text/GrTextBlobCache.h
@@ -169,8 +169,7 @@ private:
void checkPurge(GrAtlasTextBlob* blob = nullptr) {
// First, purge all stale blob IDs.
{
- // TODO: tweak poll to allow mem-movable arrays, and update.
- SkSTArray<128, PurgeBlobMessage, false> msgs;
+ SkTArray<PurgeBlobMessage> msgs;
fPurgeBlobInbox.poll(&msgs);
for (const auto& msg : msgs) {