diff options
Diffstat (limited to 'skia/sgl/SkWriter32.cpp')
-rw-r--r-- | skia/sgl/SkWriter32.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/skia/sgl/SkWriter32.cpp b/skia/sgl/SkWriter32.cpp index 819803f..61d0051 100644 --- a/skia/sgl/SkWriter32.cpp +++ b/skia/sgl/SkWriter32.cpp @@ -37,6 +37,15 @@ struct SkWriter32::Block { } }; +static size_t compute_block_size(size_t currSize, size_t minSize) +{ + if (currSize < minSize) + currSize = minSize; + + currSize += (currSize >> 1); + return SkAlign4(currSize); +} + /////////////////////////////////////////////////////////////////////////////// SkWriter32::~SkWriter32() |