diff options
author | 2017-05-23 11:31:14 -0400 | |
---|---|---|
committer | 2017-05-23 16:06:11 +0000 | |
commit | 5373609d90d8f84b75718b15f3522f9d2f4226cb (patch) | |
tree | 10b3c27a101f94afce734df4dc003ce953ce7f7a /include | |
parent | 435071e8ab865e395bec34ef128a412ceb50f063 (diff) |
add knob to turn off fancy SkJumper features
This is a new public API for testing (layout tests).
Change-Id: I10345231bad373c741b1e9656e546000538121b3
Reviewed-on: https://skia-review.googlesource.com/17712
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkGraphics.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h index 4b62e55efc..5900044422 100644 --- a/include/core/SkGraphics.h +++ b/include/core/SkGraphics.h @@ -26,6 +26,10 @@ public: // We're in the middle of cleaning this up. static void Term() {} + // If called immediately after Init(), SkJumper will use only a per-CPU baseline + // feature set, ignoring any more advanced instructions that may be available. + static void DisableFancySkJumperFeatures(); + /** * Return the version numbers for the library. If the parameter is not * null, it is set to the version number. |