diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-01 17:54:05 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-01 17:54:05 +0000 |
commit | 44a42ea8b22a845a419b8ae3b47c4619fdec0215 (patch) | |
tree | 8b53d792fd9a01190c1830a8afdcb8fd3b11437f /tests/ReadWriteAlphaTest.cpp | |
parent | 0ab7c77a2c964f90338ef314ce04e4f9a05d45b4 (diff) |
1. remove references to (deprecated) SkGpuCanvas
2. remove references to setDevice (soon to be deprecated)
Review URL: https://codereview.appspot.com/6597055
git-svn-id: http://skia.googlecode.com/svn/trunk@5751 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/ReadWriteAlphaTest.cpp')
-rw-r--r-- | tests/ReadWriteAlphaTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp index 751c9128c4..eea78ce6c0 100644 --- a/tests/ReadWriteAlphaTest.cpp +++ b/tests/ReadWriteAlphaTest.cpp @@ -77,9 +77,8 @@ static void ReadWriteAlphaTest(skiatest::Reporter* reporter, GrContext* context) REPORTER_ASSERT(reporter, match); // Now try writing on the single channel texture - SkCanvas canvas; - - canvas.setDevice(new SkGpuDevice(context, texture->asRenderTarget()))->unref(); + SkAutoTUnref<SkDevice> device(new SkGpuDevice(context, texture->asRenderTarget())); + SkCanvas canvas(device); SkPaint paint; |