remove call to setBitmapDevice (DEPRECATED)
git-svn-id: http://skia.googlecode.com/svn/trunk@5727 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/SkAntiEdge.cpp b/experimental/Intersection/SkAntiEdge.cpp
index 5aa134c..eb7dc34 100644
--- a/experimental/Intersection/SkAntiEdge.cpp
+++ b/experimental/Intersection/SkAntiEdge.cpp
@@ -1045,13 +1045,14 @@
#include "SkCanvas.h"
static void testPng() {
- SkCanvas canvas;
SkBitmap device;
device.setConfig(SkBitmap::kARGB_8888_Config, 4, 4);
device.allocPixels();
device.eraseColor(0xFFFFFFFF);
- canvas.setBitmapDevice(device);
+
+ SkCanvas canvas(device);
canvas.drawARGB(167, 0, 0, 0);
+
device.lockPixels();
unsigned char* pixels = (unsigned char*) device.getPixels();
SkDebugf("%02x%02x%02x%02x", pixels[3], pixels[2], pixels[1], pixels[0]);