aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/lighting.cpp
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-13 15:11:11 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-13 15:11:11 +0000
commitb2d93a91222dac2edb3c19128fd58fa2e74272aa (patch)
tree542e5234ce9408bb85fe36ae131746376eb3ae53 /gm/lighting.cpp
parentdeee496cd30070e52556dcb538c2e5eb39b66b81 (diff)
add peekPixels to SkCanvas and SkSurface
Diffstat (limited to 'gm/lighting.cpp')
-rw-r--r--gm/lighting.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gm/lighting.cpp b/gm/lighting.cpp
index 1cab55377a..858976b90f 100644
--- a/gm/lighting.cpp
+++ b/gm/lighting.cpp
@@ -26,8 +26,7 @@ protected:
void make_bitmap() {
fBitmap.allocN32Pixels(100, 100);
- SkBitmapDevice device(fBitmap);
- SkCanvas canvas(&device);
+ SkCanvas canvas(fBitmap);
canvas.clear(0x00000000);
SkPaint paint;
paint.setAntiAlias(true);
@@ -38,7 +37,7 @@ protected:
}
virtual SkISize onISize() {
- return make_isize(WIDTH, HEIGHT);
+ return SkISize::Make(WIDTH, HEIGHT);
}
void drawClippedBitmap(SkCanvas* canvas, const SkPaint& paint, int x, int y) {