From 51591538404928372e587bed6742c0b4fa8e0c20 Mon Sep 17 00:00:00 2001 From: "scroggo@google.com" Date: Fri, 15 Mar 2013 15:29:02 +0000 Subject: [PATCH] In gm, install drawFilter for pipe and tiledPipe. Fixes bugs in drawing un-antialiased text in gm. Review URL: https://codereview.chromium.org/12812016 git-svn-id: http://skia.googlecode.com/svn/trunk@8173 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/gmmain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index 30e9296ca1..0ac8f8ffce 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp @@ -901,6 +901,7 @@ public: SkISize size = gm->getISize(); setup_bitmap(gRec, size, &bitmap); SkCanvas canvas(bitmap); + installFilter(&canvas); PipeController pipeController(&canvas); SkGPipeWriter writer; SkCanvas* pipeCanvas = writer.startRecording( @@ -927,6 +928,7 @@ public: SkISize size = gm->getISize(); setup_bitmap(gRec, size, &bitmap); SkCanvas canvas(bitmap); + installFilter(&canvas); TiledPipeController pipeController(bitmap); SkGPipeWriter writer; SkCanvas* pipeCanvas = writer.startRecording(