Index: debugger/QT/SkDrawCommandGeometryWidget.cpp |
diff --git a/debugger/QT/SkDrawCommandGeometryWidget.cpp b/debugger/QT/SkDrawCommandGeometryWidget.cpp |
index 03572cfdd1ad3f833153ace92b526b19e5b748d8..9f19785667388a24b8a419e825c882d3c6cdb8e3 100644 |
--- a/debugger/QT/SkDrawCommandGeometryWidget.cpp |
+++ b/debugger/QT/SkDrawCommandGeometryWidget.cpp |
@@ -42,8 +42,8 @@ void SkDrawCommandGeometryWidget::paintEvent(QPaintEvent* event) { |
painter.setRenderHint(QPainter::Antialiasing); |
SkImageInfo info; |
- size_t rowPixels; |
- if (const void* pixels = fSurface->peekPixels(&info, &rowPixels)) { |
+ size_t rowBytes; |
+ if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) { |
SkASSERT(info.width() > 0); |
SkASSERT(info.height() > 0); |
@@ -61,6 +61,7 @@ void SkDrawCommandGeometryWidget::paintEvent(QPaintEvent* event) { |
QImage image(reinterpret_cast<const uchar*>(pixels), |
info.width(), |
info.height(), |
+ rowBytes, |
QImage::Format_ARGB32_Premultiplied); |
painter.drawImage(resultRect, image); |
} |