From 71e21ba2afc78ae56cb72cfc5a64858cc2144a0a Mon Sep 17 00:00:00 2001 From: "rileya@google.com" Date: Fri, 14 Sep 2012 14:24:14 +0000 Subject: Fix picture refcnt bug in distantclip gm. Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@5542 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/distantclip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/distantclip.cpp') diff --git a/gm/distantclip.cpp b/gm/distantclip.cpp index b8a7c2b7b7..09dacea401 100644 --- a/gm/distantclip.cpp +++ b/gm/distantclip.cpp @@ -52,7 +52,7 @@ protected: // Finally we play the part of that second picture that should be green into the canvas. canvas->save(); canvas->translate(extents / 2, -(offset - extents / 2)); - canvas->drawPicture(pict2); + pict2.draw(canvas); canvas->restore(); // If the image is red, we erroneously decided the clipPath was empty and didn't record -- cgit v1.2.3