Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Issue 2255283002: Fast path translate() in SkCanvas and SkLiteDL. (Closed)

Created:
4 years, 4 months ago by mtklein_C
Modified:
4 years, 4 months ago
Reviewers:
herb_g, mtklein, reed1
CC:
msarett, reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/cbdf007bc2eb85056a1a5c75c088202becba2d16

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix default didTranslate() for other recorders. #

Patch Set 3 : Good catch #

Patch Set 4 : Better fix? #

Total comments: 1

Patch Set 5 : rebase #

Patch Set 6 : plumb translate() through to SkRecord too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -12 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M include/private/SkRecords.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 1 chunk +8 lines, -3 lines 0 comments Download
M src/core/SkLiteDL.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkLiteDL.cpp View 3 chunks +12 lines, -3 lines 0 comments Download
M src/core/SkLiteRecorder.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkLiteRecorder.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M src/core/SkMatrix.cpp View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M src/core/SkRecorder.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (29 generated)
mtklein_C
4 years, 4 months ago (2016-08-18 18:03:20 UTC) #5
mtklein
4 years, 4 months ago (2016-08-18 18:16:18 UTC) #9
reed1
https://codereview.chromium.org/2255283002/diff/1/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/2255283002/diff/1/src/core/SkMatrix.cpp#newcode297 src/core/SkMatrix.cpp:297: SkASSERT(kTranslate_Mask == this->computeTypeMask()); This could fail if the translate ...
4 years, 4 months ago (2016-08-18 19:28:18 UTC) #14
mtklein_C
https://codereview.chromium.org/2255283002/diff/1/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/2255283002/diff/1/src/core/SkMatrix.cpp#newcode297 src/core/SkMatrix.cpp:297: SkASSERT(kTranslate_Mask == this->computeTypeMask()); On 2016/08/18 at 19:28:18, reed1 wrote: ...
4 years, 4 months ago (2016-08-18 19:35:59 UTC) #15
mtklein_C
On 2016/08/18 at 19:35:59, mtklein_C wrote: > https://codereview.chromium.org/2255283002/diff/1/src/core/SkMatrix.cpp > File src/core/SkMatrix.cpp (right): > > https://codereview.chromium.org/2255283002/diff/1/src/core/SkMatrix.cpp#newcode297 ...
4 years, 4 months ago (2016-08-18 19:39:42 UTC) #18
reed1
a unittest might prove me wrong about the assert... SkMatrix m; m.setTranslate(1, 2); m.getType(); m.preTranslate(-1, ...
4 years, 4 months ago (2016-08-18 21:22:20 UTC) #23
mtklein
On 2016/08/18 21:22:20, reed1 wrote: > a unittest might prove me wrong about the assert... ...
4 years, 4 months ago (2016-08-18 21:36:07 UTC) #24
reed1
lgtm
4 years, 4 months ago (2016-08-18 21:58:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255283002/80001
4 years, 4 months ago (2016-08-18 22:04:07 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/5fa47f4fd13b3158de4599414c86d17649c2dd1c
4 years, 4 months ago (2016-08-18 22:42:36 UTC) #32
mtklein
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2264433002/ by mtklein@google.com. ...
4 years, 4 months ago (2016-08-19 00:26:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255283002/100001
4 years, 4 months ago (2016-08-19 15:43:03 UTC) #40
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 16:05:30 UTC) #42
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/cbdf007bc2eb85056a1a5c75c088202becba2d16

Powered by Google App Engine
This is Rietveld 408576698