DescriptionIntroduce VTTScanner - a parser helper for various VTT parsing needs
Add a new helper class - VTTScanner - with the aim of performing less
explicit splitting/reallocation of strings (best case, none at all) and
have less explicit index boundary checks.
To allow this new scheme to interact and work side-by-side with the
old <String, position> scheme, also add a wrapper VTTLegacyScanner
which allows state to be imported and exported based on scope.
Start converting code to the new scheme by modifying
VTTParser::collectTimingsAndSettings and VTTParser::collectTimeStamp to
use this helper.
TEST=unittests:VTTScanner.*
TEST=Existing VTT cue settings parsing tests (various in media/track/*)
BUG=305317
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164775
Patch Set 1 #Patch Set 2 : Fix signedness issue in unittest. #Patch Set 3 : Unstuffed VTTScanner class decl. #
Total comments: 4
Patch Set 4 : struct Run -> class Run; explicit constructor; make non-copyable. #
Messages
Total messages: 11 (0 generated)
|