diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-28 19:09:23 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-28 19:09:23 +0000 |
commit | 82ba677e1729a2557f6115a724c9f793fd9bf162 (patch) | |
tree | 0766ba58832640d1e77bed33a14a84f6d816364f | |
parent | 89dec58122be91e5e10af1c016a1ddebe1749c72 (diff) |
remove call to setBitmapDevice (DEPRECATED)
git-svn-id: http://skia.googlecode.com/svn/trunk@5727 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | experimental/Intersection/SkAntiEdge.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/experimental/Intersection/SkAntiEdge.cpp b/experimental/Intersection/SkAntiEdge.cpp index 5aa134c926..eb7dc34d7e 100644 --- a/experimental/Intersection/SkAntiEdge.cpp +++ b/experimental/Intersection/SkAntiEdge.cpp @@ -1045,13 +1045,14 @@ void CreateAngle(SkBitmap* sweep, SkScalar angle) { #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]); |