aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorGravatar cblume <cblume@chromium.org>2016-02-16 13:00:01 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-16 13:00:02 -0800
commited828001da75f4a3a5d31d9f1c1935e3595ce920 (patch)
tree7f85d8791c116fb9c1981a83b8cc7208cfe382b5 /example
parente8c34974c42b302d78c5cc8c7dcfb36956256baa (diff)
There is an unused rowBytes parameter being passed along.
Diffstat (limited to 'example')
-rw-r--r--example/HelloWorld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/HelloWorld.cpp b/example/HelloWorld.cpp
index 6833a33828..1cc18fdc8d 100644
--- a/example/HelloWorld.cpp
+++ b/example/HelloWorld.cpp
@@ -157,7 +157,7 @@ void HelloWorldWindow::draw(SkCanvas* canvas) {
if (kRaster_DeviceType == fType) {
// need to send the raster bits to the (gpu) window
SkImage* snap = fSurface->newImageSnapshot();
- size_t rowBytes;
+ size_t rowBytes = 0;
SkImageInfo info;
const void* pixels = snap->peekPixels(&info, &rowBytes);
fRenderTarget->writePixels(0, 0, snap->width(), snap->height(),