aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-01 19:06:09 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-01 19:06:09 +0000
commit17a595a1aef9112cba287b6b1e1a5baa1a4719c4 (patch)
tree3ed8694870328499f75665681d0cfb4417248a39
parent03f1ecd4d976170f0b40ee2cddfe35aa6cdc5d2e (diff)
Use setDevice rather than the removed setBitmapDevice.
R=reed@google.com Review URL: https://codereview.appspot.com/6588057 git-svn-id: http://skia.googlecode.com/svn/trunk@5756 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--experimental/iOSSampleApp/SkSampleUIView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/iOSSampleApp/SkSampleUIView.mm b/experimental/iOSSampleApp/SkSampleUIView.mm
index 916978c587..a6ab105005 100644
--- a/experimental/iOSSampleApp/SkSampleUIView.mm
+++ b/experimental/iOSSampleApp/SkSampleUIView.mm
@@ -125,7 +125,7 @@ public:
// use the window's bmp for these two
case SampleWindow::kRaster_DeviceType:
case SampleWindow::kPicture_DeviceType:
- canvas->setBitmapDevice(win->getBitmap());
+ canvas->setDevice(SkNEW_ARGS(SkDevice, (win->getBitmap())))->unref();
break;
#if SK_SUPPORT_GPU
// create a GPU device for these two