diff options
Diffstat (limited to 'debugger/QT/SkImageWidget.cpp')
-rw-r--r-- | debugger/QT/SkImageWidget.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/debugger/QT/SkImageWidget.cpp b/debugger/QT/SkImageWidget.cpp index 03c7e7e0f9..aad979406b 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); } |