| commit | ad254fee73ad70a45acba69dccb9b65f88c3a92a | [log] [tgz] |
|---|---|---|
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Oct 22 13:19:12 2013 +0000 |
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Oct 22 13:19:12 2013 +0000 |
| tree | 12b18a7e1d9f810991864d61120bd74a7d72a1b1 | |
| parent | db6fa1729a5117e1bdacd6c237373812cd44a7c0 [diff] [blame] |
If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get better performance. Committed: http://code.google.com/p/skia/source/detail?r=11842 R=bsalomon@google.com Review URL: https://codereview.chromium.org/23484007 git-svn-id: http://skia.googlecode.com/svn/trunk@11904 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/TileGridTest.cpp b/tests/TileGridTest.cpp index 8f5b18a..3466871 100644 --- a/tests/TileGridTest.cpp +++ b/tests/TileGridTest.cpp
@@ -25,13 +25,14 @@ MockCanvas(SkBaseDevice* device) : SkCanvas(device) {} - virtual void drawRect(const SkRect& rect, const SkPaint&) + SkTDArray<SkRect> fRects; + +protected: + virtual void onDrawRect(const SkRect& rect, const SkPaint&) { // This capture occurs before quick reject. fRects.push(rect); } - - SkTDArray<SkRect> fRects; }; class TileGridTest {