From c3bd8af6d5722e854feca70c40d92f4954c5b67b Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 13 Feb 2014 17:14:46 +0000 Subject: add peekPixels to SkCanvas and SkSurface fix reference to SkBaseDevice, which was only a problem in no-gpu build This reverts commit 4fa44a6bf73891b21917fb90d02beef9143bffa3. R=reed@google.com Author: reed@chromium.org Review URL: https://codereview.chromium.org/163603003 git-svn-id: http://skia.googlecode.com/svn/trunk@13432 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/ninepatchstretch.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gm/ninepatchstretch.cpp') diff --git a/gm/ninepatchstretch.cpp b/gm/ninepatchstretch.cpp index a14af00a4e..74cc87f305 100644 --- a/gm/ninepatchstretch.cpp +++ b/gm/ninepatchstretch.cpp @@ -13,10 +13,7 @@ static void make_bitmap(SkBitmap* bitmap, SkIRect* center) { const int kSize = 2*kFixed + kStretchy; bitmap->allocN32Pixels(kSize, kSize); - SkBaseDevice* dev = new SkBitmapDevice(*bitmap); - - SkCanvas canvas(dev); - dev->unref(); + SkCanvas canvas(*bitmap); canvas.clear(SK_ColorTRANSPARENT); SkRect r = SkRect::MakeWH(SkIntToScalar(kSize), SkIntToScalar(kSize)); -- cgit v1.2.3