diff options
author | herb <herb@google.com> | 2015-11-20 13:37:37 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-20 13:37:37 -0800 |
commit | 1ac026d71c4637622138adcbfa320e41e61bde53 (patch) | |
tree | 00b3268891aa3bd9dbbd9091198437238f12e5b3 /tests/BlitMaskClip.cpp | |
parent | a751c97e30f988b8d832be6b552a6085d484412d (diff) |
Initialize memory for BitMask and Clip test.
BUG=skia:
Review URL: https://codereview.chromium.org/1466713002
Diffstat (limited to 'tests/BlitMaskClip.cpp')
-rw-r--r-- | tests/BlitMaskClip.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/BlitMaskClip.cpp b/tests/BlitMaskClip.cpp index a3bce1713d..8ba2cea3e0 100644 --- a/tests/BlitMaskClip.cpp +++ b/tests/BlitMaskClip.cpp @@ -8,6 +8,7 @@ #include "SkBlitter.h" #include "SkMask.h" #include "Test.h" +#include <string.h> class TestBlitter : public SkBlitter { public: @@ -28,7 +29,6 @@ private: skiatest::Reporter* fReporter; }; - // Exercise all clips compared with different widths of bitMask. Make sure that no buffer // overruns happen. DEF_TEST(BlitAndClip, reporter) { @@ -38,6 +38,7 @@ DEF_TEST(BlitAndClip, reporter) { const int height = 2; int rowBytes = (width + 7) >> 3; uint8_t* bits = new uint8_t[rowBytes * height]; + memset(bits, 0xAA, rowBytes * height); SkIRect b = {originX, originY, originX + width, originY + height}; |