diff options
author | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-13 15:11:11 +0000 |
---|---|---|
committer | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-13 15:11:11 +0000 |
commit | b2d93a91222dac2edb3c19128fd58fa2e74272aa (patch) | |
tree | 542e5234ce9408bb85fe36ae131746376eb3ae53 /gm/morphology.cpp | |
parent | deee496cd30070e52556dcb538c2e5eb39b66b81 (diff) |
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
Diffstat (limited to 'gm/morphology.cpp')
-rw-r--r-- | gm/morphology.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/morphology.cpp b/gm/morphology.cpp index 5cfb1c2902..a2206b8f52 100644 --- a/gm/morphology.cpp +++ b/gm/morphology.cpp @@ -27,8 +27,7 @@ protected: void make_bitmap() { fBitmap.allocN32Pixels(135, 135); - SkBitmapDevice device(fBitmap); - SkCanvas canvas(&device); + SkCanvas canvas(fBitmap); canvas.clear(0x0); SkPaint paint; paint.setAntiAlias(true); |