aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-03-15 12:19:07 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-15 16:46:53 +0000
commiteaaebb19a17d213355e7a70e0cfabe4ba61929d4 (patch)
tree6c7197e978a616a3d2c6aa1203ce8dce88b3729b /src/utils
parentbd1f76fecf0e45d0d7a1d8502efa958818bc57c3 (diff)
store vertices arrays inline with object
Also unify some of naming (esp. around texCoords) BUG=skia:6366 Change-Id: I5a6793f029cccf0cd0a2c1d180b259ce4eab526f Reviewed-on: https://skia-review.googlesource.com/9705 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkShadowUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/SkShadowUtils.cpp b/src/utils/SkShadowUtils.cpp
index eb015aa8f9..402dca5c92 100644
--- a/src/utils/SkShadowUtils.cpp
+++ b/src/utils/SkShadowUtils.cpp
@@ -232,12 +232,12 @@ private:
i = fCount++;
} else {
i = gRandom.nextULessThan(MAX_ENTRIES);
- fSize -= fEntries[i].fVertices->size();
+ fSize -= fEntries[i].fVertices->approximateSize();
}
fEntries[i].fFactory = factory;
fEntries[i].fVertices = vertices;
fEntries[i].fMatrix = matrix;
- fSize += vertices->size();
+ fSize += vertices->approximateSize();
return vertices;
}