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
This commit is contained in:
parent
4b32bd53c6
commit
5159153840
@ -901,6 +901,7 @@ public:
|
|||||||
SkISize size = gm->getISize();
|
SkISize size = gm->getISize();
|
||||||
setup_bitmap(gRec, size, &bitmap);
|
setup_bitmap(gRec, size, &bitmap);
|
||||||
SkCanvas canvas(bitmap);
|
SkCanvas canvas(bitmap);
|
||||||
|
installFilter(&canvas);
|
||||||
PipeController pipeController(&canvas);
|
PipeController pipeController(&canvas);
|
||||||
SkGPipeWriter writer;
|
SkGPipeWriter writer;
|
||||||
SkCanvas* pipeCanvas = writer.startRecording(
|
SkCanvas* pipeCanvas = writer.startRecording(
|
||||||
@ -927,6 +928,7 @@ public:
|
|||||||
SkISize size = gm->getISize();
|
SkISize size = gm->getISize();
|
||||||
setup_bitmap(gRec, size, &bitmap);
|
setup_bitmap(gRec, size, &bitmap);
|
||||||
SkCanvas canvas(bitmap);
|
SkCanvas canvas(bitmap);
|
||||||
|
installFilter(&canvas);
|
||||||
TiledPipeController pipeController(bitmap);
|
TiledPipeController pipeController(bitmap);
|
||||||
SkGPipeWriter writer;
|
SkGPipeWriter writer;
|
||||||
SkCanvas* pipeCanvas = writer.startRecording(
|
SkCanvas* pipeCanvas = writer.startRecording(
|
||||||
|
Loading…
Reference in New Issue
Block a user