From b2d93a91222dac2edb3c19128fd58fa2e74272aa Mon Sep 17 00:00:00 2001 From: "mike@reedtribe.org" Date: Thu, 13 Feb 2014 15:11:11 +0000 Subject: add peekPixels to SkCanvas and SkSurface clone of https://codereview.chromium.org/159723006/ Review URL: https://codereview.chromium.org/161733002 git-svn-id: http://skia.googlecode.com/svn/trunk@13427 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/matrixconvolution.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gm/matrixconvolution.cpp') diff --git a/gm/matrixconvolution.cpp b/gm/matrixconvolution.cpp index 47a3581b64..b986cc1fc0 100644 --- a/gm/matrixconvolution.cpp +++ b/gm/matrixconvolution.cpp @@ -25,8 +25,7 @@ protected: void make_bitmap() { fBitmap.allocN32Pixels(80, 80); - SkBitmapDevice device(fBitmap); - SkCanvas canvas(&device); + SkCanvas canvas(fBitmap); canvas.clear(0x00000000); SkPaint paint; paint.setAntiAlias(true); -- cgit v1.2.3