Index: src/utils/debugger/SkDebugCanvas.cpp |
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp |
index e491f3b8a79b9def06099794f8bd3582d3af4579..1c3e26e6437248ea1e7673c822b99858e033289d 100644 |
--- a/src/utils/debugger/SkDebugCanvas.cpp |
+++ b/src/utils/debugger/SkDebugCanvas.cpp |
@@ -74,8 +74,7 @@ void SkDebugCanvas::applyUserTransform(SkCanvas* canvas) { |
int SkDebugCanvas::getCommandAtPoint(int x, int y, int index) { |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); |
- bitmap.allocPixels(); |
+ bitmap.allocPixels(SkImageInfo::MakeN32Premul(1, 1)); |
SkCanvas canvas(bitmap); |
canvas.translate(SkIntToScalar(-x), SkIntToScalar(-y)); |