Index: debugger/QT/SkImageWidget.cpp |
diff --git a/debugger/QT/SkImageWidget.cpp b/debugger/QT/SkImageWidget.cpp |
index 03c7e7e0f978ab2ea6a68f05ae7b4af6548cc27f..aad979406bb7c8f1e12002ef7335fa4796111cfe 100644 |
--- a/debugger/QT/SkImageWidget.cpp |
+++ b/debugger/QT/SkImageWidget.cpp |
@@ -13,15 +13,11 @@ |
SkImageWidget::SkImageWidget(SkDebugger *debugger) |
: QWidget() |
- , fDebugger(debugger) { |
+ , fDebugger(debugger) |
+{ |
this->setStyleSheet("QWidget {background-color: white; border: 1px solid #cccccc;}"); |
- SkImageInfo info; |
- info.fWidth = kImageWidgetWidth; |
- info.fHeight = kImageWidgetHeight; |
- info.fColorType = kN32_SkColorType; |
- info.fAlphaType = kPremul_SkAlphaType; |
- |
+ SkImageInfo info = SkImageInfo::MakeN32Premul(kImageWidgetWidth, kImageWidgetHeight); |
fSurface = SkSurface::NewRasterDirect(info, fPixels, 4 * kImageWidgetWidth); |
} |