From 76d69b44bbba118a6769b5fb267588ccac41a815 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Thu, 15 Mar 2018 17:34:40 -0400 Subject: Apply filterTextFlags so the fonts are the same. In order to apply filterTextFlags correctly, teach TrackLayerDevice how to process save and restore layers. At this point, I don't see any other traffic than the cache warming traffic. This code has a performance between 82% and 105% of just drawing the picture. BUG=skia:7515 Change-Id: I44736be46884f18b6d120d4b5ca582f34dbdff0f Reviewed-on: https://skia-review.googlesource.com/114641 Reviewed-by: Herb Derby Commit-Queue: Herb Derby --- include/utils/SkNoDrawCanvas.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/utils') diff --git a/include/utils/SkNoDrawCanvas.h b/include/utils/SkNoDrawCanvas.h index 7475956704..4c67226946 100644 --- a/include/utils/SkNoDrawCanvas.h +++ b/include/utils/SkNoDrawCanvas.h @@ -29,6 +29,8 @@ public: // TODO: investigate the users of this ctor. SkNoDrawCanvas(const SkIRect&); + explicit SkNoDrawCanvas(SkBaseDevice* device); + // Optimization to reset state to be the same as after construction. void resetCanvas(int width, int height) { resetForNextPicture(SkIRect::MakeWH(width, height)); -- cgit v1.2.3