diff options
author | 2012-09-26 02:45:10 +0000 | |
---|---|---|
committer | 2012-09-26 02:45:10 +0000 | |
commit | 3bd217366342ffc331f9659b6fb1c759318be95b (patch) | |
tree | c1a97f46cea496a771782e1c2ff5ba858e54882a /samplecode/SampleOverflow.cpp | |
parent | 74bb77ee4c747b8c70c5c613987c9f93df71df06 (diff) |
SkCanvas::setDevice() must die, and so we begin by removing our own
references to setBitmapDevice() (gotta walk before we can run)
git-svn-id: http://skia.googlecode.com/svn/trunk@5680 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleOverflow.cpp')
-rw-r--r-- | samplecode/SampleOverflow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleOverflow.cpp b/samplecode/SampleOverflow.cpp index 64c36d22f1..3cf30ad9df 100644 --- a/samplecode/SampleOverflow.cpp +++ b/samplecode/SampleOverflow.cpp @@ -16,13 +16,13 @@ static void DrawRoundRect() { bool ret = false; SkPaint paint; SkBitmap bitmap; - SkCanvas canvas; SkMatrix matrix; matrix.reset(); bitmap.setConfig(SkBitmap::kARGB_8888_Config, 1370, 812); bitmap.allocPixels(); - canvas.setBitmapDevice(bitmap); + + SkCanvas canvas(bitmap); // set up clipper SkRect skclip; |