diff options
author | Florin Malita <fmalita@chromium.org> | 2018-03-07 14:22:55 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-07 14:23:01 +0000 |
commit | 461ef7af88cc966007c464130a971ec86c803f1d (patch) | |
tree | 0a07bb599914f7e37fd80867ad238ae25c825272 /gm/hugepath.cpp | |
parent | 08b44fa4975f2d24960c7bfa948bb7cc1c89bba7 (diff) |
Revert "add tiler for SkDraw"
This reverts commit be1b3971806e3d80aa9673a36e2b35d0145198ac.
Reason for revert:
Unexpected layout test diffs: https://test-results.appspot.com/data/layout_results/linux_trusty_blink_rel/24989/layout-test-results/results.html
Original change's description:
> add tiler for SkDraw
>
> Bug: skia:2122
> Change-Id: I276de2064939151eef5fa14c53188e8b5728b7c9
> Reviewed-on: https://skia-review.googlesource.com/110840
> Commit-Queue: Mike Reed <reed@google.com>
> Reviewed-by: Yuqian Li <liyuqian@google.com>
TBR=liyuqian@google.com,reed@google.com
Change-Id: Ia598c0d7c4ac6cfcdb905b847040c250fa366402
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:2122
Reviewed-on: https://skia-review.googlesource.com/112740
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'gm/hugepath.cpp')
-rw-r--r-- | gm/hugepath.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gm/hugepath.cpp b/gm/hugepath.cpp index 4a691b8182..83dff9ec3e 100644 --- a/gm/hugepath.cpp +++ b/gm/hugepath.cpp @@ -8,7 +8,6 @@ #include "gm.h" #include "SkCanvas.h" #include "SkPath.h" -#include "SkSurface.h" DEF_SIMPLE_GM(path_huge_crbug_800804, canvas, 50, 600) { SkPaint paint; @@ -36,35 +35,3 @@ DEF_SIMPLE_GM(path_huge_crbug_800804, canvas, 50, 600) { } } -// Test that we can draw into a huge surface ( > 64K ) and still retain paths and antialiasing. -DEF_SIMPLE_GM(path_huge_aa, canvas, 200, 200) { - auto proc = [](SkCanvas* canvas, int w, int h) { - SkAutoCanvasRestore acr(canvas, true); - - auto surf = SkSurface::MakeRasterN32Premul(w, h); - auto can = surf->getCanvas(); - - SkPaint paint; - SkPath path; - path.addRoundRect(SkRect::MakeXYWH(4, 4, w - 8, h - 8), 12, 12); - - canvas->save(); - canvas->clipRect(SkRect::MakeXYWH(4, 4, 64, 64)); - can->drawPath(path, paint); - surf->draw(canvas, 64 - w, 0, nullptr); - canvas->restore(); - - canvas->translate(80, 0); - canvas->save(); - canvas->clipRect(SkRect::MakeXYWH(4, 4, 64, 64)); - can->clear(0); - paint.setAntiAlias(true); - can->drawPath(path, paint); - surf->draw(canvas, 64 - w, 0, nullptr); - canvas->restore(); - }; - - proc(canvas, 100, 60); - canvas->translate(0, 80); - proc(canvas, 100 * 1024, 60); -} |