• Drew Davenport's avatar
    media/gpu/test: Fix DCHECK using ScopedFeatureList · de3cfd76
    Drew Davenport authored
    Only one ScopedFeatureList::InitXXX function should be called on
    a particular ScopedFeatureList instance. If any Init functions are
    called more than once, it will hit DCHECK(!init_called_) in
    ScopedFeatureList::InitWithFeaturesImpl.
    
    Refactor feature enabling so that the desired features are sent as
    a vector of features in one call to ScopedFeatureList::InitWithFeatures
    
    TEST=video_encode_accelerator_unittest does not hit DCHECK
    BUG=none
    
    Change-Id: I445ea51740b93361c771450e47cd31300ae13c69
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1862257Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
    Commit-Queue: Drew Davenport <ddavenport@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#706126}
    de3cfd76
video_encode_accelerator_unittest.cc 121 KB