Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: tests/BlitMaskClip.cpp

Issue 1466713002: Initialize memory for BitMask and Clip test. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/BlitMaskClip.cpp
diff --git a/tests/BlitMaskClip.cpp b/tests/BlitMaskClip.cpp
index a3bce1713db47d687b7e508ae90a995da7f9c329..53ac62454d7e9c2e56603ad43e8b3aa468114adc 100644
--- a/tests/BlitMaskClip.cpp
+++ b/tests/BlitMaskClip.cpp
@@ -7,6 +7,7 @@
#include "SkBlitter.h"
#include "SkMask.h"
+#include "SkUtils.h"
bungeman-skia 2015/11/20 16:55:36 Is there a reason for adding this?
herb_g 2015/11/20 17:11:10 Done.
#include "Test.h"
class TestBlitter : public SkBlitter {
@@ -38,6 +39,9 @@ DEF_TEST(BlitAndClip, reporter) {
const int height = 2;
int rowBytes = (width + 7) >> 3;
uint8_t* bits = new uint8_t[rowBytes * height];
+ for (int i = 0; i < rowBytes * height; i++) {
bungeman-skia 2015/11/20 16:55:36 memset?
herb_g 2015/11/20 17:11:10 Done.
+ bits[i] = 0xAA;
+ }
SkIRect b = {originX, originY, originX + width, originY + height};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698