diff options
Diffstat (limited to 'src/effects/SkPackBits.cpp')
-rw-r--r-- | src/effects/SkPackBits.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/effects/SkPackBits.cpp b/src/effects/SkPackBits.cpp index d2dfed9de1..e46590956c 100644 --- a/src/effects/SkPackBits.cpp +++ b/src/effects/SkPackBits.cpp @@ -4,8 +4,11 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ + #include "SkPackBits.h" +#include "SkTo.h" + size_t SkPackBits::ComputeMaxSize8(size_t srcSize) { // worst case is the number of 8bit values + 1 byte per (up to) 128 entries. return ((srcSize + 127) >> 7) + srcSize; |