DescriptionAdd TextTrack::isVisualKind helper
It's quite common to check for a text track being one of the kinds
'subtitles' or 'captions'. Add a helper to TextTrack and use that
in a bunch of places to simplify code.
Also convert one open-coded version of TextTrack::canBeRendered() with a
call to that method.
Committed: https://crrev.com/d18abb5e4780c7d6d429f72a5d566f6a894d5013
Cr-Commit-Position: refs/heads/master@{#393814}
Patch Set 1 #Patch Set 2 : One more #
Messages
Total messages: 10 (4 generated)
|