aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLiteDL.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-08-19 09:05:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-19 09:05:27 -0700
commitcbdf007bc2eb85056a1a5c75c088202becba2d16 (patch)
treee5ad582ba81b2c6b113195f64ab584c8376567a1 /src/core/SkLiteDL.h
parent68d952cf4061dc455d6a6040ce1e4625e4f2ab29 (diff)
Fast path translate() in SkCanvas and SkLiteDL.
This adds didTranslate() so that SkLiteDL (and other canvas recorders) can record the translate rather than the full concat. It also adds a case to SkMatrix::preTranslate() to fast path translate x translate -> translate (i.e. +=). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2255283002 Committed: https://skia.googlesource.com/skia/+/5fa47f4fd13b3158de4599414c86d17649c2dd1c Misc bots failing in pictureimagefilter replay modes. https://luci-milo.appspot.com/swarming/task/30b8e53f3a1f4f10/steps/dm/0/stdout Problem is FMA vs. not. CQ_INCLUDE_TRYBOTS=master.client.skia: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Fast-Trybot Review-Url: https://codereview.chromium.org/2255283002
Diffstat (limited to 'src/core/SkLiteDL.h')
-rw-r--r--src/core/SkLiteDL.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkLiteDL.h b/src/core/SkLiteDL.h
index 38a08129ac..e80548cecd 100644
--- a/src/core/SkLiteDL.h
+++ b/src/core/SkLiteDL.h
@@ -29,6 +29,7 @@ public:
void concat (const SkMatrix&);
void setMatrix (const SkMatrix&);
+ void translate(SkScalar, SkScalar);
void translateZ(SkScalar);
void clipPath (const SkPath&, SkRegion::Op, bool aa);