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

Issue 2870643003: Add support for animations in vector icons. (Closed)

Created:
3 years, 7 months ago by Evan Stade
Modified:
3 years, 7 months ago
Reviewers:
tdanderson, sadrul
CC:
chromium-reviews, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for animations in vector icons. Adds the ability to transition from one path to another, interpolatable path, as well as transitioning some paint flags. Support for transitioning other paint flags can be added as necessary. Other useful transition operations might include applying a transform, which will require adding a transform element but should otherwise not present an issue. BUG=718549 Review-Url: https://codereview.chromium.org/2870643003 Cr-Commit-Position: refs/heads/master@{#471314} Committed: https://chromium.googlesource.com/chromium/src/+/cc104c522c7cd341182415921253445e411b7e37

Patch Set 1 #

Total comments: 14

Patch Set 2 : docs #

Total comments: 9

Patch Set 3 : docs #

Patch Set 4 : typo fixed #

Patch Set 5 : another typo #

Patch Set 6 : rebase #

Patch Set 7 : . #

Patch Set 8 : what happened #

Total comments: 9

Patch Set 9 : sadrul review #

Patch Set 10 : update docs #

Patch Set 11 : deps #

Patch Set 12 : trace event #

Patch Set 13 : deps, casting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -36 lines) Patch
M ash/resources/vector_icons/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/vector_icons/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/paint_vector_icon.h View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -8 lines 0 comments Download
M ui/gfx/paint_vector_icon.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +113 lines, -22 lines 0 comments Download
M ui/gfx/vector_icon_types.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -3 lines 0 comments Download
M ui/vector_icons/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 46 (28 generated)
Evan Stade
depends on https://codereview.chromium.org/2861203002/
3 years, 7 months ago (2017-05-08 17:16:54 UTC) #2
tdanderson
https://codereview.chromium.org/2870643003/diff/1/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/1/ui/gfx/paint_vector_icon.cc#newcode14 ui/gfx/paint_vector_icon.cc:14: #include "base/strings/string_number_conversions.h" general question: are the performance characteristics of ...
3 years, 7 months ago (2017-05-08 21:22:54 UTC) #3
Evan Stade
https://codereview.chromium.org/2870643003/diff/1/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/1/ui/gfx/paint_vector_icon.cc#newcode14 ui/gfx/paint_vector_icon.cc:14: #include "base/strings/string_number_conversions.h" On 2017/05/08 21:22:54, tdanderson wrote: > general ...
3 years, 7 months ago (2017-05-08 22:27:42 UTC) #4
tdanderson
Please see my comments below. Adding sadrul@ as FYI. https://codereview.chromium.org/2870643003/diff/1/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/1/ui/gfx/paint_vector_icon.cc#newcode14 ui/gfx/paint_vector_icon.cc:14: ...
3 years, 7 months ago (2017-05-09 20:31:41 UTC) #9
Evan Stade
In case you do have input Sadrul, here's the explainer doc: https://docs.google.com/a/google.com/document/d/1qnPSE-Gq3rW8ty2aliurwB7hsEjW-gF2IDn9rKDCkSE/edit?usp=sharing And here's a ...
3 years, 7 months ago (2017-05-09 21:25:04 UTC) #10
tdanderson
LGTM with the loop in GetDurationOfAnimation() fixed. https://codereview.chromium.org/2870643003/diff/20001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/20001/ui/gfx/paint_vector_icon.cc#newcode358 ui/gfx/paint_vector_icon.cc:358: start_new_path(); On ...
3 years, 7 months ago (2017-05-09 21:54:18 UTC) #11
sadrul
https://codereview.chromium.org/2870643003/diff/20001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/20001/ui/gfx/paint_vector_icon.cc#newcode606 ui/gfx/paint_vector_icon.cc:606: return last_motion; Can this be cached in VectorIcon? e.g. ...
3 years, 7 months ago (2017-05-09 22:12:03 UTC) #13
Evan Stade
https://codereview.chromium.org/2870643003/diff/20001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/20001/ui/gfx/paint_vector_icon.cc#newcode597 ui/gfx/paint_vector_icon.cc:597: while (parser.Advance()) { On 2017/05/09 20:31:40, tdanderson (OOO til ...
3 years, 7 months ago (2017-05-09 22:45:14 UTC) #14
Evan Stade
Sadrul, ptal.
3 years, 7 months ago (2017-05-10 18:13:21 UTC) #16
sadrul
https://codereview.chromium.org/2870643003/diff/140001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/140001/ui/gfx/paint_vector_icon.cc#newcode165 ui/gfx/paint_vector_icon.cc:165: const base::TimeDelta* elapsed_time = nullptr) { Can this just ...
3 years, 7 months ago (2017-05-11 04:22:55 UTC) #20
Evan Stade
https://codereview.chromium.org/2870643003/diff/140001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2870643003/diff/140001/ui/gfx/paint_vector_icon.cc#newcode165 ui/gfx/paint_vector_icon.cc:165: const base::TimeDelta* elapsed_time = nullptr) { On 2017/05/11 04:22:55, ...
3 years, 7 months ago (2017-05-11 16:16:26 UTC) #21
sadrul
Re the build failures in the trybots: looks like there are several targets that include ...
3 years, 7 months ago (2017-05-11 17:36:38 UTC) #28
Evan Stade
On 2017/05/11 17:36:38, sadrul wrote: > Re the build failures in the trybots: looks like ...
3 years, 7 months ago (2017-05-11 21:05:05 UTC) #35
sadrul
lgtm On 2017/05/11 21:05:05, Evan Stade wrote: > On 2017/05/11 17:36:38, sadrul wrote: > > ...
3 years, 7 months ago (2017-05-11 23:46:14 UTC) #36
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/2870643003/240001
3 years, 7 months ago (2017-05-12 02:58:09 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/382699)
3 years, 7 months ago (2017-05-12 04:09:36 UTC) #41
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/2870643003/240001
3 years, 7 months ago (2017-05-12 15:06:53 UTC) #43
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 15:42:49 UTC) #46
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/cc104c522c7cd341182415921253...

Powered by Google App Engine
This is Rietveld 408576698