diff --git a/resources/config_bundles/common/domain_substitution.list b/resources/config_bundles/common/domain_substitution.list index 4a216df9..e2940564 100644 --- a/resources/config_bundles/common/domain_substitution.list +++ b/resources/config_bundles/common/domain_substitution.list @@ -8,7 +8,7 @@ android_webview/browser/aw_safe_browsing_whitelist_manager.cc android_webview/browser/aw_safe_browsing_whitelist_manager.h android_webview/browser/aw_safe_browsing_whitelist_manager_unittest.cc android_webview/browser/aw_settings.cc -android_webview/browser/cookie_manager.cc +android_webview/browser/net/aw_url_request_context_getter.cc android_webview/browser/net/aw_web_resource_request.h android_webview/browser/permission/media_access_permission_request_unittest.cc android_webview/browser/permission/permission_request_handler_unittest.cc @@ -34,12 +34,12 @@ android_webview/tools/system_webview_shell/page_cycler/AndroidManifest.xml ash/ash_strings.grd ash/resources/PRESUBMIT.py ash/system/supervised/tray_supervised_user_unittest.cc -ash/system/system_notifier.cc ash/wm/panels/panel_layout_manager.h ash/wm/screen_pinning_controller.h base/PRESUBMIT.py base/allocator/partition_allocator/address_space_randomization.h base/android/android_hardware_buffer_abi.h +base/android/jni_generator/AndroidManifest.xml base/android/jni_generator/jni_generator.py base/atomicops.h base/atomicops_internals_x86_msvc.h @@ -61,6 +61,7 @@ base/hash.cc base/i18n/break_iterator_unittest.cc base/i18n/file_util_icu.cc base/i18n/time_formatting.h +base/i18n/timezone_unittest.cc base/ios/device_util.mm base/logging.cc base/mac/close_nocancel.cc @@ -78,7 +79,6 @@ base/process/launch.h base/process/launch_posix.cc base/process/memory.h base/process/memory_win.cc -base/process/process_info_win.cc base/process/process_util_unittest.cc base/rand_util_win.cc base/security_unittest.cc @@ -122,9 +122,10 @@ build/android/gradle/root.jinja build/android/gyp/assert_static_initializers.py build/android/gyp/generate_split_manifest.py build/android/gyp/generate_v14_compatible_resources.py +build/android/gyp/javac.py build/android/gyp/lint.py build/android/gyp/merge_manifest.py -build/android/gyp/package_resources.py +build/android/gyp/process_resources.py build/android/gyp/write_build_config.py build/android/incremental_install/generate_android_manifest.py build/android/lint/suppress.py @@ -251,12 +252,14 @@ chrome/android/java/res/drawable/downloads_big.xml chrome/android/java/res/drawable/elo_card.xml chrome/android/java/res/drawable/file_picker_scrim.xml chrome/android/java/res/drawable/flush_footer_button.xml +chrome/android/java/res/drawable/google_pay.xml chrome/android/java/res/drawable/grey_with_top_rounded_corners.xml chrome/android/java/res/drawable/history_big.xml chrome/android/java/res/drawable/ic_add.xml chrome/android/java/res/drawable/ic_block_red.xml chrome/android/java/res/drawable/ic_bluetooth_connected.xml chrome/android/java/res/drawable/ic_cast_dark_chrome.xml +chrome/android/java/res/drawable/ic_check_googblue_24dp_animated.xml chrome/android/java/res/drawable/ic_collections_grey.xml chrome/android/java/res/drawable/ic_content_copy_black.xml chrome/android/java/res/drawable/ic_credit_card_black.xml @@ -335,6 +338,7 @@ chrome/android/java/res/layout/account_chooser_dialog_title.xml chrome/android/java/res/layout/account_management_account_row.xml chrome/android/java/res/layout/account_signin_account_view.xml chrome/android/java/res/layout/account_signin_view.xml +chrome/android/java/res/layout/add_languages_main.xml chrome/android/java/res/layout/add_site_dialog.xml chrome/android/java/res/layout/add_to_homescreen_dialog.xml chrome/android/java/res/layout/app_menu_layout.xml @@ -395,7 +399,6 @@ chrome/android/java/res/layout/custom_tabs_bottombar_item.xml chrome/android/java/res/layout/custom_tabs_control_container.xml chrome/android/java/res/layout/custom_tabs_toolbar.xml chrome/android/java/res/layout/data_reduction_main_menu_item.xml -chrome/android/java/res/layout/data_reduction_old_stats_layout.xml chrome/android/java/res/layout/data_reduction_stats_layout.xml chrome/android/java/res/layout/data_usage_breakdown.xml chrome/android/java/res/layout/data_usage_breakdown_row.xml @@ -445,6 +448,7 @@ chrome/android/java/res/layout/infobar_translate_tab_content.xml chrome/android/java/res/layout/item_chooser_dialog.xml chrome/android/java/res/layout/item_chooser_dialog_row.xml chrome/android/java/res/layout/js_modal_dialog.xml +chrome/android/java/res/layout/languages_preference.xml chrome/android/java/res/layout/lightweight_fre_tos.xml chrome/android/java/res/layout/list_menu_button.xml chrome/android/java/res/layout/list_menu_item.xml @@ -455,6 +459,8 @@ chrome/android/java/res/layout/main.xml chrome/android/java/res/layout/manage_space_activity.xml chrome/android/java/res/layout/material_tooltip.xml chrome/android/java/res/layout/menu_item.xml +chrome/android/java/res/layout/modal_dialog_container.xml +chrome/android/java/res/layout/modal_dialog_view.xml chrome/android/java/res/layout/modern_list_item_view.xml chrome/android/java/res/layout/multiline_spinner_item.xml chrome/android/java/res/layout/new_tab_page_action_card.xml @@ -529,7 +535,6 @@ chrome/android/java/res/layout/search_toolbar.xml chrome/android/java/res/layout/search_widget_template.xml chrome/android/java/res/layout/selectable_list_layout.xml chrome/android/java/res/layout/share_dialog_item.xml -chrome/android/java/res/layout/signin_and_sync_view.xml chrome/android/java/res/layout/signin_progress_bar_dialog.xml chrome/android/java/res/layout/site_list_expandable_header.xml chrome/android/java/res/layout/snackbar.xml @@ -542,6 +547,7 @@ chrome/android/java/res/layout/sync_custom_passphrase.xml chrome/android/java/res/layout/sync_enter_passphrase.xml chrome/android/java/res/layout/sync_error_widget.xml chrome/android/java/res/layout/sync_passphrase_types.xml +chrome/android/java/res/layout/sync_promo_view.xml chrome/android/java/res/layout/tabular_context_menu.xml chrome/android/java/res/layout/tabular_context_menu_page.xml chrome/android/java/res/layout/tabular_context_menu_row.xml @@ -577,6 +583,7 @@ chrome/android/java/res/menu/bottom_sheet_nav_menu.xml chrome/android/java/res/menu/custom_tabs_menu.xml chrome/android/java/res/menu/download_manager_menu.xml chrome/android/java/res/menu/history_manager_menu.xml +chrome/android/java/res/menu/languages_action_bar_menu.xml chrome/android/java/res/menu/main_menu.xml chrome/android/java/res/menu/password_entry_editor_action_bar_menu.xml chrome/android/java/res/menu/payments_editor_menu.xml @@ -605,6 +612,7 @@ chrome/android/java/res/xml/contextual_search_preferences.xml chrome/android/java/res/xml/data_reduction_preferences.xml chrome/android/java/res/xml/data_reduction_preferences_off.xml chrome/android/java/res/xml/do_not_track_preferences.xml +chrome/android/java/res/xml/download_preferences.xml chrome/android/java/res/xml/file_paths.xml chrome/android/java/res/xml/homepage_preferences.xml chrome/android/java/res/xml/languages_preferences.xml @@ -675,7 +683,6 @@ chrome/browser/android/webapk/webapk_installer.cc chrome/browser/app_controller_mac.mm chrome/browser/apps/app_browsertest.cc chrome/browser/apps/app_window_browsertest.cc -chrome/browser/apps/drive/drive_app_converter.cc chrome/browser/apps/guest_view/web_view_browsertest.cc chrome/browser/apps/install_chrome_app.cc chrome/browser/autocomplete/autocomplete_browsertest.cc @@ -687,17 +694,17 @@ chrome/browser/banners/app_banner_settings_helper_unittest.cc chrome/browser/bookmarks/managed_bookmark_service_unittest.cc chrome/browser/browser_about_handler_unittest.cc chrome/browser/browser_commands_unittest.cc -chrome/browser/browsing_data/bookmark_counter_unittest.cc chrome/browser/browsing_data/browsing_data_channel_id_helper_unittest.cc chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc chrome/browser/browsing_data/browsing_data_database_helper_browsertest.cc chrome/browser/browsing_data/browsing_data_local_storage_helper_browsertest.cc chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc chrome/browser/browsing_data/cookies_tree_model.cc -chrome/browser/browsing_data/history_counter_browsertest.cc -chrome/browser/browsing_data/passwords_counter_browsertest.cc -chrome/browser/browsing_data/site_data_counting_helper_unittest.cc -chrome/browser/browsing_data/site_settings_counter_unittest.cc +chrome/browser/browsing_data/counters/bookmark_counter_unittest.cc +chrome/browser/browsing_data/counters/history_counter_browsertest.cc +chrome/browser/browsing_data/counters/passwords_counter_browsertest.cc +chrome/browser/browsing_data/counters/site_data_counting_helper_unittest.cc +chrome/browser/browsing_data/counters/site_settings_counter_unittest.cc chrome/browser/captive_portal/captive_portal_service.h chrome/browser/captive_portal/captive_portal_tab_helper.h chrome/browser/chrome_browser_application_mac.mm @@ -716,7 +723,6 @@ chrome/browser/chromeos/arc/bluetooth/arc_bluetooth_bridge.h chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog_unittest.cc chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle_unittest.cc -chrome/browser/chromeos/arc/notification/arc_provision_notification_service_unittest.cc chrome/browser/chromeos/arc/policy/arc_policy_bridge_unittest.cc chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service_unittest.cc chrome/browser/chromeos/arc/voice_interaction/voice_interaction_controller_client_unittest.cc @@ -787,7 +793,6 @@ chrome/browser/chromeos/printing/specifics_translation_unittest.cc chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc chrome/browser/chromeos/proxy_config_service_impl_unittest.cc chrome/browser/chromeos/settings/cros_settings_unittest.cc -chrome/browser/chromeos/status/data_promo_notification.cc chrome/browser/component_updater/recovery_component_installer.cc chrome/browser/conflicts/installed_programs_win.cc chrome/browser/content_settings/content_settings_default_provider_unittest.cc @@ -796,7 +801,6 @@ chrome/browser/content_settings/content_settings_policy_provider_unittest.cc chrome/browser/content_settings/content_settings_pref_provider_unittest.cc chrome/browser/content_settings/host_content_settings_map_unittest.cc chrome/browser/content_settings/sound_content_setting_observer_unittest.cc -chrome/browser/content_settings/tab_specific_content_settings.cc chrome/browser/content_settings/tab_specific_content_settings_unittest.cc chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc chrome/browser/devtools/device/adb/adb_client_socket_browsertest.cc @@ -859,6 +863,7 @@ chrome/browser/extensions/api/passwords_private/passwords_private_utils_unittest chrome/browser/extensions/api/permissions/permissions_api_helpers.cc chrome/browser/extensions/api/preference/preference_api_prefs_unittest.cc chrome/browser/extensions/api/proxy/proxy_api_helpers_unittest.cc +chrome/browser/extensions/api/runtime/runtime_apitest.cc chrome/browser/extensions/api/screenlock_private/screenlock_private_apitest.cc chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc @@ -940,21 +945,21 @@ chrome/browser/loader/chrome_resource_dispatcher_host_delegate_browsertest.cc chrome/browser/loader/chrome_resource_dispatcher_host_delegate_unittest.cc chrome/browser/local_discovery/service_discovery_client_mac.mm chrome/browser/media/media_engagement_contents_observer_unittest.cc +chrome/browser/media/media_engagement_preloaded_list_unittest.cc chrome/browser/media/media_engagement_score_unittest.cc chrome/browser/media/media_engagement_service_unittest.cc chrome/browser/media/media_engagement_session_unittest.cc -chrome/browser/media/media_url_constants.cc chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser_unittest.cc chrome/browser/media/router/discovery/discovery_network_list_win.cc -chrome/browser/media/router/local_presentation_manager.h chrome/browser/media/router/media_router_dialog_controller_unittest.cc chrome/browser/media/router/media_router_metrics_unittest.cc chrome/browser/media/router/media_sinks_observer.h chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc -chrome/browser/media/router/mojo/media_router_mojo_test.cc -chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc -chrome/browser/media/webrtc/webrtc_audio_quality_browsertest.cc +chrome/browser/media/router/presentation/local_presentation_manager.h +chrome/browser/media/router/presentation/presentation_media_sinks_observer_unittest.cc +chrome/browser/media/router/test/media_router_mojo_test.cc chrome/browser/media/webrtc/webrtc_browsertest_common.cc +chrome/browser/media/webrtc/webrtc_log_uploader.cc chrome/browser/media/webrtc/webrtc_video_quality_browsertest.cc chrome/browser/media_galleries/fileapi/media_path_filter.cc chrome/browser/metrics/antivirus_metrics_provider_win.cc @@ -980,7 +985,7 @@ chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_unittest.cc chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc -chrome/browser/notifications/login_state_notification_blocker_chromeos_browsertest.cc +chrome/browser/net/variations_http_headers_browsertest.cc chrome/browser/notifications/notification_image_retainer_unittest.cc chrome/browser/notifications/notification_permission_context_unittest.cc chrome/browser/notifications/notification_platform_bridge_linux_unittest.cc @@ -988,6 +993,7 @@ chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm chrome/browser/notifications/notification_platform_bridge_win_unittest.cc chrome/browser/notifications/notification_template_builder.h chrome/browser/notifications/platform_notification_service_unittest.cc +chrome/browser/notifications/session_state_notification_blocker_chromeos_browsertest.cc chrome/browser/page_load_metrics/metrics_web_contents_observer_unittest.cc chrome/browser/page_load_metrics/observers/aborts_page_load_metrics_observer_unittest.cc chrome/browser/page_load_metrics/observers/ads_page_load_metrics_observer.cc @@ -1131,8 +1137,11 @@ chrome/browser/resources/chromeos/login/oobe_wait_for_container_ready.html chrome/browser/resources/chromeos/login/screen_arc_terms_of_service.html chrome/browser/resources/chromeos/login/screen_arc_terms_of_service.js chrome/browser/resources/chromeos/select_to_speak/manifest.json.jinja2 +chrome/browser/resources/chromeos/select_to_speak/mock_tts.js chrome/browser/resources/chromeos/select_to_speak/options.css +chrome/browser/resources/chromeos/select_to_speak/select_to_speak.js chrome/browser/resources/chromeos/select_to_speak/strings/select_to_speak_strings.grd +chrome/browser/resources/chromeos/select_to_speak/test_support.js chrome/browser/resources/chromeos/wallpaper_manager/css/wallpaper_manager.css chrome/browser/resources/chromeos/wallpaper_manager/js/constants.js chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js @@ -1143,6 +1152,7 @@ chrome/browser/resources/chromeos/zip_archiver/js/types.js chrome/browser/resources/chromeos/zip_archiver/js/volume.js chrome/browser/resources/chromeos/zip_archiver/unpacker-test/cpp/Makefile chrome/browser/resources/cloud_print_app/manifest.json +chrome/browser/resources/cryptotoken/asn1.js chrome/browser/resources/cryptotoken/cryptotokenapprovedorigins.js chrome/browser/resources/cryptotoken/googlecorpindividualattest.js chrome/browser/resources/cryptotoken/usbgnubbydevice.js @@ -1155,7 +1165,9 @@ chrome/browser/resources/hangout_services/manifest.json chrome/browser/resources/identity_scope_approval_dialog/scope_approval_dialog.js chrome/browser/resources/inspect/inspect.html chrome/browser/resources/local_ntp/voice.js +chrome/browser/resources/md_bookmarks/command_manager.js chrome/browser/resources/md_user_manager/user_manager.js +chrome/browser/resources/media/mei_preload/manifest.json chrome/browser/resources/media/webrtc_logs.js chrome/browser/resources/net_internals/domain_security_policy_view.html chrome/browser/resources/net_internals/domain_security_policy_view.js @@ -1176,6 +1188,8 @@ chrome/browser/resources/settings/about_page/channel_switcher_dialog.html chrome/browser/resources/settings/appearance_page/appearance_page.js chrome/browser/resources/settings/change_password_page/change_password_browser_proxy.js chrome/browser/resources/settings/device_page/stylus.js +chrome/browser/resources/settings/icons.html +chrome/browser/resources/settings/languages_page/edit_dictionary_page.js chrome/browser/resources/settings/people_page/users_add_user_dialog.js chrome/browser/resources/settings/settings_shared_css.html chrome/browser/resources/standalone/standalone_hack.js @@ -1216,6 +1230,7 @@ chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model_b chrome/browser/safe_search_api/safe_search_url_checker.cc chrome/browser/search/instant_unittest_base.cc chrome/browser/search/local_ntp_source.cc +chrome/browser/search/one_google_bar/one_google_bar_fetcher_impl.cc chrome/browser/search/one_google_bar/one_google_bar_service_unittest.cc chrome/browser/search/search.h chrome/browser/search_engines/template_url_parser_unittest.cc @@ -1278,12 +1293,12 @@ chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc chrome/browser/ui/app_list/extension_app_model_builder_unittest.cc chrome/browser/ui/app_list/search/answer_card/answer_card_result_unittest.cc chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc -chrome/browser/ui/app_list/search/omnibox_result_unittest.cc chrome/browser/ui/app_list/speech_auth_helper.cc chrome/browser/ui/app_list/speech_auth_helper_unittest.cc chrome/browser/ui/app_list/start_page_service.cc chrome/browser/ui/ash/chrome_shell_delegate.cc chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc +chrome/browser/ui/ash/network/data_promo_notification.cc chrome/browser/ui/ash/system_tray_client_browsertest.cc chrome/browser/ui/autofill/chrome_autofill_client.cc chrome/browser/ui/blocked_content/popup_blocker_browsertest.cc @@ -1339,8 +1354,8 @@ chrome/browser/ui/content_settings/content_setting_image_model_unittest.cc chrome/browser/ui/crypto_module_password_dialog_nss.cc chrome/browser/ui/desktop_ios_promotion/sms_service.cc chrome/browser/ui/extensions/extension_action_view_controller_unittest.cc -chrome/browser/ui/extensions/extension_install_ui_default.cc chrome/browser/ui/extensions/extension_message_bubble_browsertest.cc +chrome/browser/ui/extensions/installation_error_infobar_delegate.cc chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc chrome/browser/ui/libgtkui/gtk_util.cc chrome/browser/ui/omnibox/omnibox_view_browsertest.cc @@ -1365,6 +1380,8 @@ chrome/browser/ui/toolbar/media_router_contextual_menu.cc chrome/browser/ui/toolbar/toolbar_model_unittest.cc chrome/browser/ui/views/accessibility/invert_bubble_view.cc chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views_unittest.cc +chrome/browser/ui/views/autofill/save_card_bubble_views_browsertest.cc +chrome/browser/ui/views/autofill/save_card_bubble_views_browsertest_base.cc chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc @@ -1374,6 +1391,9 @@ chrome/browser/ui/views/frame/browser_command_handler_linux.cc chrome/browser/ui/views/frame/browser_view.h chrome/browser/ui/views/intent_picker_bubble_view_unittest.cc chrome/browser/ui/views/network_profile_bubble_view.cc +chrome/browser/ui/views/omnibox/omnibox_result_view_unittest.cc +chrome/browser/ui/views/omnibox/omnibox_view_views.cc +chrome/browser/ui/views/omnibox/omnibox_view_views.h chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc chrome/browser/ui/views/outdated_upgrade_bubble_view.cc chrome/browser/ui/views/page_info/page_info_bubble_view_browsertest.cc @@ -1391,6 +1411,7 @@ chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h chrome/browser/ui/webui/chromeos/login/l10n_util_unittest.cc chrome/browser/ui/webui/chromeos/login/signin_userlist_unittest.cc +chrome/browser/ui/webui/chromeos/system_web_dialog_browsertest.cc chrome/browser/ui/webui/components_ui.cc chrome/browser/ui/webui/favicon_source.h chrome/browser/ui/webui/interstitials/interstitial_ui.cc @@ -1405,6 +1426,7 @@ chrome/browser/ui/webui/media_router/query_result_manager.h chrome/browser/ui/webui/ntp/new_tab_ui.cc chrome/browser/ui/webui/ntp/ntp_resource_cache.cc chrome/browser/ui/webui/policy_ui_browsertest.cc +chrome/browser/ui/webui/print_preview/pdf_printer_handler_unittest.cc chrome/browser/ui/webui/profile_info_watcher.h chrome/browser/ui/webui/settings/on_startup_handler_unittest.cc chrome/browser/ui/webui/settings/people_handler_unittest.cc @@ -1464,7 +1486,6 @@ chrome/common/extensions/sync_type_unittest.cc chrome/common/importer/firefox_importer_utils.cc chrome/common/mac/cfbundle_blocker.mm chrome/common/mac/cfbundle_blocker_unittest.mm -chrome/common/media_router/media_source_helper.cc chrome/common/media_router/media_source_helper.h chrome/common/media_router/media_source_helper_unittest.cc chrome/common/media_router/media_source_unittest.cc @@ -1627,6 +1648,7 @@ chrome/third_party/mozilla_security_manager/nsNSSCertificate.h chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.cpp chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.h chrome/tools/build/win/create_installer_archive.py +chrome/tools/build/win/makecab.py chrome/tools/webforms_aggregator_tests.py chrome/tools/weburl_links.txt chrome/utility/importer/bookmark_html_reader.h @@ -1686,10 +1708,12 @@ cloud_print/virtual_driver/win/port_monitor/port_monitor.cc components/arc/arc_session_impl_unittest.cc components/arc/intent_helper/arc_intent_helper_bridge_unittest.cc components/arc/intent_helper/link_handler_model_unittest.cc +components/assist_ranker/predictor_config_definitions.cc components/autofill/android/java/res/drawable/autofill_chip_inset.xml components/autofill/android/java/res/layout/autofill_keyboard_accessory_icon.xml components/autofill/android/java/res/layout/autofill_keyboard_accessory_item.xml components/autofill/content/common/autofill_types_struct_traits_unittest.cc +components/autofill/content/renderer/PRESUBMIT.py components/autofill/content/renderer/password_form_conversion_utils.cc components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc components/autofill/core/browser/address_field.cc @@ -1699,9 +1723,7 @@ components/autofill/core/browser/autofill_experiments_unittest.cc components/autofill/core/browser/autofill_manager_unittest.cc components/autofill/core/browser/autofill_metrics_unittest.cc components/autofill/core/browser/autofill_profile_unittest.cc -components/autofill/core/browser/credit_card_save_manager_unittest.cc components/autofill/core/browser/form_data_importer_unittest.cc -components/autofill/core/browser/form_structure.cc components/autofill/core/browser/form_structure_unittest.cc components/autofill/core/browser/payments/full_card_request_unittest.cc components/autofill/core/browser/payments/payments_client.cc @@ -1709,6 +1731,7 @@ components/autofill/core/browser/payments/payments_client_unittest.cc components/autofill/core/browser/payments/payments_service_url.cc components/autofill/core/browser/payments/payments_service_url_unittest.cc components/autofill/core/browser/personal_data_manager.cc +components/autofill/core/browser/personal_data_manager_unittest.cc components/autofill/core/common/autofill_constants.cc components/autofill/core/common/password_form_fill_data_unittest.cc components/bookmarks/browser/bookmark_index_unittest.cc @@ -1743,7 +1766,6 @@ components/content_settings/core/common/content_settings_pattern_unittest.cc components/cookie_config/cookie_store_util.cc components/crash/content/app/breakpad_linux.cc components/crash/content/app/breakpad_win.cc -components/crash/content/app/crash_export_thunks.cc components/crash/content/app/crash_export_thunks.h components/crash/content/app/crashpad_mac.mm components/crash/content/app/crashpad_win.cc @@ -1762,6 +1784,7 @@ components/cronet/ios/Cronet.h components/cronet/ios/cronet_consumer/cronet_consumer_app_delegate.mm components/cronet/ios/test/cronet_performance_test.mm components/cronet/native/cronet.idl +components/cronet/tools/cr_cronet.py components/cronet/tools/generate_javadoc.py components/cryptauth/cryptauth_access_token_fetcher_impl.cc components/cryptauth/cryptauth_api_call_flow_unittest.cc @@ -1774,6 +1797,7 @@ components/cryptauth/switches.cc components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc components/data_reduction_proxy/content/browser/content_resource_type_provider_unittest.cc +components/data_reduction_proxy/content/browser/data_reduction_proxy_pingback_client_impl_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h @@ -1784,7 +1808,6 @@ components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc -components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc components/data_reduction_proxy/core/common/chrome_proxy_header.txt components/data_reduction_proxy/core/common/data_reduction_proxy_headers_unittest.cc @@ -1821,6 +1844,7 @@ components/favicon/core/large_icon_service.cc components/favicon/core/large_icon_service_unittest.cc components/favicon_base/favicon_url_parser_unittest.cc components/feedback/feedback_uploader.cc +components/flags_ui/resources/flags.html components/gcm_driver/gcm_account_mapper.cc components/gcm_driver/gcm_account_mapper_unittest.cc components/gcm_driver/gcm_account_tracker.cc @@ -1830,6 +1854,7 @@ components/google/core/browser/google_url_tracker.cc components/google/core/browser/google_url_tracker_unittest.cc components/google/core/browser/google_util.cc components/google/core/browser/google_util_unittest.cc +components/grpc_support/PRESUBMIT.py components/history/core/browser/browsing_history_service.cc components/history/core/browser/expire_history_backend_unittest.cc components/history/core/browser/history_backend.cc @@ -1842,6 +1867,7 @@ components/history/core/browser/history_service.h components/history/core/browser/history_service_unittest.cc components/history/core/browser/history_types_unittest.cc components/history/core/browser/thumbnail_database.cc +components/history/core/browser/thumbnail_database.h components/history/core/browser/thumbnail_database_unittest.cc components/history/core/browser/top_sites_cache_unittest.cc components/history/core/browser/top_sites_database.cc @@ -1896,6 +1922,7 @@ components/ntp_tiles/resources/default_popular_sites.json components/offline_pages/core/background/cleanup_task_unittest.cc components/offline_pages/core/background/pick_request_task_unittest.cc components/offline_pages/core/background/reconcile_task_unittest.cc +components/offline_pages/core/model/add_page_to_download_manager_task_unittest.cc components/offline_pages/core/model/get_pages_task_unittest.cc components/offline_pages/core/prefetch/add_unique_urls_task_unittest.cc components/offline_pages/core/prefetch/prefetch_dispatcher_impl_unittest.cc @@ -2102,7 +2129,6 @@ components/signin/core/browser/account_reconcilor_unittest.cc components/signin/core/browser/account_tracker_service_unittest.cc components/signin/core/browser/chrome_connected_header_helper.cc components/signin/core/browser/gaia_cookie_manager_service_unittest.cc -components/signin/core/browser/refresh_token_annotation_request_unittest.cc components/signin/core/browser/resources/signin_internals.js components/signin/core/browser/signin_header_helper_unittest.cc components/signin/core/browser/signin_manager_unittest.cc @@ -2167,9 +2193,11 @@ components/url_matcher/url_matcher_unittest.cc components/url_pattern_index/url_pattern_index_unittest.cc components/variations/net/variations_http_headers.cc components/variations/net/variations_http_headers_unittest.cc +components/variations/pref_names.cc components/variations/variations_url_constants.cc components/visitedlink/test/visitedlink_perftest.cc components/visitedlink/test/visitedlink_unittest.cc +components/viz/service/display_embedder/gpu_display_provider.cc components/viz/service/hit_test/hit_test_aggregator.cc components/web_contents_delegate_android/java/res/drawable/color_button_background.xml components/web_contents_delegate_android/java/res/drawable/color_picker_border.xml @@ -2222,10 +2250,12 @@ content/browser/frame_host/render_frame_host_manager.cc content/browser/frame_host/render_frame_host_manager_browsertest.cc content/browser/frame_host/render_frame_host_manager_unittest.cc content/browser/geolocation/geolocation_service_impl_unittest.cc +content/browser/gpu/gpu_data_manager_impl_private.cc content/browser/indexed_db/indexed_db_backing_store_unittest.cc content/browser/indexed_db/indexed_db_reporting.cc content/browser/indexed_db/leveldb/leveldb_database.cc content/browser/loader/cross_site_document_resource_handler.h +content/browser/loader/cross_site_document_resource_handler_unittest.cc content/browser/loader/intercepting_resource_handler_unittest.cc content/browser/loader/mime_sniffing_resource_handler_unittest.cc content/browser/loader/redirect_to_file_resource_handler.cc @@ -2236,9 +2266,9 @@ content/browser/loader/resource_handler.h content/browser/loader/resource_scheduler.cc content/browser/media/media_devices_permission_checker_unittest.cc content/browser/memory/memory_condition_observer.cc +content/browser/net/accept_header_browsertest.cc content/browser/notification_service_impl.cc content/browser/notifications/notification_database_unittest.cc -content/browser/permissions/permission_service_impl_unittest.cc content/browser/plugin_service_impl_unittest.cc content/browser/push_messaging/push_messaging_manager.cc content/browser/renderer_host/compositor_impl_android.cc @@ -2255,7 +2285,6 @@ content/browser/sandbox_ipc_linux.h content/browser/screen_orientation/screen_orientation_provider_unittest.cc content/browser/service_worker/service_worker_database.cc content/browser/service_worker/service_worker_metrics.cc -content/browser/service_worker/service_worker_url_loader_job.cc content/browser/session_history_browsertest.cc content/browser/site_instance_impl_unittest.cc content/browser/site_per_process_browsertest.cc @@ -2269,13 +2298,13 @@ content/browser/web_contents/web_drag_dest_mac_unittest.mm content/browser/webauth/authenticator_impl_unittest.cc content/browser/zygote_host/zygote_communication_linux.h content/browser/zygote_host/zygote_host_impl_linux.cc +content/common/cross_site_document_classifier.cc content/common/cross_site_document_classifier_unittest.cc content/common/font_config_ipc_linux.h content/common/page_state_serialization_unittest.cc content/common/quarantine/quarantine_mac.mm content/common/quarantine/quarantine_win.cc content/network/PRESUBMIT.py -content/network/cookie_manager_unittest.cc content/network/proxy_resolver_factory_mojo_unittest.cc content/public/android/java/res/drawable/floating_popup_background_light.xml content/public/android/java/res/layout-land/date_time_picker_dialog.xml @@ -2297,10 +2326,11 @@ content/public/browser/zygote_host_linux.h content/public/common/content_descriptors.h content/public/common/content_features.cc content/public/common/content_switches.cc -content/public/common/resource_response.h content/public/common/url_constants.cc content/public/renderer/content_renderer_client.h content/public/renderer/render_view.h +content/public/test/blink_test_environment.cc +content/renderer/loader/request_extra_data.cc content/renderer/loader/resource_dispatcher.cc content/renderer/loader/resource_dispatcher.h content/renderer/loader/resource_dispatcher_unittest.cc @@ -2315,7 +2345,6 @@ content/renderer/render_thread_impl_unittest.cc content/renderer/render_view_browsertest.cc content/renderer/render_view_impl.h content/renderer/renderer_main_platform_delegate_linux.cc -content/renderer/service_worker/service_worker_subresource_loader.cc content/renderer/service_worker/web_service_worker_provider_impl.cc content/renderer/v8_value_converter_impl_unittest.cc content/renderer/visual_state_browsertest.cc @@ -2331,13 +2360,14 @@ content/shell/android/shell_apk/res/layout/content_shell_activity.xml content/shell/browser/shell_browser_main_parts.cc content/shell/browser/shell_devtools_manager_delegate.cc content/shell/common/layout_test/layout_test_switches.cc -content/test/blink_test_environment.cc content/test/gpu/PRESUBMIT.py content/test/gpu/gather_swarming_json_results.py content/test/gpu/generate_buildbot_json.py content/test/gpu/gpu_tests/cloud_storage_integration_test_base.py +content/test/gpu/trigger_gpu_test.py content/test/test_render_view_host.cc content/zygote/zygote_linux.cc +content/zygote/zygote_linux.h content/zygote/zygote_main_linux.cc courgette/disassembler_win32.cc courgette/ensemble_unittest.cc @@ -2364,6 +2394,11 @@ device/gamepad/raw_input_data_fetcher_win.cc device/gamepad/xbox_controller_mac.mm device/geolocation/network_location_provider_unittest.cc device/geolocation/network_location_request.cc +device/u2f/register_response_data_fuzzer.cc +device/u2f/sign_response_data_fuzzer.cc +device/u2f/u2f_register_unittest.cc +device/u2f/u2f_request_unittest.cc +device/u2f/u2f_sign_unittest.cc extensions/browser/PRESUBMIT.py extensions/browser/api/declarative/declarative_rule.h extensions/browser/api/declarative_net_request/flat_ruleset_indexer_unittest.cc @@ -2435,7 +2470,6 @@ extensions/shell/browser/shell_oauth2_token_service_delegate.h extensions/shell/browser/shell_oauth2_token_service_unittest.cc extensions/shell/browser/shell_prefs.cc extensions/strings/extensions_strings.grd -extensions/utility/scoped_callback_runner.h gin/public/debug.h gin/v8_initializer.cc google_apis/drive/base_requests.cc @@ -2517,7 +2551,6 @@ ios/chrome/browser/about_flags.mm ios/chrome/browser/browser_state/chrome_browser_state_impl.h ios/chrome/browser/browser_state/chrome_browser_state_removal_controller.mm ios/chrome/browser/chrome_url_constants.cc -ios/chrome/browser/content_suggestions/ntp_home_mediator.mm ios/chrome/browser/geolocation/omnibox_geolocation_controller.mm ios/chrome/browser/history/history_tab_helper_unittest.mm ios/chrome/browser/metrics/tab_usage_recorder_unittest.mm @@ -2530,7 +2563,6 @@ ios/chrome/browser/passwords/password_controller_unittest.mm ios/chrome/browser/payments/ios_payment_instrument.mm ios/chrome/browser/payments/ios_payment_instrument_finder_unittest.mm ios/chrome/browser/payments/payment_request.mm -ios/chrome/browser/physical_web/start_physical_web_discovery.mm ios/chrome/browser/prerender/preload_controller_unittest.mm ios/chrome/browser/prerender/prerender_service_unittest.mm ios/chrome/browser/signin/authentication_service.h @@ -2543,19 +2575,24 @@ ios/chrome/browser/ui/activity_services/activity_service_controller_unittest.mm ios/chrome/browser/ui/authentication/authentication_flow_performer.mm ios/chrome/browser/ui/authentication/re_signin_infobar_delegate_unittest.mm ios/chrome/browser/ui/authentication/signin_earlgrey_utils.mm -ios/chrome/browser/ui/bookmarks/bookmarks_new_generation_egtest.mm +ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm +ios/chrome/browser/ui/browser_view_controller.mm ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm ios/chrome/browser/ui/content_suggestions/content_suggestions_egtest.mm ios/chrome/browser/ui/content_suggestions/ntp_home_egtest.mm +ios/chrome/browser/ui/content_suggestions/ntp_home_mediator.mm +ios/chrome/browser/ui/content_suggestions/ntp_home_mediator_unittest.mm ios/chrome/browser/ui/content_suggestions/ntp_home_test_utils.mm ios/chrome/browser/ui/contextual_search/contextual_search_delegate.cc ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm +ios/chrome/browser/ui/first_run/welcome_to_chrome_view_controller.mm ios/chrome/browser/ui/history/history_panel_view_controller.mm ios/chrome/browser/ui/history_popup/tab_history_view_controller.mm ios/chrome/browser/ui/ntp/incognito_view.mm ios/chrome/browser/ui/ntp/notification_promo_whats_new.mm ios/chrome/browser/ui/ntp/notification_promo_whats_new_unittest.mm ios/chrome/browser/ui/omnibox/autocomplete_match_formatter.mm +ios/chrome/browser/ui/omnibox/clipping_textfield_container_unittest.mm ios/chrome/browser/ui/omnibox/omnibox_text_field_ios_unittest.mm ios/chrome/browser/ui/payments/cells/page_info_item.mm ios/chrome/browser/ui/payments/payment_request_manager.h @@ -2574,11 +2611,9 @@ ios/chrome/browser/web/external_apps_launch_policy_decider_unittest.mm ios/chrome/browser/web/mailto_handler_system_mail_unittest.mm ios/chrome/browser/web/mailto_handler_unittest.mm ios/chrome/browser/web/resources/PRESUBMIT.py -ios/chrome/browser/web_state_list/web_state_list_fast_enumeration_helper_unittest.mm ios/chrome/browser/web_state_list/web_state_list_order_controller_unittest.mm ios/chrome/browser/web_state_list/web_state_list_unittest.mm ios/chrome/common/ns_regular_expression_unittest.mm -ios/chrome/common/physical_web/physical_web_request.mm ios/chrome/common/x_callback_url_unittest.cc ios/chrome/test/app/signin_test_util.mm ios/chrome/test/earl_grey/device_check_egtest.mm @@ -2595,6 +2630,7 @@ ios/web/navigation/crw_session_controller_unittest.mm ios/web/navigation/history_state_operations_inttest.mm ios/web/navigation/navigation_manager_impl.mm ios/web/navigation/navigation_manager_util_unittest.mm +ios/web/net/cookies/system_cookie_store_util_unittest.mm ios/web/public/origin_util_unittest.mm ios/web/web_state/js/context_menu_js_unittest.mm ios/web/web_state/js/crw_js_post_request_loader_unittest.mm @@ -2626,9 +2662,11 @@ media/capture/content/smooth_event_sampler_unittest.cc media/capture/video/android/video_capture_device_android.h media/capture/video/linux/v4l2_capture_delegate.cc media/capture/video/video_capture_device_client.cc +media/capture/video/video_capture_device_unittest.cc media/capture/video/win/sink_filter_win.cc media/capture/video/win/sink_filter_win.h media/capture/video/win/video_capture_device_mf_win.cc +media/capture/video/win/video_capture_device_utils_win.cc media/capture/video/win/video_capture_device_win.cc media/ffmpeg/ffmpeg_regression_tests.cc media/filters/PRESUBMIT.py @@ -2641,8 +2679,10 @@ media/gpu/dxva_video_decode_accelerator_win.cc media/gpu/dxva_video_decode_accelerator_win.h media/gpu/format_utils.cc media/gpu/jpeg_decode_accelerator_unittest.cc +media/gpu/jpeg_encode_accelerator_unittest.cc media/gpu/media_foundation_video_encode_accelerator_win.cc -media/gpu/vaapi_jpeg_decoder_unittest.cc +media/gpu/vaapi/vaapi_jpeg_decoder_unittest.cc +media/mojo/services/media_metrics_provider_unittest.cc media/mojo/services/watch_time_recorder_unittest.cc media/remoting/remoting_cdm_context.h media/renderers/paint_canvas_video_renderer.cc @@ -2964,6 +3004,8 @@ net/base/registry_controlled_domains/registry_controlled_domain.h net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc net/base/url_util.cc net/base/url_util_unittest.cc +net/cert/cert_verifier.h +net/cert/cert_verify_proc.cc net/cert/cert_verify_proc_ios_unittest.cc net/cert/cert_verify_proc_mac.cc net/cert/cert_verify_proc_nss.cc @@ -3063,6 +3105,7 @@ net/ntlm/ntlm_client.h net/ntlm/ntlm_test_data.h net/ntlm/ntlm_unittest.cc net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc +net/proxy/pac_js_library.h net/proxy/proxy_bypass_rules.cc net/proxy/proxy_bypass_rules.h net/proxy/proxy_bypass_rules_unittest.cc @@ -3073,7 +3116,6 @@ net/proxy/proxy_config_service_linux_unittest.cc net/proxy/proxy_config_service_win_unittest.cc net/proxy/proxy_config_unittest.cc net/proxy/proxy_resolver_mac.h -net/proxy/proxy_resolver_script.h net/proxy/proxy_resolver_v8_tracing.cc net/proxy/proxy_resolver_v8_tracing.h net/proxy/proxy_resolver_v8_unittest.cc @@ -3123,6 +3165,7 @@ net/ssl/channel_id_service_unittest.cc net/ssl/client_cert_store_mac.cc net/ssl/client_cert_store_win.cc net/ssl/default_channel_id_store_unittest.cc +net/ssl/ssl_config.h net/ssl/ssl_key_logger.h net/ssl/ssl_platform_key_android.cc net/ssl/ssl_platform_key_mac.cc @@ -3317,7 +3360,6 @@ sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc sandbox/linux/suid/client/setuid_sandbox_client.cc sandbox/linux/suid/client/setuid_sandbox_host.cc sandbox/linux/suid/sandbox.c -sandbox/linux/tests/unit_tests.cc sandbox/win/src/interception.cc sandbox/win/src/interception.h sandbox/win/src/interception_agent.cc @@ -3333,6 +3375,10 @@ sandbox/win/src/security_level.h services/device/generic_sensor/platform_sensor_ambient_light_mac.cc services/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc services/device/generic_sensor/platform_sensor_reader_win.cc +services/identity/public/cpp/identity_test_environment.h +services/network/cookie_manager_unittest.cc +services/network/public/cpp/cors/cors_unittest.cc +services/network/public/cpp/resource_response.h services/preferences/tracked/device_id_unittest.cc services/resource_coordinator/observers/metrics_collector_unittest.cc services/service_manager/runner/host/service_process_launcher.cc @@ -3341,6 +3387,8 @@ services/service_manager/sandbox/win/sandbox_win.cc services/shape_detection/PRESUBMIT.py services/shape_detection/barcode_detection_impl_mac_unittest.mm services/shape_detection/text_detection_impl_mac_unittest.mm +services/shape_detection/text_detection_impl_win.cc +services/shape_detection/text_detection_impl_win_unittest.cc services/video_capture/test/fake_device_unittest.cc skia/config/SkUserConfig.h skia/ext/skia_utils_ios_unittest.mm @@ -3366,15 +3414,17 @@ testing/buildbot/chromium.android.fyi.json testing/buildbot/chromium.android.json testing/buildbot/chromium.gpu.fyi.json testing/buildbot/chromium.gpu.json -testing/buildbot/chromium.linux.json testing/buildbot/filters/PRESUBMIT.py +testing/buildbot/generate_buildbot_json.py +testing/buildbot/generate_buildbot_json_unittest.py +testing/buildbot/scripts/upload_test_result_artifacts.py testing/buildbot/timeouts.py testing/chromoting/browser_test_commands_linux.txt testing/chromoting/chromoting_test_driver_commands_linux.txt testing/legion/lib/ssl_util.py testing/libfuzzer/coverage.py testing/libfuzzer/unittest_main.cc -testing/scripts/run_multiple_telemetry_benchmarks_as_googletest.py +testing/scripts/run_performance_tests.py testing/scripts/run_telemetry_benchmark_as_googletest.py testing/scripts/sizes.py testing/test_env.py @@ -3523,6 +3573,8 @@ third_party/WebKit/Source/bindings/tests/results/core/boolean_or_string_or_unres third_party/WebKit/Source/bindings/tests/results/core/boolean_or_test_callback_interface.h third_party/WebKit/Source/bindings/tests/results/core/byte_string_or_node_list.h third_party/WebKit/Source/bindings/tests/results/core/byte_string_sequence_sequence_or_byte_string_byte_string_record.h +third_party/WebKit/Source/bindings/tests/results/core/double_or_double_or_null_sequence.h +third_party/WebKit/Source/bindings/tests/results/core/double_or_double_sequence.h third_party/WebKit/Source/bindings/tests/results/core/double_or_long_or_boolean_sequence.h third_party/WebKit/Source/bindings/tests/results/core/double_or_string.h third_party/WebKit/Source/bindings/tests/results/core/double_or_string_or_double_or_string_sequence.h @@ -3537,6 +3589,7 @@ third_party/WebKit/Source/bindings/tests/results/core/string_or_array_buffer_or_ third_party/WebKit/Source/bindings/tests/results/core/string_or_double.h third_party/WebKit/Source/bindings/tests/results/core/string_or_string_sequence.h third_party/WebKit/Source/bindings/tests/results/core/test_enum_or_double.h +third_party/WebKit/Source/bindings/tests/results/core/test_enum_or_test_enum_sequence.h third_party/WebKit/Source/bindings/tests/results/core/test_interface_2_or_uint8_array.h third_party/WebKit/Source/bindings/tests/results/core/test_interface_garbage_collected_or_string.h third_party/WebKit/Source/bindings/tests/results/core/test_interface_or_long.h @@ -3548,10 +3601,12 @@ third_party/WebKit/Source/bindings/tests/results/modules/boolean_or_string.h third_party/WebKit/Source/build/scripts/make_computed_style_base.py third_party/WebKit/Source/build/scripts/update_css_ranking.py third_party/WebKit/Source/core/animation/CompositorAnimations.cpp +third_party/WebKit/Source/core/animation/ElementAnimations.cpp third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp third_party/WebKit/Source/core/clipboard/DataTransfer.h third_party/WebKit/Source/core/css/CSSFontFaceRule.idl +third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h third_party/WebKit/Source/core/css/CSSImportRule.idl third_party/WebKit/Source/core/css/CSSMediaRule.idl third_party/WebKit/Source/core/css/CSSPageRule.idl @@ -3562,9 +3617,14 @@ third_party/WebKit/Source/core/css/CSSStyleDeclaration.idl third_party/WebKit/Source/core/css/CSSStyleRule.idl third_party/WebKit/Source/core/css/CSSStyleSheet.idl third_party/WebKit/Source/core/css/CSSValueTestHelper.h +third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp +third_party/WebKit/Source/core/css/RuleFeatureSet.cpp third_party/WebKit/Source/core/css/SelectorChecker.cpp +third_party/WebKit/Source/core/css/StyleEngine.cpp +third_party/WebKit/Source/core/css/StyleEngineTest.cpp third_party/WebKit/Source/core/css/StyleSheet.idl third_party/WebKit/Source/core/css/StyleSheetList.idl +third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp third_party/WebKit/Source/core/dom/Attr.idl third_party/WebKit/Source/core/dom/CDATASection.idl @@ -3576,9 +3636,8 @@ third_party/WebKit/Source/core/dom/ContainerNode.cpp third_party/WebKit/Source/core/dom/DOMImplementation.idl third_party/WebKit/Source/core/dom/Document.cpp third_party/WebKit/Source/core/dom/Document.idl -third_party/WebKit/Source/core/dom/DocumentWriteIntervention.cpp -third_party/WebKit/Source/core/dom/DocumentWriteIntervention.h third_party/WebKit/Source/core/dom/Element.cpp +third_party/WebKit/Source/core/dom/Element.h third_party/WebKit/Source/core/dom/Element.idl third_party/WebKit/Source/core/dom/ElementRareData.h third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp @@ -3597,7 +3656,6 @@ third_party/WebKit/Source/core/dom/NodeIteratorBase.h third_party/WebKit/Source/core/dom/NodeList.idl third_party/WebKit/Source/core/dom/NodeListsNodeData.h third_party/WebKit/Source/core/dom/NodeRareData.h -third_party/WebKit/Source/core/dom/Policy.idl third_party/WebKit/Source/core/dom/ProcessingInstruction.idl third_party/WebKit/Source/core/dom/Range.cpp third_party/WebKit/Source/core/dom/Range.idl @@ -3641,7 +3699,6 @@ third_party/WebKit/Source/core/events/WheelEvent.idl third_party/WebKit/Source/core/exported/WebFrameContentDumper.cpp third_party/WebKit/Source/core/exported/WebPluginContainerImpl.cpp third_party/WebKit/Source/core/exported/WebSearchableFormData.cpp -third_party/WebKit/Source/core/fileapi/BlobPropertyBag.idl third_party/WebKit/Source/core/frame/Deprecation.cpp third_party/WebKit/Source/core/frame/FrameSerializer.cpp third_party/WebKit/Source/core/frame/LocalDOMWindow.h @@ -3727,8 +3784,6 @@ third_party/WebKit/Source/core/layout/LayoutThemeMac.mm third_party/WebKit/Source/core/layout/LayoutView.cpp third_party/WebKit/Source/core/layout/LayoutView.h third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp -third_party/WebKit/Source/core/layout/ScrollAlignment.cpp -third_party/WebKit/Source/core/layout/ScrollAlignment.h third_party/WebKit/Source/core/layout/TextRunConstructor.h third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp @@ -3769,7 +3824,9 @@ third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h third_party/WebKit/Source/core/paint/ThemePainterDefault.h third_party/WebKit/Source/core/paint/ThemePainterMac.mm third_party/WebKit/Source/core/paint/compositing/CompositedLayerMapping.cpp -third_party/WebKit/Source/core/paint/compositing/CompositingInputsUpdater.cpp +third_party/WebKit/Source/core/policy/Policy.idl +third_party/WebKit/Source/core/script/DocumentWriteIntervention.cpp +third_party/WebKit/Source/core/script/DocumentWriteIntervention.h third_party/WebKit/Source/core/streams/CommonOperations.js third_party/WebKit/Source/core/streams/PRESUBMIT.py third_party/WebKit/Source/core/streams/TransformStream.js @@ -3816,6 +3873,7 @@ third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h third_party/WebKit/Source/core/testing/data/hit_test.html third_party/WebKit/Source/core/timing/MemoryInfo.idl third_party/WebKit/Source/core/timing/Performance.idl +third_party/WebKit/Source/core/timing/PerformanceMarkOptions.idl third_party/WebKit/Source/core/timing/WorkerPerformance.idl third_party/WebKit/Source/core/xml/XPathExpression.idl third_party/WebKit/Source/core/xml/XPathFunctions.cpp @@ -3827,7 +3885,7 @@ third_party/WebKit/Source/devtools/front_end/audits2_worker/lighthouse/lighthous third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js third_party/WebKit/Source/devtools/front_end/cm/codemirror.js third_party/WebKit/Source/devtools/front_end/cm_modes/stylus.js -third_party/WebKit/Source/devtools/front_end/color_picker/Contrast.js +third_party/WebKit/Source/devtools/front_end/color_picker/ContrastDetails.js third_party/WebKit/Source/devtools/front_end/common/UIString.js third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js @@ -3855,8 +3913,6 @@ third_party/WebKit/Source/devtools/scripts/chrome_debug_launcher/package.json third_party/WebKit/Source/devtools/scripts/devtools_run/package.json third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js third_party/WebKit/Source/devtools/scripts/jsdoc_validator/PRESUBMIT.py -third_party/WebKit/Source/devtools/scripts/local_node/node.py -third_party/WebKit/Source/devtools/scripts/migrate_test/package.json third_party/WebKit/Source/devtools/scripts/npm_test.js third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp @@ -3904,6 +3960,7 @@ third_party/WebKit/Source/platform/graphics/FrameData.h third_party/WebKit/Source/platform/graphics/Image.cpp third_party/WebKit/Source/platform/graphics/Image.h third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp +third_party/WebKit/Source/platform/graphics/PlaceholderImageTest.cpp third_party/WebKit/Source/platform/graphics/filters/DistantLightSource.h third_party/WebKit/Source/platform/graphics/filters/FETile.cpp third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp @@ -3932,10 +3989,13 @@ third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h third_party/WebKit/Source/platform/mac/VersionUtilMac.mm third_party/WebKit/Source/platform/mojo/KURLSecurityOriginTest.cpp third_party/WebKit/Source/platform/network/FormDataEncoder.cpp +third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp third_party/WebKit/Source/platform/network/NetworkUtilsTest.cpp third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.h third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc +third_party/WebKit/Source/platform/scroll/ScrollAlignment.cpp +third_party/WebKit/Source/platform/scroll/ScrollAlignment.h third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp third_party/WebKit/Source/platform/text/ICUError.cpp third_party/WebKit/Source/platform/text/LocaleWin.cpp @@ -4020,6 +4080,7 @@ third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp third_party/android_crazy_linker/src/src/crazy_linker_wrappers.cpp third_party/android_media/java/res/layout/media_controller.xml third_party/android_platform/development/ide/intellij/codestyles/AndroidStyle.xml +third_party/android_platform/development/scripts/stack.py third_party/angle/extensions/ANGLE_client_arrays.txt third_party/angle/extensions/ANGLE_lossy_etc_decode.txt third_party/angle/extensions/ANGLE_program_cache_control.txt @@ -4039,18 +4100,21 @@ third_party/angle/extensions/EGL_ANGLE_direct3d_display.txt third_party/angle/extensions/EGL_ANGLE_direct_composition.txt third_party/angle/extensions/EGL_ANGLE_display_texture_share_group.txt third_party/angle/extensions/EGL_ANGLE_flexible_surface_compatibility.txt +third_party/angle/extensions/EGL_ANGLE_iosurface_client_buffer.txt third_party/angle/extensions/EGL_ANGLE_keyed_mutex.txt third_party/angle/extensions/EGL_ANGLE_program_cache_control.txt third_party/angle/extensions/EGL_ANGLE_robust_resource_initialization.txt third_party/angle/extensions/EGL_ANGLE_software_display.txt -third_party/angle/extensions/EGL_ANGLE_stream_producer_d3d_texture_nv12.txt +third_party/angle/extensions/EGL_ANGLE_stream_producer_d3d_texture.txt third_party/angle/extensions/EGL_ANGLE_window_fixed_size.txt third_party/angle/extensions/EGL_CHROMIUM_create_context_bind_generates_resource.txt third_party/angle/extensions/EGL_CHROMIUM_get_sync_values.txt third_party/angle/extensions/EGL_EXT_device_query.txt third_party/angle/extensions/EXT_texture_storage.txt +third_party/angle/gyp/warnings.gyp third_party/angle/include/GLSLANG/ShaderVars.h third_party/angle/scripts/bootstrap.py +third_party/angle/src/common/aligned_memory.cpp third_party/angle/src/common/third_party/smhasher/src/PMurHash.cpp third_party/angle/src/compiler/preprocessor/Tokenizer.cpp third_party/angle/src/compiler/translator/blocklayoutHLSL.h @@ -4066,6 +4130,7 @@ third_party/angle/src/libANGLE/renderer/d3d/d3d11/gen_dxgi_support_tables.py third_party/angle/src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp third_party/angle/src/libANGLE/renderer/d3d/d3d9/Renderer9.cpp third_party/angle/src/libANGLE/signal_utils.h +third_party/angle/src/libANGLE/validationEGL.cpp third_party/angle/src/tests/gl_tests/BlitFramebufferANGLETest.cpp third_party/angle/src/tests/gl_tests/BufferDataTest.cpp third_party/angle/src/tests/gl_tests/GLSLTest.cpp @@ -4198,11 +4263,8 @@ third_party/boringssl/src/third_party/googletest/test/gtest_throw_on_failure_tes third_party/boringssl/src/third_party/googletest/test/gtest_uninitialized_test.py third_party/boringssl/src/third_party/googletest/test/gtest_uninitialized_test_.cc third_party/boringssl/src/third_party/googletest/test/gtest_unittest.cc -third_party/boringssl/src/third_party/googletest/test/gtest_xml_outfile1_test_.cc -third_party/boringssl/src/third_party/googletest/test/gtest_xml_outfile2_test_.cc third_party/boringssl/src/third_party/googletest/test/gtest_xml_outfiles_test.py third_party/boringssl/src/third_party/googletest/test/gtest_xml_output_unittest.py -third_party/boringssl/src/third_party/googletest/test/gtest_xml_output_unittest_.cc third_party/boringssl/src/third_party/googletest/test/gtest_xml_test_utils.py third_party/boringssl/src/third_party/googletest/test/production.cc third_party/boringssl/src/third_party/googletest/test/production.h @@ -4296,6 +4358,7 @@ third_party/catapult/common/lab/commits.py third_party/catapult/common/lab/hardware.py third_party/catapult/common/py_utils/py_utils/cloud_storage.py third_party/catapult/common/py_utils/py_utils/cloud_storage_unittest.py +third_party/catapult/common/py_utils/py_utils/expectations_parser_unittest.py third_party/catapult/common/py_vulcanize/third_party/rcssmin/tests/main/atgroup_01.css third_party/catapult/common/py_vulcanize/third_party/rcssmin/tests/main/atgroup_02.css third_party/catapult/common/py_vulcanize/third_party/rcssmin/tests/main/atgroup_03.css @@ -4338,8 +4401,6 @@ third_party/catapult/dashboard/dashboard/auto_triage_test.py third_party/catapult/dashboard/dashboard/bad_bisect_test.py third_party/catapult/dashboard/dashboard/bench_find_anomalies.py third_party/catapult/dashboard/dashboard/bench_find_anomalies_test.py -third_party/catapult/dashboard/dashboard/bisect_fyi.py -third_party/catapult/dashboard/dashboard/bisect_fyi_test.py third_party/catapult/dashboard/dashboard/bisect_report.py third_party/catapult/dashboard/dashboard/bisect_report_test.py third_party/catapult/dashboard/dashboard/bug_details.py @@ -4349,7 +4410,6 @@ third_party/catapult/dashboard/dashboard/change_internal_only.py third_party/catapult/dashboard/dashboard/common/datastore_hooks.py third_party/catapult/dashboard/dashboard/common/datastore_hooks_test.py third_party/catapult/dashboard/dashboard/common/namespaced_stored_object_test.py -third_party/catapult/dashboard/dashboard/common/testing_common.py third_party/catapult/dashboard/dashboard/common/utils.py third_party/catapult/dashboard/dashboard/common/utils_test.py third_party/catapult/dashboard/dashboard/create_health_report_test.py @@ -4386,7 +4446,6 @@ third_party/catapult/dashboard/dashboard/elements/speed-releasing-alerts-test.ht third_party/catapult/dashboard/dashboard/elements/speed-releasing-alerts.html third_party/catapult/dashboard/dashboard/elements/speed-releasing-page.html third_party/catapult/dashboard/dashboard/elements/speed-releasing-table.html -third_party/catapult/dashboard/dashboard/elements/trace-form.html third_party/catapult/dashboard/dashboard/email_sheriff.py third_party/catapult/dashboard/dashboard/email_sheriff_test.py third_party/catapult/dashboard/dashboard/email_summary.py @@ -4415,9 +4474,10 @@ third_party/catapult/dashboard/dashboard/models/try_job.py third_party/catapult/dashboard/dashboard/mr.py third_party/catapult/dashboard/dashboard/new_points_test.py third_party/catapult/dashboard/dashboard/oauth2_decorator.py -third_party/catapult/dashboard/dashboard/pinpoint/elements/execution-status.html +third_party/catapult/dashboard/dashboard/pinpoint/elements/job-page/execution-details.html third_party/catapult/dashboard/dashboard/pinpoint/elements/navigation-bar-test.html third_party/catapult/dashboard/dashboard/pinpoint/elements/navigation-bar.html +third_party/catapult/dashboard/dashboard/pinpoint/handlers/config_test.py third_party/catapult/dashboard/dashboard/pinpoint/handlers/gitiles_test.py third_party/catapult/dashboard/dashboard/pinpoint/handlers/isolate_test.py third_party/catapult/dashboard/dashboard/pinpoint/handlers/login_test.py @@ -4430,8 +4490,8 @@ third_party/catapult/dashboard/dashboard/pinpoint/models/change/repository.py third_party/catapult/dashboard/dashboard/pinpoint/models/change/repository_test.py third_party/catapult/dashboard/dashboard/pinpoint/models/job_test.py third_party/catapult/dashboard/dashboard/pinpoint/models/quest/find_isolate_test.py +third_party/catapult/dashboard/dashboard/pinpoint/models/quest/run_test_test.py third_party/catapult/dashboard/dashboard/pinpoint_request_test.py -third_party/catapult/dashboard/dashboard/post_bisect_results_test.py third_party/catapult/dashboard/dashboard/services/buildbucket_service.py third_party/catapult/dashboard/dashboard/services/crrev_service.py third_party/catapult/dashboard/dashboard/services/crrev_service_test.py @@ -4444,11 +4504,9 @@ third_party/catapult/dashboard/dashboard/services/isolate_service_test.py third_party/catapult/dashboard/dashboard/services/issue_tracker_service.py third_party/catapult/dashboard/dashboard/services/issue_tracker_service_test.py third_party/catapult/dashboard/dashboard/services/pinpoint_service.py -third_party/catapult/dashboard/dashboard/services/rietveld_service.py third_party/catapult/dashboard/dashboard/services/swarming_service.py third_party/catapult/dashboard/dashboard/set_warning_message_test.py third_party/catapult/dashboard/dashboard/speed_releasing_test.py -third_party/catapult/dashboard/dashboard/start_try_job.py third_party/catapult/dashboard/dashboard/start_try_job_test.py third_party/catapult/dashboard/dashboard/static/simple_xhr.html third_party/catapult/dashboard/dashboard/templates/change_internal_only.html @@ -4459,6 +4517,7 @@ third_party/catapult/dashboard/dashboard/update_bug_with_results.py third_party/catapult/dashboard/dashboard/update_bug_with_results_test.py third_party/catapult/dashboard/dashboard/update_test_suites_test.py third_party/catapult/devil/PRESUBMIT.py +third_party/catapult/devil/devil/android/apk_helper.py third_party/catapult/devil/devil/android/apk_helper_test.py third_party/catapult/devil/devil/android/device_utils.py third_party/catapult/devil/devil/android/device_utils_test.py @@ -4506,7 +4565,6 @@ third_party/catapult/telemetry/telemetry/internal/backends/chrome/cros_unittest. third_party/catapult/telemetry/telemetry/internal/backends/chrome/crx_id.py third_party/catapult/telemetry/telemetry/internal/backends/chrome/oobe.py third_party/catapult/telemetry/telemetry/internal/backends/chrome_inspector/inspector_websocket.py -third_party/catapult/telemetry/telemetry/internal/backends/form_based_credentials_backend.py third_party/catapult/telemetry/telemetry/internal/browser/browser_options.py third_party/catapult/telemetry/telemetry/internal/browser/tab.py third_party/catapult/telemetry/telemetry/internal/browser/user_agent.py @@ -4655,14 +4713,17 @@ third_party/catapult/third_party/gsutil/gslib/addlhelp/subdirs.py third_party/catapult/third_party/gsutil/gslib/addlhelp/support.py third_party/catapult/third_party/gsutil/gslib/addlhelp/versions.py third_party/catapult/third_party/gsutil/gslib/boto_resumable_upload.py -third_party/catapult/third_party/gsutil/gslib/command_runner.py third_party/catapult/third_party/gsutil/gslib/commands/acl.py third_party/catapult/third_party/gsutil/gslib/commands/compose.py third_party/catapult/third_party/gsutil/gslib/commands/config.py third_party/catapult/third_party/gsutil/gslib/commands/cp.py +third_party/catapult/third_party/gsutil/gslib/commands/defstorageclass.py +third_party/catapult/third_party/gsutil/gslib/commands/label.py third_party/catapult/third_party/gsutil/gslib/commands/lifecycle.py third_party/catapult/third_party/gsutil/gslib/commands/logging.py +third_party/catapult/third_party/gsutil/gslib/commands/ls.py third_party/catapult/third_party/gsutil/gslib/commands/mb.py +third_party/catapult/third_party/gsutil/gslib/commands/mv.py third_party/catapult/third_party/gsutil/gslib/commands/notification.py third_party/catapult/third_party/gsutil/gslib/commands/perfdiag.py third_party/catapult/third_party/gsutil/gslib/commands/rsync.py @@ -4671,20 +4732,27 @@ third_party/catapult/third_party/gsutil/gslib/commands/web.py third_party/catapult/third_party/gsutil/gslib/copy_helper.py third_party/catapult/third_party/gsutil/gslib/data/cacerts.txt third_party/catapult/third_party/gsutil/gslib/gcs_json_api.py -third_party/catapult/third_party/gsutil/gslib/gcs_json_media.py +third_party/catapult/third_party/gsutil/gslib/gcs_json_credentials.py third_party/catapult/third_party/gsutil/gslib/hashing_helper.py +third_party/catapult/third_party/gsutil/gslib/iamhelpers.py +third_party/catapult/third_party/gsutil/gslib/metrics.py +third_party/catapult/third_party/gsutil/gslib/pubsub_api.py +third_party/catapult/third_party/gsutil/gslib/tests/test_data/test.json third_party/catapult/third_party/gsutil/gslib/tests/test_ls.py third_party/catapult/third_party/gsutil/gslib/tests/test_perfdiag.py third_party/catapult/third_party/gsutil/gslib/tests/test_signurl.py third_party/catapult/third_party/gsutil/gslib/tests/testcase/integration_testcase.py +third_party/catapult/third_party/gsutil/gslib/third_party/pubsub_apitools/pubsub_v1_client.py +third_party/catapult/third_party/gsutil/gslib/third_party/pubsub_apitools/pubsub_v1_messages.py third_party/catapult/third_party/gsutil/gslib/third_party/storage_apitools/storage_v1_client.py third_party/catapult/third_party/gsutil/gslib/third_party/storage_apitools/storage_v1_messages.py third_party/catapult/third_party/gsutil/gslib/util.py third_party/catapult/third_party/gsutil/setup.py +third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/protorpclite/messages.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/base_api_test.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/batch.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/credentials_lib.py -third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/testing/testclient/fusiontables_v1_client.py +third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/exceptions_test.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/transfer.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/util.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/data/apitools_client_secrets.json @@ -4692,14 +4760,38 @@ third_party/catapult/third_party/gsutil/third_party/apitools/apitools/gen/gen_cl third_party/catapult/third_party/gsutil/third_party/apitools/apitools/gen/gen_client_lib.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/gen/message_registry.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/gen/service_registry.py +third_party/catapult/third_party/gsutil/third_party/apitools/apitools/gen/testdata/dns/dns_v1.json third_party/catapult/third_party/gsutil/third_party/apitools/apitools/gen/util.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/oauth2l.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/oauth2l_test.py third_party/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/testdata/fake_client_secrets.json -third_party/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/storage/storage_v1.py -third_party/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/storage/storage_v1_client.py -third_party/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/storage/storage_v1_messages.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/bigquery_sample/bigquery_v2.json +third_party/catapult/third_party/gsutil/third_party/apitools/samples/bigquery_sample/bigquery_v2/bigquery_v2.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/bigquery_sample/bigquery_v2/bigquery_v2_client.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/bigquery_sample/bigquery_v2/bigquery_v2_messages.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/dns_sample/dns_v1.json +third_party/catapult/third_party/gsutil/third_party/apitools/samples/dns_sample/dns_v1/dns_v1.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/dns_sample/dns_v1/dns_v1_client.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/dns_sample/gen_dns_client_test.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/fusiontables_sample/fusiontables_v1.json +third_party/catapult/third_party/gsutil/third_party/apitools/samples/fusiontables_sample/fusiontables_v1/fusiontables_v1.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/fusiontables_sample/fusiontables_v1/fusiontables_v1_client.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/fusiontables_sample/fusiontables_v1/fusiontables_v1_messages.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/iam_sample/iam_client_test.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/iam_sample/iam_v1.json +third_party/catapult/third_party/gsutil/third_party/apitools/samples/iam_sample/iam_v1/iam_v1.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/iam_sample/iam_v1/iam_v1_client.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/iam_sample/iam_v1/iam_v1_messages.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/servicemanagement_sample/servicemanagement_v1.json +third_party/catapult/third_party/gsutil/third_party/apitools/samples/servicemanagement_sample/servicemanagement_v1/servicemanagement_v1.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/servicemanagement_sample/servicemanagement_v1/servicemanagement_v1_client.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/servicemanagement_sample/servicemanagement_v1/servicemanagement_v1_messages.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/storage_v1.json +third_party/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/storage_v1/storage_v1.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/storage_v1/storage_v1_client.py +third_party/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/storage_v1/storage_v1_messages.py third_party/catapult/third_party/gsutil/third_party/apitools/setup.py +third_party/catapult/third_party/gsutil/third_party/argcomplete/setup.py third_party/catapult/third_party/gsutil/third_party/boto/boto/cacerts/cacerts.txt third_party/catapult/third_party/gsutil/third_party/boto/boto/cognito/identity/layer1.py third_party/catapult/third_party/gsutil/third_party/boto/boto/connection.py @@ -4717,6 +4809,7 @@ third_party/catapult/third_party/gsutil/third_party/boto/tests/integration/rds/t third_party/catapult/third_party/gsutil/third_party/boto/tests/integration/route53/test_health_check.py third_party/catapult/third_party/gsutil/third_party/boto/tests/integration/s3/other_cacerts.txt third_party/catapult/third_party/gsutil/third_party/boto/tests/integration/s3/test_https_cert_validation.py +third_party/catapult/third_party/gsutil/third_party/boto/tests/unit/auth/test_sigv4.py third_party/catapult/third_party/gsutil/third_party/boto/tests/unit/emr/test_emr_responses.py third_party/catapult/third_party/gsutil/third_party/crcmod/setup.py third_party/catapult/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/gcs_oauth2_boto_plugin/oauth2_client.py @@ -4725,111 +4818,109 @@ third_party/catapult/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/setup third_party/catapult/third_party/gsutil/third_party/httplib2/Makefile third_party/catapult/third_party/gsutil/third_party/httplib2/index.html third_party/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/__init__.py -third_party/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/cacerts.txt -third_party/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/test/other_cacerts.txt third_party/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2test.py +third_party/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2test_appengine.py +third_party/catapult/third_party/gsutil/third_party/httplib2/python2/ssl_protocol_test.py third_party/catapult/third_party/gsutil/third_party/httplib2/python3/httplib2/__init__.py -third_party/catapult/third_party/gsutil/third_party/httplib2/python3/httplib2/cacerts.txt third_party/catapult/third_party/gsutil/third_party/httplib2/python3/httplib2/test/other_cacerts.txt third_party/catapult/third_party/gsutil/third_party/httplib2/python3/httplib2test.py -third_party/catapult/third_party/gsutil/third_party/httplib2/setup.py -third_party/catapult/third_party/gsutil/third_party/httplib2/upload-diffs.py third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/__init__.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/appengine.py third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/client.py third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/clientsecrets.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/django_orm.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/appengine.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/django_orm.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/django_util/__init__.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/flask_util.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/gce.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/keyring_storage.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/locked_file.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/multistore_file.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/contrib/xsrfutil.py third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/file.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/gce.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/keyring_storage.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/locked_file.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/multistore_file.py third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/tools.py third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/util.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/xsrfutil.py third_party/catapult/third_party/gsutil/third_party/oauth2client/samples/call_compute_service.py third_party/catapult/third_party/gsutil/third_party/oauth2client/samples/oauth2_for_devices.py third_party/catapult/third_party/gsutil/third_party/oauth2client/scripts/fetch_gae_sdk.py third_party/catapult/third_party/gsutil/third_party/oauth2client/scripts/run_system_tests.py third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/__init__.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_appengine.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_django_orm.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_django_settings.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_flask_util.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_gce.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_keyring_storage.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_multistore_file.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/test_xsrfutil.py third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/client_secrets.json third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/gcloud/application_default_credentials.json third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/gcloud/application_default_credentials_malformed_1.json third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/gcloud/application_default_credentials_malformed_2.json third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/gcloud/application_default_credentials_malformed_3.json third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/unfilled_client_secrets.json -third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_appengine.py +third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_client.py third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_clientsecrets.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_django_orm.py third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_file.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_gce.py third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_jwt.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_keyring.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_oauth2client.py third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_service_account.py third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_util.py -third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/test_xsrfutil.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/echo/main.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/echo/services.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/guestbook/client/main.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/quotas/backend/quotas/services_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/client/fetch_descriptor.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/client/main.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/appengine_config.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/main.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/model.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/model_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/services.py -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/tunes_db_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/base.js -third_party/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/wrapperxmlhttpfactory.js -third_party/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/xmlhttp.js -third_party/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/xmlhttpfactory.js -third_party/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/descriptor.js -third_party/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/messages.js -third_party/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/protorpc.js -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/__init__.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/definition.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/definition_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/descriptor.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/descriptor_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/end2end_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/experimental/__init__.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/generate.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/generate_proto.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/generate_python.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/generate_python_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/generate_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/google_imports.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/message_types.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/message_types_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/messages.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/messages_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/non_sdk_imports.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/protobuf.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/protobuf_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/protojson.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/protojson_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/protourlencode.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/protourlencode_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/registry_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/remote.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/remote_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/static/forms.js -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/test_util.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/util.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/util_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/__init__.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/forms_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/google_imports.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/service_handlers.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/service_handlers_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp_test_util.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/service.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/service_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/util.py -third_party/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/util_test.py -third_party/catapult/third_party/gsutil/third_party/protorpc/setup.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/doc/source/conf.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/ber/decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/ber/encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/ber/eoo.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/cer/decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/cer/encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/der/decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/der/encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/native/decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/native/encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/compat/binary.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/compat/calling.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/compat/dateandtime.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/compat/integer.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/compat/octets.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/compat/string.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/debug.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/error.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/base.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/char.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/constraint.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/error.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/namedtype.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/namedval.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/tag.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/tagmap.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/univ.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/type/useful.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/setup.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/base.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/ber/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/ber/test_decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/ber/test_encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/cer/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/cer/test_decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/cer/test_encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/der/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/der/test_decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/der/test_encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/native/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/native/test_decoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/codec/native/test_encoder.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/compat/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/compat/test_binary.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/compat/test_integer.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/compat/test_octets.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/test_debug.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/__main__.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/test_char.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/test_constraint.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/test_namedtype.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/test_namedval.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/test_tag.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/test_univ.py +third_party/catapult/third_party/gsutil/third_party/pyasn1/tests/type/test_useful.py third_party/catapult/third_party/gsutil/third_party/python-gflags/Makefile third_party/catapult/third_party/gsutil/third_party/python-gflags/gflags.py third_party/catapult/third_party/gsutil/third_party/python-gflags/gflags2man.py @@ -5743,6 +5834,7 @@ third_party/chromite/lib/paygen/urilib_unittest.py third_party/chromite/lib/perf_dashboard_tool.py third_party/chromite/lib/perf_uploader.py third_party/chromite/lib/remote_try_unittest.py +third_party/chromite/lib/risk_report.py third_party/chromite/lib/som.py third_party/chromite/lib/sudo.py third_party/chromite/lib/testdata/androidbuild/test_creds_authorized_user.json @@ -5908,17 +6000,23 @@ third_party/closure_compiler/interfaces/settings_private_interface.js third_party/closure_compiler/interfaces/system_display_interface.js third_party/colorama/src/README.txt third_party/crashpad/crashpad/build/gyp_crashpad_android.py +third_party/crashpad/crashpad/build/run_fuchsia_qemu.py +third_party/crashpad/crashpad/client/crash_report_database_fuchsia.cc +third_party/crashpad/crashpad/client/crashpad_client_fuchsia.cc third_party/crashpad/crashpad/client/crashpad_client_win.cc third_party/crashpad/crashpad/client/prune_crash_reports.cc third_party/crashpad/crashpad/compat/android/sys/mman.h third_party/crashpad/crashpad/compat/win/winnt.h third_party/crashpad/crashpad/doc/support/crashpad.doxy.h third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css +third_party/crashpad/crashpad/handler/fuchsia/exception_handler_server.cc third_party/crashpad/crashpad/handler/handler_main.cc third_party/crashpad/crashpad/handler/mac/file_limit_annotation.h third_party/crashpad/crashpad/handler/win/crash_other_program.cc third_party/crashpad/crashpad/minidump/minidump_extensions.h third_party/crashpad/crashpad/package.h +third_party/crashpad/crashpad/snapshot/elf/elf_image_reader.cc +third_party/crashpad/crashpad/snapshot/fuchsia/process_snapshot_fuchsia.cc third_party/crashpad/crashpad/snapshot/handle_snapshot.h third_party/crashpad/crashpad/snapshot/mac/mach_o_image_segment_reader.cc third_party/crashpad/crashpad/snapshot/mac/mach_o_image_symbol_table_reader.cc @@ -5934,6 +6032,9 @@ third_party/crashpad/crashpad/snapshot/win/pe_image_resource_reader.cc third_party/crashpad/crashpad/snapshot/win/process_reader_win.cc third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc third_party/crashpad/crashpad/test/gtest_disabled.h +third_party/crashpad/crashpad/tools/generate_dump.cc +third_party/crashpad/crashpad/util/misc/paths_fuchsia.cc +third_party/crashpad/crashpad/util/net/http_transport_fuchsia.cc third_party/crashpad/crashpad/util/posix/close_multiple.cc third_party/crashpad/crashpad/util/posix/process_info.h third_party/crashpad/crashpad/util/win/command_line.cc @@ -5961,6 +6062,7 @@ third_party/depot_tools/fetch_configs/chromium.py third_party/depot_tools/fetch_configs/crashpad.py third_party/depot_tools/fetch_configs/dart.py third_party/depot_tools/fetch_configs/depot_tools.py +third_party/depot_tools/fetch_configs/goma_client.py third_party/depot_tools/fetch_configs/gyp.py third_party/depot_tools/fetch_configs/infra.py third_party/depot_tools/fetch_configs/infra_internal.py @@ -6011,6 +6113,7 @@ third_party/depot_tools/patch.py third_party/depot_tools/presubmit_canned_checks.py third_party/depot_tools/presubmit_support.py third_party/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +third_party/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_luci.json third_party/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json third_party/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/buildbot.json third_party/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json @@ -6088,8 +6191,6 @@ third_party/depot_tools/recipes/recipe_modules/gsutil/api.py third_party/depot_tools/recipes/recipe_modules/gsutil/examples/full.expected/basic.json third_party/depot_tools/recipes/recipe_modules/gsutil/examples/full.py third_party/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json -third_party/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch.json -third_party/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch_new.json third_party/depot_tools/recipes/recipes.py third_party/depot_tools/recipes/recipes/fetch_end_to_end_test.expected/basic.json third_party/depot_tools/rietveld.py @@ -6165,321 +6266,109 @@ third_party/deqp/src/framework/platform/wayland/tcuWaylandEglPlatform.cpp third_party/deqp/src/framework/platform/wayland/tcuWaylandEglPlatform.hpp third_party/deqp/src/framework/platform/wayland/tcuWaylandPlatform.cpp third_party/deqp/src/framework/platform/wayland/tcuWaylandPlatform.hpp -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/babel-code-frame/node_modules/js-tokens/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/babel-code-frame/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/node_modules/ansi-styles/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/node_modules/escape-string-regexp/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/node_modules/has-ansi/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/node_modules/strip-ansi/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/node_modules/supports-color/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/chalk/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/concat-stream/node_modules/readable-stream/node_modules/process-nextick-args/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/concat-stream/node_modules/readable-stream/node_modules/string_decoder/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/concat-stream/node_modules/readable-stream/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/concat-stream/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/debug/bower.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/debug/browser.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/debug/node_modules/ms/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/debug/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/doctrine/lib/doctrine.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/doctrine/lib/typed.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/doctrine/lib/utility.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/doctrine/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/gulpfile.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/definition.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/pattern-visitor.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/reference.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/referencer.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/scope-manager.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/scope.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/lib/variable.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/array/#/clear.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/math/imul/shim.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/object/create.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/test/string/#/ends-with/shim.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/test/string/#/starts-with/shim.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es6-symbol/polyfill.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/array/#/clear.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/math/imul/shim.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/object/create.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/test/string/#/ends-with/shim.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/test/string/#/starts-with/shim.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es6-symbol/polyfill.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/esrecurse/esrecurse.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/esrecurse/node_modules/estraverse/estraverse.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/esrecurse/node_modules/estraverse/gulpfile.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/esrecurse/node_modules/estraverse/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/esrecurse/node_modules/object-assign/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/esrecurse/node_modules/object-assign/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/node_modules/esrecurse/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/definition.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/pattern-visitor.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/reference.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/referencer.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/scope-manager.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/scope.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/src/variable.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/escope/third_party/espree.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/espree.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn-jsx/node_modules/acorn/dist/acorn.es.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn-jsx/node_modules/acorn/dist/acorn.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn-jsx/node_modules/acorn/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn-jsx/node_modules/acorn/src/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn-jsx/node_modules/acorn/src/loose/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn-jsx/node_modules/acorn/src/options.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn/dist/acorn.es.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn/dist/acorn.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn/src/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn/src/loose/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/espree/node_modules/acorn/src/options.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/estraverse/estraverse.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/estraverse/gulpfile.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/estraverse/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/esutils/lib/ast.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/esutils/lib/code.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/esutils/lib/keyword.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/esutils/lib/utils.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/esutils/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/circular-json/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/globby/node_modules/array-union/node_modules/array-uniq/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/globby/node_modules/array-union/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/globby/node_modules/arrify/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/globby/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/is-path-cwd/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/is-path-in-cwd/node_modules/is-path-inside/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/is-path-in-cwd/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/pify/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/pinkie-promise/node_modules/pinkie/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/node_modules/pinkie-promise/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/del/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/object-assign/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/node_modules/object-assign/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/file-entry-cache/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/glob/node_modules/path-is-absolute/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/globals/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/imurmurhash/imurmurhash.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/imurmurhash/imurmurhash.min.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/imurmurhash/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/ansi-escapes/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/ansi-regex/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/exit-hook/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/onetime/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/cli-cursor/node_modules/restore-cursor/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/cli-cursor/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/figures/node_modules/escape-string-regexp/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/figures/node_modules/object-assign/index.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/figures/node_modules/object-assign/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/figures/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/readline2/node_modules/code-point-at/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/readline2/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/readline2/node_modules/is-fullwidth-code-point/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/rx-lite/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/string-width/node_modules/code-point-at/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/string-width/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/strip-ansi/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/inquirer/node_modules/through/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/is-my-json-valid/node_modules/generate-function/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/is-my-json-valid/node_modules/generate-object-property/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/is-my-json-valid/node_modules/jsonpointer/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/is-my-json-valid/node_modules/xtend/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/is-my-json-valid/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/is-resolvable/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/js-yaml/node_modules/argparse/node_modules/sprintf-js/demo/angular.html -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/js-yaml/node_modules/esprima/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/js-yaml/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/json-stable-stringify/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/lodash/_compareMultiple.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/lodash/_setData.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/lodash/lodash.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/lodash/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/lodash/template.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/mkdirp/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/natural-compare/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/optionator/node_modules/wordwrap/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/progress/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/require-uncached/node_modules/caller-path/node_modules/callsites/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/require-uncached/node_modules/caller-path/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/require-uncached/node_modules/resolve-from/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/require-uncached/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/shelljs/node_modules/rechoir/node_modules/resolve/lib/caller.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/shelljs/node_modules/rechoir/node_modules/resolve/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/shelljs/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/strip-bom/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/strip-json-comments/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/table/node_modules/ajv/dist/ajv.bundle.js -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/table/node_modules/ajv/node_modules/co/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/table/node_modules/slice-ansi/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/table/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/table/node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/table/node_modules/string-width/node_modules/strip-ansi/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/table/node_modules/string-width/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/user-home/node_modules/os-homedir/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/node_modules/user-home/package.json -third_party/devtools-node-modules/third_party/node_modules/eslint/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/node_modules/ansi-styles/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/node_modules/escape-string-regexp/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/node_modules/has-ansi/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/node_modules/strip-ansi/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/node_modules/supports-color/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/chalk/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/array-differ/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/array-uniq/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/beeper/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/get-stdin/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/camelcase-keys/node_modules/camelcase/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/camelcase-keys/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/decamelize/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/loud-rejection/node_modules/currently-unhandled/node_modules/array-find-index/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/loud-rejection/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/map-obj/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/is-builtin-module/node_modules/builtin-modules/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/is-builtin-module/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules/spdx-license-ids/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-expression-parse/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/test/fixtures/bcrypt.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/test/fixtures/movefile.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/test/fixtures/npm.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/test/fixtures/request.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/object-assign/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/object-assign/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/find-up/node_modules/path-exists/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/find-up/node_modules/pinkie-promise/node_modules/pinkie/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/find-up/node_modules/pinkie-promise/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/find-up/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/parse-json/node_modules/error-ex/node_modules/is-arrayish/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/parse-json/node_modules/error-ex/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/parse-json/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pify/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/strip-bom/node_modules/is-utf8/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/strip-bom/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/node_modules/pify/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/node_modules/pinkie-promise/node_modules/pinkie/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/node_modules/pinkie-promise/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/path-type/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/strip-indent/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/trim-newlines/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash._reescape/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash._reevaluate/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash._reinterpolate/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash._basecopy/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash._basetostring/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash._basevalues/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash._isiterateecall/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash._isiterateecall/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._root/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._getnative/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._getnative/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash.isarguments/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash.isarray/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash.isarray/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.restparam/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.restparam/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.templatesettings/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/multipipe/node_modules/duplexer2/node_modules/readable-stream/node_modules/string_decoder/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/multipipe/node_modules/duplexer2/node_modules/readable-stream/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/object-assign/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/through2/node_modules/readable-stream/node_modules/process-nextick-args/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/through2/node_modules/readable-stream/node_modules/string_decoder/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/through2/node_modules/readable-stream/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/through2/node_modules/xtend/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/vinyl/node_modules/clone-stats/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/gulp-util/node_modules/vinyl/node_modules/clone/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/extend/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/detect-file/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/is-glob/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/arr-diff/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/braces/node_modules/expand-range/node_modules/fill-range/node_modules/is-number/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/braces/node_modules/expand-range/node_modules/fill-range/node_modules/isobject/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/braces/node_modules/expand-range/node_modules/fill-range/node_modules/repeat-string/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/braces/node_modules/expand-range/node_modules/fill-range/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/braces/node_modules/expand-range/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/braces/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/expand-brackets/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/kind-of/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/normalize-path/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/object.omit/node_modules/for-own/node_modules/for-in/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/object.omit/node_modules/for-own/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/parse-glob/node_modules/glob-base/node_modules/glob-parent/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/parse-glob/node_modules/glob-base/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/regex-cache/node_modules/is-equal-shallow/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/node_modules/regex-cache/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/micromatch/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/resolve-dir/node_modules/expand-tilde/node_modules/os-homedir/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/resolve-dir/node_modules/expand-tilde/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/resolve-dir/node_modules/global-modules/node_modules/global-prefix/node_modules/osenv/node_modules/os-homedir/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/resolve-dir/node_modules/global-modules/node_modules/global-prefix/node_modules/osenv/node_modules/os-tmpdir/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/expand-tilde/node_modules/os-homedir/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/expand-tilde/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/lodash.assignwith/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/lodash.isarray/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/lodash.isempty/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/lodash.pick/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/parse-filepath/node_modules/is-absolute/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/node_modules/parse-filepath/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/fined/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/lodash.isplainobject/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/lodash.isstring/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/lodash.mapvalues/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/resolve/lib/caller.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/node_modules/resolve/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/liftoff/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/minimist/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/orchestrator/node_modules/end-of-stream/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/orchestrator/node_modules/stream-consume/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/tildify/node_modules/os-homedir/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/tildify/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/v8flags/node_modules/user-home/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/defaults/node_modules/clone/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/defaults/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/ordered-read-streams/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/lodash/dist/lodash.compat.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/lodash/dist/lodash.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/lodash/dist/lodash.underscore.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/lodash/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/mkdirp/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/strip-bom/node_modules/first-chunk-stream/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/strip-bom/node_modules/is-utf8/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/strip-bom/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/node_modules/string_decoder/index.js -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/xtend/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/vinyl/node_modules/clone-stats/package.json -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/vinyl-fs/node_modules/vinyl/node_modules/clone/package.json -third_party/devtools-node-modules/third_party/node_modules/jasmine/node_modules/glob/node_modules/path-is-absolute/package.json -third_party/devtools-node-modules/third_party/node_modules/jasmine/package.json +third_party/devtools-node-modules/third_party/node_modules/acorn-jsx/node_modules/acorn/dist/acorn.es.js +third_party/devtools-node-modules/third_party/node_modules/acorn-jsx/node_modules/acorn/dist/acorn.js +third_party/devtools-node-modules/third_party/node_modules/acorn-jsx/node_modules/acorn/package.json +third_party/devtools-node-modules/third_party/node_modules/acorn-jsx/node_modules/acorn/src/index.js +third_party/devtools-node-modules/third_party/node_modules/acorn-jsx/node_modules/acorn/src/loose/index.js +third_party/devtools-node-modules/third_party/node_modules/acorn-jsx/node_modules/acorn/src/options.js +third_party/devtools-node-modules/third_party/node_modules/acorn/dist/acorn.es.js +third_party/devtools-node-modules/third_party/node_modules/acorn/dist/acorn.js +third_party/devtools-node-modules/third_party/node_modules/acorn/dist/acorn_loose.es.js +third_party/devtools-node-modules/third_party/node_modules/acorn/dist/acorn_loose.js +third_party/devtools-node-modules/third_party/node_modules/acorn/package.json +third_party/devtools-node-modules/third_party/node_modules/ajv/dist/ajv.bundle.js +third_party/devtools-node-modules/third_party/node_modules/ajv/dist/regenerator.min.js +third_party/devtools-node-modules/third_party/node_modules/ansi-escapes/package.json +third_party/devtools-node-modules/third_party/node_modules/ansi-regex/package.json +third_party/devtools-node-modules/third_party/node_modules/ansi-styles/package.json +third_party/devtools-node-modules/third_party/node_modules/array-union/package.json +third_party/devtools-node-modules/third_party/node_modules/array-uniq/package.json +third_party/devtools-node-modules/third_party/node_modules/arrify/package.json +third_party/devtools-node-modules/third_party/node_modules/babel-code-frame/node_modules/chalk/package.json +third_party/devtools-node-modules/third_party/node_modules/babel-code-frame/node_modules/strip-ansi/package.json +third_party/devtools-node-modules/third_party/node_modules/babel-code-frame/package.json +third_party/devtools-node-modules/third_party/node_modules/caller-path/package.json +third_party/devtools-node-modules/third_party/node_modules/callsites/package.json +third_party/devtools-node-modules/third_party/node_modules/chalk/node_modules/ansi-styles/package.json +third_party/devtools-node-modules/third_party/node_modules/chalk/node_modules/supports-color/package.json +third_party/devtools-node-modules/third_party/node_modules/chardet/package.json +third_party/devtools-node-modules/third_party/node_modules/cli-cursor/package.json +third_party/devtools-node-modules/third_party/node_modules/color-convert/package.json +third_party/devtools-node-modules/third_party/node_modules/color-name/package.json +third_party/devtools-node-modules/third_party/node_modules/debug/package.json +third_party/devtools-node-modules/third_party/node_modules/debug/src/browser.js +third_party/devtools-node-modules/third_party/node_modules/del/package.json +third_party/devtools-node-modules/third_party/node_modules/doctrine/lib/doctrine.js +third_party/devtools-node-modules/third_party/node_modules/doctrine/lib/typed.js +third_party/devtools-node-modules/third_party/node_modules/doctrine/lib/utility.js +third_party/devtools-node-modules/third_party/node_modules/doctrine/package.json +third_party/devtools-node-modules/third_party/node_modules/escape-string-regexp/package.json +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/definition.js +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/index.js +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/pattern-visitor.js +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/reference.js +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/referencer.js +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/scope-manager.js +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/scope.js +third_party/devtools-node-modules/third_party/node_modules/eslint-scope/lib/variable.js +third_party/devtools-node-modules/third_party/node_modules/espree/espree.js +third_party/devtools-node-modules/third_party/node_modules/esprima/package.json +third_party/devtools-node-modules/third_party/node_modules/esquery/package.json +third_party/devtools-node-modules/third_party/node_modules/esrecurse/esrecurse.js +third_party/devtools-node-modules/third_party/node_modules/esrecurse/gulpfile.babel.js +third_party/devtools-node-modules/third_party/node_modules/esrecurse/package.json +third_party/devtools-node-modules/third_party/node_modules/estraverse/estraverse.js +third_party/devtools-node-modules/third_party/node_modules/estraverse/gulpfile.js +third_party/devtools-node-modules/third_party/node_modules/estraverse/package.json +third_party/devtools-node-modules/third_party/node_modules/esutils/lib/ast.js +third_party/devtools-node-modules/third_party/node_modules/esutils/lib/code.js +third_party/devtools-node-modules/third_party/node_modules/esutils/lib/keyword.js +third_party/devtools-node-modules/third_party/node_modules/esutils/lib/utils.js +third_party/devtools-node-modules/third_party/node_modules/esutils/package.json +third_party/devtools-node-modules/third_party/node_modules/figures/package.json +third_party/devtools-node-modules/third_party/node_modules/globals/package.json +third_party/devtools-node-modules/third_party/node_modules/globby/package.json +third_party/devtools-node-modules/third_party/node_modules/has-ansi/package.json +third_party/devtools-node-modules/third_party/node_modules/has-flag/package.json +third_party/devtools-node-modules/third_party/node_modules/iconv-lite/encodings/dbcs-data.js +third_party/devtools-node-modules/third_party/node_modules/iconv-lite/package.json +third_party/devtools-node-modules/third_party/node_modules/imurmurhash/imurmurhash.js +third_party/devtools-node-modules/third_party/node_modules/imurmurhash/imurmurhash.min.js +third_party/devtools-node-modules/third_party/node_modules/imurmurhash/package.json +third_party/devtools-node-modules/third_party/node_modules/is-fullwidth-code-point/package.json +third_party/devtools-node-modules/third_party/node_modules/is-path-cwd/package.json +third_party/devtools-node-modules/third_party/node_modules/is-path-in-cwd/package.json +third_party/devtools-node-modules/third_party/node_modules/is-path-inside/package.json +third_party/devtools-node-modules/third_party/node_modules/js-yaml/package.json +third_party/devtools-node-modules/third_party/node_modules/lodash/_compareMultiple.js +third_party/devtools-node-modules/third_party/node_modules/lodash/_setData.js +third_party/devtools-node-modules/third_party/node_modules/lodash/lodash.js +third_party/devtools-node-modules/third_party/node_modules/lodash/package.json +third_party/devtools-node-modules/third_party/node_modules/lodash/template.js +third_party/devtools-node-modules/third_party/node_modules/mimic-fn/package.json +third_party/devtools-node-modules/third_party/node_modules/object-assign/index.js +third_party/devtools-node-modules/third_party/node_modules/object-assign/package.json +third_party/devtools-node-modules/third_party/node_modules/onetime/package.json +third_party/devtools-node-modules/third_party/node_modules/os-tmpdir/package.json +third_party/devtools-node-modules/third_party/node_modules/path-is-absolute/package.json +third_party/devtools-node-modules/third_party/node_modules/pify/package.json +third_party/devtools-node-modules/third_party/node_modules/pinkie-promise/package.json +third_party/devtools-node-modules/third_party/node_modules/pinkie/package.json +third_party/devtools-node-modules/third_party/node_modules/progress/package.json +third_party/devtools-node-modules/third_party/node_modules/require-uncached/package.json +third_party/devtools-node-modules/third_party/node_modules/resolve-from/package.json +third_party/devtools-node-modules/third_party/node_modules/restore-cursor/package.json +third_party/devtools-node-modules/third_party/node_modules/shebang-command/package.json +third_party/devtools-node-modules/third_party/node_modules/shebang-regex/package.json +third_party/devtools-node-modules/third_party/node_modules/slice-ansi/package.json +third_party/devtools-node-modules/third_party/node_modules/sprintf-js/demo/angular.html +third_party/devtools-node-modules/third_party/node_modules/string-width/package.json +third_party/devtools-node-modules/third_party/node_modules/strip-ansi/node_modules/ansi-regex/package.json +third_party/devtools-node-modules/third_party/node_modules/strip-ansi/package.json +third_party/devtools-node-modules/third_party/node_modules/strip-json-comments/package.json +third_party/devtools-node-modules/third_party/node_modules/supports-color/package.json +third_party/devtools-node-modules/third_party/node_modules/through/package.json third_party/devtools-node-modules/third_party/package.json third_party/dom_distiller_js/dist/js/domdistiller.js third_party/dom_distiller_js/dist/js/domdistiller_wrapped.js @@ -6744,10 +6633,6 @@ third_party/ffmpeg/libavresample/x86/dither_init.c third_party/ffmpeg/libavutil/aarch64/neontest.h third_party/ffmpeg/libavutil/aes_internal.h third_party/ffmpeg/libavutil/arm/neontest.h -third_party/ffmpeg/libavutil/atomic.c -third_party/ffmpeg/libavutil/atomic.h -third_party/ffmpeg/libavutil/atomic_gcc.h -third_party/ffmpeg/libavutil/atomic_win32.h third_party/ffmpeg/libavutil/audio_fifo.c third_party/ffmpeg/libavutil/audio_fifo.h third_party/ffmpeg/libavutil/color_utils.c @@ -6759,8 +6644,6 @@ third_party/ffmpeg/libavutil/downmix_info.h third_party/ffmpeg/libavutil/ffmath.h third_party/ffmpeg/libavutil/mastering_display_metadata.c third_party/ffmpeg/libavutil/mastering_display_metadata.h -third_party/ffmpeg/libavutil/opencl.c -third_party/ffmpeg/libavutil/opencl.h third_party/ffmpeg/libavutil/random_seed.c third_party/ffmpeg/libavutil/random_seed.h third_party/ffmpeg/libavutil/ripemd.h @@ -6791,13 +6674,15 @@ third_party/flatbuffers/src/docs/footer.html third_party/flatbuffers/src/docs/header.html third_party/flatbuffers/src/samples/android/AndroidManifest.xml third_party/flot/jquery.flot.navigate.min.js +third_party/fontconfig/src/fc-blanks/list-unicodeset.html +third_party/fontconfig/src/src/fcfreetype.c third_party/freetype/include/freetype-custom-config/ftoption.h third_party/freetype/src/builds/windows/vc2010/index.html third_party/freetype/src/devel/ftoption.h third_party/freetype/src/docs/formats.txt third_party/freetype/src/include/freetype/config/ftoption.h third_party/freetype/src/include/freetype/freetype.h -third_party/freetype/src/include/freetype/ftttdrv.h +third_party/freetype/src/include/freetype/ftdriver.h third_party/freetype/src/include/freetype/ftwinfnt.h third_party/freetype/src/include/freetype/ttnameid.h third_party/freetype/src/src/autofit/afindic.c @@ -6889,7 +6774,6 @@ third_party/googletest/src/googlemock/include/gmock/gmock-actions.h third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h third_party/googletest/src/googlemock/include/gmock/gmock-generated-actions.h third_party/googletest/src/googlemock/include/gmock/gmock-generated-function-mockers.h -third_party/googletest/src/googlemock/include/gmock/gmock-generated-matchers.h third_party/googletest/src/googlemock/include/gmock/gmock-generated-nice-strict.h third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h third_party/googletest/src/googlemock/include/gmock/gmock-more-actions.h @@ -7063,7 +6947,7 @@ third_party/gvr-android-sdk/proguard-gvr-chromium.txt third_party/harfbuzz-ng/src/hb-buffer.cc third_party/harfbuzz-ng/src/hb-coretext.cc third_party/harfbuzz-ng/src/hb-ft.cc -third_party/harfbuzz-ng/src/hb-ot-font.cc +third_party/harfbuzz-ng/src/hb-ot-cmap-table.hh third_party/harfbuzz-ng/src/hb-ot-layout-common-private.hh third_party/harfbuzz-ng/src/hb-ot-layout-gsubgpos-private.hh third_party/harfbuzz-ng/src/hb-ot-layout.cc @@ -7138,6 +7022,71 @@ third_party/icu/source/data/unidata/changes.txt third_party/icu/source/i18n/unicode/smpdtfmt.h third_party/icu/source/i18n/unicode/udat.h third_party/icu/source/tools/toolutil/pkg_genc.cpp +third_party/ink/closure/array/array.js +third_party/ink/closure/asserts/asserts.js +third_party/ink/closure/base.js +third_party/ink/closure/crypt/base64.js +third_party/ink/closure/crypt/crypt.js +third_party/ink/closure/debug/debug.js +third_party/ink/closure/debug/entrypointregistry.js +third_party/ink/closure/debug/error.js +third_party/ink/closure/disposable/disposable.js +third_party/ink/closure/disposable/idisposable.js +third_party/ink/closure/dom/browserfeature.js +third_party/ink/closure/dom/dom.js +third_party/ink/closure/events/browserevent.js +third_party/ink/closure/events/browserfeature.js +third_party/ink/closure/events/event.js +third_party/ink/closure/events/eventhandler.js +third_party/ink/closure/events/events.js +third_party/ink/closure/events/eventtarget.js +third_party/ink/closure/events/eventtype.js +third_party/ink/closure/events/keycodes.js +third_party/ink/closure/events/listenable.js +third_party/ink/closure/events/listener.js +third_party/ink/closure/events/wheelevent.js +third_party/ink/closure/format/format.js +third_party/ink/closure/functions/functions.js +third_party/ink/closure/html/safehtml.js +third_party/ink/closure/html/trustedresourceurl.js +third_party/ink/closure/i18n/bidi.js +third_party/ink/closure/i18n/bidiformatter.js +third_party/ink/closure/i18n/graphemebreak.js +third_party/ink/closure/i18n/uchar.js +third_party/ink/closure/iter/iter.js +third_party/ink/closure/labs/useragent/browser.js +third_party/ink/closure/labs/useragent/engine.js +third_party/ink/closure/labs/useragent/platform.js +third_party/ink/closure/labs/useragent/util.js +third_party/ink/closure/math/box.js +third_party/ink/closure/math/coordinate.js +third_party/ink/closure/math/long.js +third_party/ink/closure/math/math.js +third_party/ink/closure/math/rect.js +third_party/ink/closure/math/size.js +third_party/ink/closure/object/object.js +third_party/ink/closure/proto2/descriptor.js +third_party/ink/closure/proto2/fielddescriptor.js +third_party/ink/closure/proto2/message.js +third_party/ink/closure/proto2/objectserializer.js +third_party/ink/closure/proto2/serializer.js +third_party/ink/closure/reflect/reflect.js +third_party/ink/closure/soy/data.js +third_party/ink/closure/soy/soy.js +third_party/ink/closure/string/string.js +third_party/ink/closure/structs/collection.js +third_party/ink/closure/structs/inversionmap.js +third_party/ink/closure/structs/map.js +third_party/ink/closure/structs/set.js +third_party/ink/closure/structs/structs.js +third_party/ink/closure/style/style.js +third_party/ink/closure/ui/component.js +third_party/ink/closure/ui/idgenerator.js +third_party/ink/closure/uri/uri.js +third_party/ink/closure/uri/utils.js +third_party/ink/closure/useragent/product.js +third_party/ink/closure/useragent/useragent.js +third_party/ink/wireserializer.js third_party/isimpledom/ISimpleDOMDocument.idl third_party/isimpledom/ISimpleDOMNode.idl third_party/isimpledom/ISimpleDOMText.idl @@ -7420,6 +7369,179 @@ third_party/libyuv/tools_libyuv/autoroller/unittests/roll_deps_test.py third_party/libyuv/tools_libyuv/valgrind/memcheck/PRESUBMIT.py third_party/libyuv/tools_libyuv/valgrind/memcheck_analyze.py third_party/libyuv/tools_libyuv/valgrind/valgrind_test.py +third_party/llvm/CODE_OWNERS.TXT +third_party/llvm/CREDITS.TXT +third_party/llvm/RELEASE_TESTERS.TXT +third_party/llvm/compiler-rt/CODE_OWNERS.TXT +third_party/llvm/compiler-rt/lib/asan/asan_interceptors.h +third_party/llvm/compiler-rt/lib/asan/asan_malloc_win.cc +third_party/llvm/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp +third_party/llvm/compiler-rt/lib/interception/interception_win.cc +third_party/llvm/compiler-rt/lib/profile/WindowsMMap.c +third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_coverage_fuchsia.cc +third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc +third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_win.cc +third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.h +third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_win.cc +third_party/llvm/compiler-rt/lib/sanitizer_common/scripts/cpplint.py +third_party/llvm/compiler-rt/test/asan/TestCases/Darwin/address-range-limit.mm +third_party/llvm/compiler-rt/test/asan/TestCases/Darwin/cstring_literals_regtest.mm +third_party/llvm/compiler-rt/test/asan/TestCases/Darwin/linked-only.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Darwin/malloc_set_zone_name-mprotect.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Darwin/mixing-global-constructors.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Darwin/objc-odr.mm +third_party/llvm/compiler-rt/test/asan/TestCases/Darwin/reexec-insert-libraries-env.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/clone_test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/globals-gc-sections-lld.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/init-order-dlopen.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/interception_readdir_r_test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/kernel-area.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/malloc-in-qsort.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/nohugepage_test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/odr-violation.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/overflow-in-qsort.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/preinit_test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/ptrace.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/shmctl.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/stack-trace-dlclose.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Linux/syscalls.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/coverage-module-unloaded.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/coverage.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/dlclose-test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/glob.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/no_asan_gen_globals.c +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Posix/wait4.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Windows/crt_initializers.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Windows/dll_seh.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Windows/longjmp.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc +third_party/llvm/compiler-rt/test/asan/TestCases/Windows/seh.cc +third_party/llvm/compiler-rt/test/asan/TestCases/atexit_stats.cc +third_party/llvm/compiler-rt/test/asan/TestCases/contiguous_container.cc +third_party/llvm/compiler-rt/test/asan/TestCases/default_blacklist.cc +third_party/llvm/compiler-rt/test/asan/TestCases/heap-overflow-large.cc +third_party/llvm/compiler-rt/test/asan/TestCases/initialization-bug.cc +third_party/llvm/compiler-rt/test/asan/TestCases/log-path_test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/longjmp.cc +third_party/llvm/compiler-rt/test/asan/TestCases/throw_call_test.cc +third_party/llvm/compiler-rt/test/asan/TestCases/throw_catch.cc +third_party/llvm/compiler-rt/test/asan/TestCases/time_interceptor.cc +third_party/llvm/compiler-rt/test/lsan/TestCases/new_array_with_dtor_0.cc +third_party/llvm/compiler-rt/test/msan/select_float_origin.cc +third_party/llvm/compiler-rt/test/sanitizer_common/TestCases/Linux/allow_user_segv.cc +third_party/llvm/compiler-rt/test/tsan/mmap_stress.cc +third_party/llvm/compiler-rt/test/tsan/pthread_key.cc +third_party/llvm/compiler-rt/test/ubsan/TestCases/Misc/log-path_test.cc +third_party/llvm/include/llvm/BinaryFormat/COFF.h +third_party/llvm/include/llvm/BinaryFormat/ELF.h +third_party/llvm/include/llvm/DebugInfo/CodeView/CodeView.h +third_party/llvm/include/llvm/DebugInfo/PDB/PDBSymbol.h +third_party/llvm/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h +third_party/llvm/include/llvm/DebugInfo/PDB/PDBTypes.h +third_party/llvm/include/llvm/IR/PassManager.h +third_party/llvm/include/llvm/Object/COFFModuleDefinition.h +third_party/llvm/include/llvm/Object/WindowsResource.h +third_party/llvm/include/llvm/Support/CommandLine.h +third_party/llvm/include/llvm/Support/Compiler.h +third_party/llvm/include/llvm/Support/SHA1.h +third_party/llvm/include/llvm/Support/Win64EH.h +third_party/llvm/include/llvm/WindowsManifest/WindowsManifestMerger.h +third_party/llvm/include/llvm/WindowsResource/ResourceScriptToken.h +third_party/llvm/lib/CodeGen/MachineOutliner.cpp +third_party/llvm/lib/Object/COFFModuleDefinition.cpp +third_party/llvm/lib/Passes/PassBuilder.cpp +third_party/llvm/lib/Support/SHA1.cpp +third_party/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +third_party/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +third_party/llvm/lib/Target/X86/X86ISelLowering.cpp +third_party/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +third_party/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp +third_party/llvm/lib/WindowsManifest/WindowsManifestMerger.cpp +third_party/llvm/tools/clang/CODE_OWNERS.TXT +third_party/llvm/tools/clang/include/clang/Basic/TargetInfo.h +third_party/llvm/tools/clang/include/clang/Format/Format.h +third_party/llvm/tools/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h +third_party/llvm/tools/clang/lib/AST/ASTContext.cpp +third_party/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp +third_party/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp +third_party/llvm/tools/clang/lib/Frontend/DependencyFile.cpp +third_party/llvm/tools/clang/lib/Headers/__clang_cuda_builtin_vars.h +third_party/llvm/tools/clang/lib/Headers/float.h +third_party/llvm/tools/clang/lib/Lex/PPDirectives.cpp +third_party/llvm/tools/clang/lib/Lex/Pragma.cpp +third_party/llvm/tools/clang/lib/Sema/SemaDecl.cpp +third_party/llvm/tools/clang/lib/Sema/SemaExpr.cpp +third_party/llvm/tools/clang/test/Analysis/malloc.c +third_party/llvm/tools/clang/test/Lexer/pragma-message.c +third_party/llvm/tools/clang/test/Lexer/pragma-region.c +third_party/llvm/tools/clang/test/Preprocessor/pragma-pushpop-macro.c +third_party/llvm/tools/clang/www/analyzer/potential_checkers.html +third_party/llvm/tools/clang/www/clang_video-07-25-2007.html +third_party/llvm/tools/clang/www/related.html +third_party/llvm/tools/lld/CODE_OWNERS.TXT +third_party/llvm/tools/lld/COFF/ICF.cpp +third_party/llvm/tools/lld/ELF/ICF.cpp +third_party/llvm/tools/llvm-objdump/COFFDump.cpp +third_party/llvm/tools/llvm-rc/ResourceFileWriter.cpp +third_party/llvm/tools/llvm-rc/ResourceScriptParser.h +third_party/llvm/tools/llvm-rc/ResourceScriptStmt.cpp +third_party/llvm/tools/llvm-rc/ResourceScriptStmt.h +third_party/llvm/tools/llvm-rc/ResourceScriptToken.h +third_party/llvm/unittests/Support/ManagedStatic.cpp +third_party/llvm/unittests/Support/RegexTest.cpp +third_party/llvm/utils/lit/lit/TestRunner.py +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-cardinalities.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-generated-function-mockers.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-generated-matchers.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-generated-nice-strict.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-more-actions.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-more-matchers.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h +third_party/llvm/utils/unittest/googlemock/include/gmock/gmock.h +third_party/llvm/utils/unittest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +third_party/llvm/utils/unittest/googlemock/include/gmock/internal/gmock-internal-utils.h +third_party/llvm/utils/unittest/googlemock/include/gmock/internal/gmock-port.h +third_party/llvm/utils/unittest/googlemock/src/gmock-all.cc +third_party/llvm/utils/unittest/googlemock/src/gmock-cardinalities.cc +third_party/llvm/utils/unittest/googlemock/src/gmock-internal-utils.cc +third_party/llvm/utils/unittest/googlemock/src/gmock-matchers.cc +third_party/llvm/utils/unittest/googlemock/src/gmock-spec-builders.cc +third_party/llvm/utils/unittest/googlemock/src/gmock.cc +third_party/llvm/utils/unittest/googletest/include/gtest/gtest-death-test.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest-message.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest-param-test.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest-printers.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest-spi.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest-test-part.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest-typed-test.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest_pred_impl.h +third_party/llvm/utils/unittest/googletest/include/gtest/gtest_prod.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-filepath.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-internal.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-tuple.h +third_party/llvm/utils/unittest/googletest/include/gtest/internal/gtest-type-util.h +third_party/llvm/utils/unittest/googletest/src/gtest-all.cc +third_party/llvm/utils/unittest/googletest/src/gtest-death-test.cc +third_party/llvm/utils/unittest/googletest/src/gtest-filepath.cc +third_party/llvm/utils/unittest/googletest/src/gtest-internal-inl.h +third_party/llvm/utils/unittest/googletest/src/gtest-port.cc +third_party/llvm/utils/unittest/googletest/src/gtest-printers.cc +third_party/llvm/utils/unittest/googletest/src/gtest-test-part.cc +third_party/llvm/utils/unittest/googletest/src/gtest-typed-test.cc +third_party/llvm/utils/unittest/googletest/src/gtest.cc third_party/mesa/src/Android.common.mk third_party/mesa/src/Android.mk third_party/mesa/src/docs/patents.txt @@ -8033,6 +8155,7 @@ third_party/pdfium/core/fpdftext/cpdf_linkextract_unittest.cpp third_party/pdfium/core/fxcrt/fx_memory.h third_party/pdfium/core/fxge/win32/fx_win32_device.cpp third_party/pdfium/fpdfsdk/fpdfview.cpp +third_party/pdfium/public/PRESUBMIT.py third_party/pdfium/skia/config/SkUserConfig.h third_party/pdfium/testing/tools/gold.py third_party/pdfium/testing/tools/safetynet_compare.py @@ -8048,6 +8171,12 @@ third_party/pdfium/third_party/libopenjpeg20/opj_inttypes.h third_party/pdfium/third_party/libopenjpeg20/opj_stdint.h third_party/pdfium/tools/lsan/lsan_suppressions.txt third_party/pdfium/xfa/fgas/font/cfgas_fontmgr.cpp +third_party/perfetto/include/perfetto/protozero/proto_utils.h +third_party/perfetto/infra/git_mirror_bot/Makefile +third_party/perfetto/infra/git_mirror_bot/mirror_aosp_to_ghub_repo.py +third_party/perfetto/infra/perfetto-ci.appspot.com/main.py +third_party/perfetto/infra/perfetto-ci.appspot.com/static/index.html +third_party/perfetto/infra/perfetto-ci.appspot.com/static/script.js third_party/polymer/v1_0/PRESUBMIT.py third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js third_party/polymer/v1_0/components-chromium/iron-flex-layout/iron-flex-layout.html @@ -8071,7 +8200,6 @@ third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple.html third_party/polymer/v1_0/components-chromium/paper-slider/paper-slider-extracted.js third_party/polymer/v1_0/components-chromium/paper-slider/paper-slider.html third_party/polymer/v1_0/components-chromium/paper-spinner/paper-spinner-lite.html -third_party/polymer/v1_0/components-chromium/paper-spinner/paper-spinner.html third_party/polymer/v1_0/components-chromium/paper-styles/classes/typography.html third_party/polymer/v1_0/components-chromium/paper-styles/default-theme.html third_party/polymer/v1_0/components-chromium/paper-styles/paper-styles.html @@ -8871,6 +8999,7 @@ third_party/skia/bench/DashBench.cpp third_party/skia/bin/try.py third_party/skia/gm/addarc.cpp third_party/skia/gm/annotated_text.cpp +third_party/skia/gm/bitmapshader.cpp third_party/skia/gm/blurroundrect.cpp third_party/skia/gm/dashcubics.cpp third_party/skia/gm/pictureshader.cpp @@ -8895,6 +9024,8 @@ third_party/skia/infra/bots/recipe_modules/core/api.py third_party/skia/infra/bots/recipe_modules/core/examples/full.expected/Housekeeper-Weekly-RecreateSKPs.json third_party/skia/infra/bots/recipe_modules/core/examples/full.expected/cross_repo_trybot.json third_party/skia/infra/bots/recipe_modules/core/examples/full.expected/flutter_trybot.json +third_party/skia/infra/bots/recipe_modules/core/examples/full.expected/parent_revision.json +third_party/skia/infra/bots/recipe_modules/core/examples/full.expected/parent_revision_trybot.json third_party/skia/infra/bots/recipe_modules/core/examples/full.expected/pdfium_trybot.json third_party/skia/infra/bots/recipe_modules/core/examples/full.expected/test.json third_party/skia/infra/bots/recipe_modules/core/examples/full.py @@ -8940,15 +9071,21 @@ third_party/skia/infra/bots/recipe_modules/swarming_client/api.py third_party/skia/infra/bots/recipe_modules/swarming_client/examples/full.expected/basic.json third_party/skia/infra/bots/recipe_modules/vars/examples/full.py third_party/skia/infra/bots/recipes.py -third_party/skia/infra/bots/recipes/calmbench.expected/Calmbench-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All.json -third_party/skia/infra/bots/recipes/calmbench.expected/Calmbench-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Release-All.json +third_party/skia/infra/bots/recipes/bookmaker.expected/nightly_bookmaker.json +third_party/skia/infra/bots/recipes/bookmaker.expected/nightly_failed_extract_fiddles.json +third_party/skia/infra/bots/recipes/bookmaker.expected/nightly_failed_fiddlecli.json +third_party/skia/infra/bots/recipes/bookmaker.expected/nightly_failed_fiddles.json +third_party/skia/infra/bots/recipes/bookmaker.expected/nightly_failed_upload.json +third_party/skia/infra/bots/recipes/bookmaker.expected/percommit_bookmaker.json +third_party/skia/infra/bots/recipes/bookmaker.expected/percommit_failed_validation.json +third_party/skia/infra/bots/recipes/bookmaker.py third_party/skia/infra/bots/recipes/calmbench.py third_party/skia/infra/bots/recipes/check_generated_files.expected/Housekeeper-PerCommit-CheckGeneratedFiles.json third_party/skia/infra/bots/recipes/check_generated_files.py third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-arm-Release-Chromebook_GLES.json third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-arm64-Release-Android.json +third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-arm64-Release-Android_ASAN.json third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-arm64-Release-Android_Vulkan.json -third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-mipsel-Debug-Android.json third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-x86_64-Debug-ASAN.json third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-x86_64-Debug-Coverage.json third_party/skia/infra/bots/recipes/compile.expected/Build-Debian9-Clang-x86_64-Debug-MSAN.json @@ -9014,16 +9151,17 @@ third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-GalaxyS6-GP third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-All-Android.json third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android.json third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR.json -third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-Nexus10-CPU-Exynos5250-arm-Release-All-Android.json third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android.json +third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All-Android_NoGPUThreads.json +third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android.json third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android.json third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-Release-All-Android.json third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-All-Android_Vulkan.json -third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-PixelC-CPU-TegraX1-arm64-Debug-All-Android.json -third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-PixelXL-GPU-Adreno530-arm64-Debug-All-Android_CCPR.json -third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-PixelXL-GPU-Adreno530-arm64-Debug-All-Android_Vulkan.json +third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_CCPR.json +third_party/skia/infra/bots/recipes/test.expected/Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan.json third_party/skia/infra/bots/recipes/test.expected/Test-ChromeOS-Clang-ASUSChromebookFlipC100-GPU-MaliT764-arm-Debug-All.json third_party/skia/infra/bots/recipes/test.expected/Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-arm-Debug-All.json +third_party/skia/infra/bots/recipes/test.expected/Test-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release-All.json third_party/skia/infra/bots/recipes/test.expected/Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release-All.json third_party/skia/infra/bots/recipes/test.expected/Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-SK_USE_DISCARDABLE_SCALEDIMAGECACHE.json third_party/skia/infra/bots/recipes/test.expected/Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-SK_FORCE_RASTER_PIPELINE_BLITTER.json @@ -9033,7 +9171,7 @@ third_party/skia/infra/bots/recipes/test.expected/Test-Mac-Clang-MacMini7.1-CPU- third_party/skia/infra/bots/recipes/test.expected/Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer.json third_party/skia/infra/bots/recipes/test.expected/Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug-All.json third_party/skia/infra/bots/recipes/test.expected/Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan.json -third_party/skia/infra/bots/recipes/test.expected/Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan.json +third_party/skia/infra/bots/recipes/test.expected/Test-Ubuntu16-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan.json third_party/skia/infra/bots/recipes/test.expected/Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug-All.json third_party/skia/infra/bots/recipes/test.expected/Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE.json third_party/skia/infra/bots/recipes/test.expected/Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-Vulkan.json @@ -9063,15 +9201,19 @@ third_party/skia/infra/bots/recipes/update_meta_config.expected/Housekeeper-Nigh third_party/skia/infra/bots/recipes/update_meta_config.expected/failed_update.json third_party/skia/infra/bots/recipes/update_meta_config.expected/trybot_test.json third_party/skia/infra/bots/recipes/update_meta_config.py -third_party/skia/infra/bots/recipes/upload_calmbench_results.expected/normal_bot.json -third_party/skia/infra/bots/recipes/upload_calmbench_results.expected/trybot.json third_party/skia/infra/bots/recipes/upload_calmbench_results.py third_party/skia/infra/bots/recipes/upload_coverage_results.py third_party/skia/infra/bots/recipes/upload_dm_results.py third_party/skia/infra/bots/recipes/upload_nano_results.py +third_party/skia/infra/bots/recipes/upload_skiaserve.py third_party/skia/infra/bots/update_meta_config.py +third_party/skia/infra/bots/upload_md.py third_party/skia/infra/bots/upload_skps.py third_party/skia/infra/bots/utils.py +third_party/skia/platform_tools/android/apps/skqp/src/main/AndroidManifest.xml +third_party/skia/platform_tools/android/apps/skqp/src/main/res/layout/activity_main.xml +third_party/skia/platform_tools/android/apps/skqp/src/main/res/layout/activity_skqp.xml +third_party/skia/platform_tools/android/apps/skqp/src/main/res/layout/content_skqp.xml third_party/skia/platform_tools/android/apps/viewer/src/main/AndroidManifest.xml third_party/skia/platform_tools/android/apps/viewer/src/main/res/layout-xlarge-land/activity_main.xml third_party/skia/platform_tools/android/apps/viewer/src/main/res/layout/activity_main.xml @@ -9098,12 +9240,13 @@ third_party/skia/src/core/SkTextBlob.cpp third_party/skia/src/gpu/GrDrawingManager.cpp third_party/skia/src/gpu/GrOpList.h third_party/skia/src/gpu/GrRenderTargetContext.cpp -third_party/skia/src/gpu/ccpr/GrCCPRCubicShader.h -third_party/skia/src/gpu/ccpr/GrCCPRQuadraticShader.h +third_party/skia/src/gpu/ccpr/GrCCCubicShader.h +third_party/skia/src/gpu/ccpr/GrCCQuadraticShader.h third_party/skia/src/gpu/gl/GrGLCaps.cpp third_party/skia/src/gpu/gl/GrGLCaps.h third_party/skia/src/gpu/gl/GrGLGpu.cpp third_party/skia/src/gpu/text/GrStencilAndCoverTextContext.cpp +third_party/skia/src/gpu/vk/GrVkBuffer.cpp third_party/skia/src/images/SkWebpEncoder.cpp third_party/skia/src/pathops/SkPathOpsOp.cpp third_party/skia/src/ports/SkFontHost_FreeType.cpp @@ -9160,6 +9303,7 @@ third_party/skia/tools/skp/page_sets/skia_pokemonwiki_desktop.py third_party/skia/tools/skp/page_sets/skia_tiger8svg_desktop.py third_party/skia/tools/skp/page_sets/skia_wowwiki_desktop.py third_party/skia/tools/skp/page_sets/skia_ynevsvg_desktop.py +third_party/skia/tools/skp/webpages_playback.py third_party/skia/tools/skpbench/sheet.py third_party/smhasher/src/PMurHash.c third_party/snappy/linux/snappy-stubs-public.h @@ -9362,9 +9506,11 @@ third_party/typ/typ/fakes/test_result_server_fake.py third_party/typ/typ/json_results.py third_party/visualmetrics/src/tests/data/lemons/timeline.json third_party/vulkan-validation-layers/src/build-android/AndroidManifest.xml +third_party/vulkan-validation-layers/src/build-android/cmake/layerlib/src/main/AndroidManifest.xml third_party/vulkan-validation-layers/src/demos/android/cube-with-layers/AndroidManifest.xml third_party/vulkan-validation-layers/src/demos/android/cube/AndroidManifest.xml third_party/vulkan-validation-layers/src/demos/cube.c +third_party/vulkan-validation-layers/src/demos/gettime.h third_party/vulkan-validation-layers/src/demos/smoke/android/src/main/AndroidManifest.xml third_party/vulkan-validation-layers/src/layers/core_validation.cpp third_party/vulkan-validation-layers/src/layers/core_validation.h @@ -9372,16 +9518,10 @@ third_party/vulkan-validation-layers/src/layers/core_validation_error_enums.h third_party/vulkan-validation-layers/src/layers/core_validation_types.h third_party/vulkan-validation-layers/src/layers/descriptor_sets.cpp third_party/vulkan-validation-layers/src/layers/descriptor_sets.h -third_party/vulkan-validation-layers/src/layers/object_tracker.cpp -third_party/vulkan-validation-layers/src/layers/parameter_validation.cpp -third_party/vulkan-validation-layers/src/layers/spec.py -third_party/vulkan-validation-layers/src/layers/swapchain.cpp -third_party/vulkan-validation-layers/src/layers/swapchain.h third_party/vulkan-validation-layers/src/layers/unique_objects.cpp third_party/vulkan-validation-layers/src/layers/unique_objects.h third_party/vulkan-validation-layers/src/layers/vk_layer_data.h third_party/vulkan-validation-layers/src/layers/vk_validation_error_messages.h -third_party/vulkan-validation-layers/src/layers/vk_validation_stats.py third_party/vulkan-validation-layers/src/libs/glm/detail/setup.hpp third_party/vulkan-validation-layers/src/libs/glm/gtx/dual_quaternion.hpp third_party/vulkan-validation-layers/src/libs/glm/gtx/io.hpp @@ -9390,10 +9530,14 @@ third_party/vulkan-validation-layers/src/loader/loader.h third_party/vulkan-validation-layers/src/loader/murmurhash.c third_party/vulkan-validation-layers/src/loader/murmurhash.h third_party/vulkan-validation-layers/src/loader/wsi.c +third_party/vulkan-validation-layers/src/scripts/external_revision_generator.py third_party/vulkan-validation-layers/src/scripts/helper_file_generator.py +third_party/vulkan-validation-layers/src/scripts/mock_icd_generator.py +third_party/vulkan-validation-layers/src/scripts/spec.py third_party/vulkan-validation-layers/src/scripts/threading_generator.py third_party/vulkan-validation-layers/src/scripts/unique_objects_generator.py third_party/vulkan-validation-layers/src/scripts/vk.xml +third_party/vulkan-validation-layers/src/scripts/vk_validation_stats.py third_party/vulkan-validation-layers/src/tests/gtest-1.7.0/codegear/gtest_all.cc third_party/vulkan-validation-layers/src/tests/gtest-1.7.0/codegear/gtest_link.cc third_party/vulkan-validation-layers/src/tests/gtest-1.7.0/fused-src/gtest/gtest-all.cc @@ -9764,6 +9908,7 @@ third_party/webgl/src/sdk/tests/conformance2/textures/misc/canvas-remains-unchan third_party/webgl/src/sdk/tests/conformance2/textures/misc/copy-texture-cube-map-AMD-bug.html third_party/webgl/src/sdk/tests/conformance2/textures/misc/tex-image-with-bad-args.html third_party/webgl/src/sdk/tests/conformance2/textures/misc/tex-subimage3d-pixel-buffer-bug.html +third_party/webgl/src/sdk/tests/conformance2/uniforms/draw-with-uniform-blocks.html third_party/webgl/src/sdk/tests/deqp/framework/common/tcuSkipList.js third_party/webgl/src/sdk/tests/deqp/temp_externs/chrome.js third_party/webgl/src/sdk/tests/deqp/temp_externs/es3.js @@ -9807,9 +9952,6 @@ third_party/webrtc/api/ortc/srtptransportinterface.h third_party/webrtc/api/video/i420_buffer.h third_party/webrtc/api/video_codecs/video_encoder.h third_party/webrtc/audio/test/low_bandwidth_audio_test.py -third_party/webrtc/call/audio_receive_stream.h -third_party/webrtc/call/audio_send_stream.h -third_party/webrtc/call/audio_state.h third_party/webrtc/call/call.cc third_party/webrtc/common_audio/resampler/sinc_resampler.cc third_party/webrtc/common_audio/signal_processing/spl_init.c @@ -9857,7 +9999,6 @@ third_party/webrtc/modules/audio_processing/echo_cancellation_bit_exact_unittest third_party/webrtc/modules/audio_processing/gain_control_unittest.cc third_party/webrtc/modules/audio_processing/test/android/apmtest/AndroidManifest.xml third_party/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/export.py -third_party/webrtc/modules/audio_processing/test/unpack.cc third_party/webrtc/modules/audio_processing/transient/file_utils.h third_party/webrtc/modules/audio_processing/utility/ooura_fft_tables_common.h third_party/webrtc/modules/audio_processing/utility/ooura_fft_tables_neon_sse2.h @@ -9872,7 +10013,6 @@ third_party/webrtc/modules/pacing/paced_sender.cc third_party/webrtc/modules/pacing/packet_router_unittest.cc third_party/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h third_party/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc -third_party/webrtc/modules/rtp_rtcp/source/rtp_sender.cc third_party/webrtc/modules/utility/source/jvm_android.cc third_party/webrtc/modules/video_capture/test/video_capture_unittest.cc third_party/webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.cc @@ -9937,11 +10077,12 @@ third_party/webrtc/rtc_tools/network_tester/androidapp/res/layout/activity_main. third_party/webrtc/rtc_tools/rtcbot/rtcBotReportVisualizer/index.html third_party/webrtc/rtc_tools/rtcbot/test.js third_party/webrtc/rtc_tools/testing/utils.py +third_party/webrtc/rtc_tools/unpack_aecdump/unpack.cc third_party/webrtc/sdk/android/AndroidManifest.xml third_party/webrtc/sdk/android/instrumentationtests/AndroidManifest.xml third_party/webrtc/sdk/android/src/jni/class_loader.h -third_party/webrtc/sdk/android/src/jni/classreferenceholder.h -third_party/webrtc/sdk/android/src/jni/pc/androidnetworkmonitor_jni.cc +third_party/webrtc/sdk/android/src/jni/pc/androidnetworkmonitor.cc +third_party/webrtc/sdk/android/src/jni/scoped_java_ref.h third_party/webrtc/test/android/AndroidManifest.xml third_party/webrtc/tools_webrtc/android/AndroidManifest.xml third_party/webrtc/tools_webrtc/autoroller/roll_deps.py @@ -9967,7 +10108,6 @@ third_party/webrtc/video/end_to_end_tests.cc third_party/webrtc/video/full_stack_tests.cc third_party/webrtc/video/rtp_video_stream_receiver.h third_party/webrtc/voice_engine/channel.cc -third_party/webrtc_overrides/rtc_base/logging.cc third_party/woff2/src/buffer.h third_party/woff2/src/transform.cc third_party/woff2/src/woff2_common.h @@ -10007,6 +10147,7 @@ tools/android/loading/options.py tools/android/memconsumer/java/AndroidManifest.xml tools/android/push_apps_to_background/AndroidManifest.xml tools/android/push_apps_to_background/res/layout/activity_push_apps_to_background.xml +tools/android/sdk_updater/update_sdk.py tools/binary_size/PRESUBMIT.py tools/binary_size/diagnose_bloat.py tools/binary_size/libsupersize/template/index.html @@ -10079,6 +10220,7 @@ tools/clang/plugins/tests/trivial_ctor.cpp tools/clang/scripts/package.py tools/clang/scripts/update.py tools/clang/translation_unit/test_translation_unit.py +tools/code_coverage/coverage.py tools/coverity/coverity.py tools/cr/cr/base/android.py tools/cr/main.py @@ -10102,10 +10244,10 @@ tools/grit/grit/format/android_xml.py tools/grit/grit/format/android_xml_unittest.py tools/grit/grit/format/chrome_messages_json.py tools/grit/grit/format/rc.py -tools/grit/grit/format/rc_header.py tools/grit/grit/gather/policy_json_unittest.py tools/grit/grit/gather/tr_html_unittest.py tools/grit/grit/grd_reader_unittest.py +tools/grit/grit/node/misc.py tools/grit/grit/pseudo_rtl.py tools/grit/grit/tclib_unittest.py tools/grit/grit/testdata/README.txt @@ -10156,6 +10298,7 @@ tools/md_browser/gitiles_ext_blocks.py tools/md_browser/gitiles_smart_quotes.py tools/md_browser/md_browser.py tools/measure_page_load_time/ff_ext/content/measure_page_load_time.js +tools/media_engagement_preload/make_dafsa_unittest.py tools/memory_inspector/PRESUBMIT.py tools/memory_inspector/chrome_app/template/main_window.js tools/memory_inspector/memory_inspector/constants.py @@ -10212,6 +10355,7 @@ tools/perf/contrib/leak_detection/page_sets.py tools/perf/contrib/memory_extras/memory_extras.py tools/perf/contrib/network_service/loading.py tools/perf/contrib/oilpan/oilpan_benchmarks.py +tools/perf/contrib/oop_raster/oop_raster.py tools/perf/contrib/vr_benchmarks/vr_benchmarks.py tools/perf/core/bootstrap.py tools/perf/core/perf_data_generator.py @@ -10253,6 +10397,8 @@ tools/perf/page_sets/login_helpers/chrome_login.py tools/perf/page_sets/login_helpers/facebook_login.py tools/perf/page_sets/login_helpers/google_login.py tools/perf/page_sets/login_helpers/pinterest_login.py +tools/perf/page_sets/maps_perf_test/performance.html +tools/perf/page_sets/maps_perf_test/tracked.js tools/perf/page_sets/memory_top_10_mobile.py tools/perf/page_sets/system_health/accessibility_stories.py tools/perf/page_sets/system_health/background_stories.py @@ -10394,6 +10540,7 @@ tools/traceline/svgui/traceline.js tools/traffic_annotation/auditor/tests/extractor_outputs/good_partial_annotation.txt tools/traffic_annotation/auditor/traffic_annotation_auditor_ui.cc tools/traffic_annotation/sample_traffic_annotation.cc +tools/traffic_annotation/scripts/check_annotations.py tools/usb_gadget/gadget.py tools/usb_gadget/msos20_descriptors.py tools/valgrind/gtest_exclude/net_unittests.gtest-memcheck.txt @@ -10541,6 +10688,7 @@ v8/gypfiles/isolate.gypi v8/gypfiles/toolchain.gypi v8/include/PRESUBMIT.py v8/include/v8.h +v8/infra/config/PRESUBMIT.py v8/samples/process.cc v8/src/PRESUBMIT.py v8/src/allocation.cc @@ -10569,6 +10717,7 @@ v8/src/objects/string-inl.h v8/src/parsing/parser-base.h v8/src/parsing/pattern-rewriter.cc v8/src/runtime/runtime-strings.cc +v8/src/third_party/utf8-decoder/utf8-decoder.h v8/src/tracing/trace-event.h v8/src/value-serializer.cc v8/src/wasm/module-decoder.cc @@ -10576,7 +10725,12 @@ v8/tools/SourceMap.js v8/tools/callstats.html v8/tools/callstats.py v8/tools/grokdump.py +v8/tools/heap-stats/index.html v8/tools/mb/mb.py +v8/tools/node/fetch_deps.py +v8/tools/node/node_common.py +v8/tools/node/update_node.py +v8/tools/parse-processor.html v8/tools/profview/index.html v8/tools/profviz/profviz.html v8/tools/release/auto_roll.py diff --git a/resources/config_bundles/common/patch_order.list b/resources/config_bundles/common/patch_order.list index bb5c775b..7c618afb 100644 --- a/resources/config_bundles/common/patch_order.list +++ b/resources/config_bundles/common/patch_order.list @@ -1,9 +1,7 @@ -inox-patchset/chromium-angle-r0.patch inox-patchset/chromium-clang-r2.patch -inox-patchset/chromium-cups-r0.patch -inox-patchset/chromium-memcpy-r0.patch +inox-patchset/chromium-math.h-r0.patch +inox-patchset/chromium-stdint.patch inox-patchset/chromium-exclude_unwind_tables.patch -inox-patchset/chromium-omnibox-unescape-fragment.patch inox-patchset/chromium-skia-harmony.patch inox-patchset/0001-fix-building-without-safebrowsing.patch inox-patchset/0002-fix-building-without-reporting.patch diff --git a/resources/config_bundles/common/pruning.list b/resources/config_bundles/common/pruning.list index 75b985ba..462ae94f 100644 --- a/resources/config_bundles/common/pruning.list +++ b/resources/config_bundles/common/pruning.list @@ -47,6 +47,7 @@ chrome/browser/resources/default_apps/docs.crx chrome/browser/resources/default_apps/drive.crx chrome/browser/resources/default_apps/gmail.crx chrome/browser/resources/default_apps/youtube.crx +chrome/browser/resources/media/mei_preload/preloaded_data.pb chrome/browser/resources/vr_shell/ddcontroller.glb chrome/browser/vr/test/data/sample.glb chrome/installer/linux/debian/repo_signing_keys.gpg @@ -54,6 +55,57 @@ chrome/installer/test/data/SETUP.EX_ chrome/installer/zucchini/testdata/patch_fuzzer/empty.zuc chrome/test/media_router/telemetry/benchmarks/pagesets/bear-vp9-opus.webm cloud_print/virtual_driver/win/install/inf/gcp_driver.inf +components/cbor/cbor_reader_fuzzer_corpus/cbor0 +components/cbor/cbor_reader_fuzzer_corpus/cbor1 +components/cbor/cbor_reader_fuzzer_corpus/cbor11 +components/cbor/cbor_reader_fuzzer_corpus/cbor13 +components/cbor/cbor_reader_fuzzer_corpus/cbor17 +components/cbor/cbor_reader_fuzzer_corpus/cbor18 +components/cbor/cbor_reader_fuzzer_corpus/cbor19 +components/cbor/cbor_reader_fuzzer_corpus/cbor20 +components/cbor/cbor_reader_fuzzer_corpus/cbor22 +components/cbor/cbor_reader_fuzzer_corpus/cbor24 +components/cbor/cbor_reader_fuzzer_corpus/cbor25 +components/cbor/cbor_reader_fuzzer_corpus/cbor26 +components/cbor/cbor_reader_fuzzer_corpus/cbor27 +components/cbor/cbor_reader_fuzzer_corpus/cbor28 +components/cbor/cbor_reader_fuzzer_corpus/cbor29 +components/cbor/cbor_reader_fuzzer_corpus/cbor3 +components/cbor/cbor_reader_fuzzer_corpus/cbor30 +components/cbor/cbor_reader_fuzzer_corpus/cbor31 +components/cbor/cbor_reader_fuzzer_corpus/cbor32 +components/cbor/cbor_reader_fuzzer_corpus/cbor33 +components/cbor/cbor_reader_fuzzer_corpus/cbor34 +components/cbor/cbor_reader_fuzzer_corpus/cbor35 +components/cbor/cbor_reader_fuzzer_corpus/cbor36 +components/cbor/cbor_reader_fuzzer_corpus/cbor37 +components/cbor/cbor_reader_fuzzer_corpus/cbor38 +components/cbor/cbor_reader_fuzzer_corpus/cbor39 +components/cbor/cbor_reader_fuzzer_corpus/cbor4 +components/cbor/cbor_reader_fuzzer_corpus/cbor45 +components/cbor/cbor_reader_fuzzer_corpus/cbor48 +components/cbor/cbor_reader_fuzzer_corpus/cbor49 +components/cbor/cbor_reader_fuzzer_corpus/cbor5 +components/cbor/cbor_reader_fuzzer_corpus/cbor50 +components/cbor/cbor_reader_fuzzer_corpus/cbor51 +components/cbor/cbor_reader_fuzzer_corpus/cbor54 +components/cbor/cbor_reader_fuzzer_corpus/cbor6 +components/cbor/cbor_reader_fuzzer_corpus/cbor63 +components/cbor/cbor_reader_fuzzer_corpus/cbor64 +components/cbor/cbor_reader_fuzzer_corpus/cbor65 +components/cbor/cbor_reader_fuzzer_corpus/cbor67 +components/cbor/cbor_reader_fuzzer_corpus/cbor68 +components/cbor/cbor_reader_fuzzer_corpus/cbor7 +components/cbor/cbor_reader_fuzzer_corpus/cbor71 +components/cbor/cbor_reader_fuzzer_corpus/cbor72 +components/cbor/cbor_reader_fuzzer_corpus/cbor74 +components/cbor/cbor_reader_fuzzer_corpus/cbor75 +components/cbor/cbor_reader_fuzzer_corpus/cbor76 +components/cbor/cbor_reader_fuzzer_corpus/cbor77 +components/cbor/cbor_reader_fuzzer_corpus/cbor78 +components/cbor/cbor_reader_fuzzer_corpus/cbor79 +components/cbor/cbor_reader_fuzzer_corpus/cbor8 +components/cbor/cbor_reader_fuzzer_corpus/cbor9 components/domain_reliability/baked_in_configs/c_2mdn_net.json components/domain_reliability/baked_in_configs/c_android_clients_google_com.json components/domain_reliability/baked_in_configs/c_bigcache_googleapis_com.json @@ -87,7 +139,6 @@ components/test/data/crx_file/valid_publisher.crx3 components/test/data/history/HistoryNoDuration components/test/data/history/HistoryNoSource components/test/data/history/History_with_starred -components/test/data/printing/google.mskp components/test/data/update_client/binary_bsdiff_patch.bin components/test/data/update_client/binary_courgette_patch.bin components/test/data/update_client/binary_input.bin @@ -104,6 +155,9 @@ components/test/data/update_client/jebgalgnebhfojomionfpkfelancnnkf.crx components/test/data/update_client/jebgalgnebhfojomionfpkfelancnnkf/component1.dll components/test/data/update_client/runaction_test_win.crx3 components/test/data/webp_transcode/test_small.tiff +device/u2f/response_data_fuzzer_corpus/register1 +device/u2f/response_data_fuzzer_corpus/sign0 +device/u2f/response_data_fuzzer_corpus/sign1 device/usb/fuzz_corpus/descriptor0 device/usb/fuzz_corpus/descriptor1 device/usb/fuzz_corpus/descriptor2 @@ -122,6 +176,20 @@ ios/chrome/test/data/testpass.pkpass ios/chrome/test/data/voice/test_sound.m4a ios/testing/data/http_server_files/generic.pkpass ios/web/test/data/testpass.pkpass +media/midi/fuzz/corpus/broken_data_3 +media/midi/fuzz/corpus/channel_pressure +media/midi/fuzz/corpus/channel_pressure_with_running_status +media/midi/fuzz/corpus/data_byte_0 +media/midi/fuzz/corpus/gm_on +media/midi/fuzz/corpus/gm_on_with_real_time_clock +media/midi/fuzz/corpus/gs_on +media/midi/fuzz/corpus/mtc_frame +media/midi/fuzz/corpus/note_on +media/midi/fuzz/corpus/note_on_with_real_time_clock +media/midi/fuzz/corpus/note_on_with_running_status +media/midi/fuzz/corpus/partial_gm_on_2 +media/midi/fuzz/corpus/partial_note_on_3 +media/midi/fuzz/corpus/reserved_message_1_with_data_bytes mojo/public/tools/fuzzers/message_corpus/message_0.mojomsg mojo/public/tools/fuzzers/message_corpus/message_1.mojomsg mojo/public/tools/fuzzers/message_corpus/message_10.mojomsg @@ -827,7 +895,10 @@ net/data/ssl/certificates/client_5.pk8 net/data/ssl/certificates/client_6.pk8 net/data/ssl/certificates/crlset_by_intermediate_serial.raw net/data/ssl/certificates/crlset_by_leaf_spki.raw +net/data/ssl/certificates/crlset_by_leaf_subject_no_spki.raw net/data/ssl/certificates/crlset_by_root_serial.raw +net/data/ssl/certificates/crlset_by_root_subject.raw +net/data/ssl/certificates/crlset_by_root_subject_no_spki.raw net/data/ssl/certificates/dod_ca_13_cert.der net/data/ssl/certificates/dod_ca_17_cert.der net/data/ssl/certificates/dod_root_ca_2_cert.der @@ -847,9 +918,8 @@ net/data/ssl/certificates/multi-root-crlset-E.raw net/data/ssl/certificates/multi-root-crlset-unrelated.raw net/data/ssl/certificates/multi-root.keychain net/data/ssl/certificates/nist.der -net/data/ssl/certificates/quic_test.example.com.key.pkcs8 -net/data/ssl/certificates/quic_test.example.com.key.sct -net/data/ssl/certificates/quic_test_ecc.example.com.sct +net/data/ssl/certificates/quic-leaf-cert.key +net/data/ssl/certificates/quic-leaf-cert.key.sct net/data/ssl/certificates/unittest.key.bin net/data/ssl/certificates/unittest.originbound.der net/data/ssl/certificates/unittest.originbound.key.der @@ -3316,42 +3386,32 @@ third_party/boringssl/src/fuzz/cert_corpus/ffbb636af93377f32e0d9761d288f785a20cd third_party/boringssl/src/fuzz/cert_corpus/fff3e9b3fffede8612c550aa15961419a499ce4c third_party/boringssl/src/fuzz/client_corpus/00a4669a03175476c55d468345e3159e2c2a352d third_party/boringssl/src/fuzz/client_corpus/012179816b953af8c4772536de1799ab4c5f5800 -third_party/boringssl/src/fuzz/client_corpus/012b58553ac07d8674b4ab5cbb65b2d1bd47a7cc -third_party/boringssl/src/fuzz/client_corpus/018054b58788b1cf2cb9859e7337a791c88c8457 third_party/boringssl/src/fuzz/client_corpus/022ade30caf5b616424343c130e9af35a05abe23 third_party/boringssl/src/fuzz/client_corpus/0255d44a494a3d098b0c42ceef796ca593070a35 third_party/boringssl/src/fuzz/client_corpus/02678715fa1eff8b499f08ec5d28c2df60c99341 -third_party/boringssl/src/fuzz/client_corpus/0267da870fb294f38df9560ca06d86ef08908a2e third_party/boringssl/src/fuzz/client_corpus/02905cfa91782fa2f259040494176b2a8b7de1c7 third_party/boringssl/src/fuzz/client_corpus/02f44c799d522c30b53075a1d1df1f294c6f009e third_party/boringssl/src/fuzz/client_corpus/03006bd9cbc1a0531a06f3de503dd26a5b248a94 -third_party/boringssl/src/fuzz/client_corpus/0326fcba990dc6c981873e4bdec79f7319243748 -third_party/boringssl/src/fuzz/client_corpus/03852802acd73cadbe1c37fed49db7838a117de5 third_party/boringssl/src/fuzz/client_corpus/03a72712327d13e66f221c63e6e9ddab70499911 third_party/boringssl/src/fuzz/client_corpus/045757f7f419961c2f07c0a55631ce64dd7ba98b +third_party/boringssl/src/fuzz/client_corpus/047480269678f3d06acac5ce8a780e9bc1dd0e1a third_party/boringssl/src/fuzz/client_corpus/04a2ddfe12a2ac1d0e57c417469605c135168034 -third_party/boringssl/src/fuzz/client_corpus/04bd6d1ae876a293152b39c1b63f0833afb3f43d third_party/boringssl/src/fuzz/client_corpus/04c4d8584b0f30ecbe3e4402abd65a4534865f7a third_party/boringssl/src/fuzz/client_corpus/050052c6f0d978497e72f01e84bf6fe30e8d54d4 third_party/boringssl/src/fuzz/client_corpus/051434bcceafc34c19a34eb15093fba4eb6995c8 third_party/boringssl/src/fuzz/client_corpus/051f33f8159bd96def2dfe4980bf498def1cf4b1 -third_party/boringssl/src/fuzz/client_corpus/05286ae4d295c1f12086cd633ea9fa853d56359c -third_party/boringssl/src/fuzz/client_corpus/059e79eba4b5e804ab89d9050a06a71732e23ca6 third_party/boringssl/src/fuzz/client_corpus/06b9a13d72ddf6dddd3f035eb905b62734a624ed third_party/boringssl/src/fuzz/client_corpus/070427637b049ff46a6185a105138086721f9082 -third_party/boringssl/src/fuzz/client_corpus/0714ddee35caccb1e780f022bc5121e29cd6536a third_party/boringssl/src/fuzz/client_corpus/0753691c8a9b1b935e3583b75d7a3145f720d9d0 third_party/boringssl/src/fuzz/client_corpus/078f98f5921f5319f6168d184ba8b6d0b0ae15cb third_party/boringssl/src/fuzz/client_corpus/07ab5fa897cbaebdb256b514525ef37dd6e3bede third_party/boringssl/src/fuzz/client_corpus/07b8d1577fd6751b5ad7fba397487c29b3b0d1ff third_party/boringssl/src/fuzz/client_corpus/08938e746b62c4d0dd0553de1838a148a52782a2 third_party/boringssl/src/fuzz/client_corpus/08f381a2eac9d88287650bd0d71653404aa88b30 -third_party/boringssl/src/fuzz/client_corpus/08fad3e891d70ccc35f04306c77a39411d1e7f0b third_party/boringssl/src/fuzz/client_corpus/091129e458a7fb22128c7e0981f5c7c81014e59a third_party/boringssl/src/fuzz/client_corpus/0a0a77a230444880e50066812d593271a7bd7212 third_party/boringssl/src/fuzz/client_corpus/0a1dbb6afc28a7fe80b74ae3288ac57cbe9529d7 third_party/boringssl/src/fuzz/client_corpus/0a2cf521ffbec9246c06bdfa73316f082b275dac -third_party/boringssl/src/fuzz/client_corpus/0a92251775eb7e02277dbe93aa00d98678b9cfce third_party/boringssl/src/fuzz/client_corpus/0adedb3d7cc622a92e13845ba85e9bf1c0d23be2 third_party/boringssl/src/fuzz/client_corpus/0b0b599c35047eb3eddb172386c70b762aa5b8d8 third_party/boringssl/src/fuzz/client_corpus/0b13eb913ecf991a7417d05b71cab7331cb11928 @@ -3359,85 +3419,70 @@ third_party/boringssl/src/fuzz/client_corpus/0c76ac23b3d5956361c4ee01a9b94e09045 third_party/boringssl/src/fuzz/client_corpus/0c87885bf167baddbc7ed787686b4962cbee26e9 third_party/boringssl/src/fuzz/client_corpus/0c8c7b00c93105275eaa7a5e89106fc776ffc925 third_party/boringssl/src/fuzz/client_corpus/0c9f62144dfaf9c20115b17b8018a525a53b6f96 +third_party/boringssl/src/fuzz/client_corpus/0d112b64839a2079c5732659372d7057698c0c8e third_party/boringssl/src/fuzz/client_corpus/0d2206a727642ab40f8208e0ad09522c46a5c902 -third_party/boringssl/src/fuzz/client_corpus/0d502456f5c1aba365b8ebfefded41a669d03d03 third_party/boringssl/src/fuzz/client_corpus/0d5f087bc67051acfcafa0a4c0ae8905fff7f16b +third_party/boringssl/src/fuzz/client_corpus/0d69949c441954da1d9b2aa33f00185b63017775 third_party/boringssl/src/fuzz/client_corpus/0ddf7918693a1d0d2db4d386d36428c1cf173d46 third_party/boringssl/src/fuzz/client_corpus/0e839006a2595d9aeef22cb9762b97fadb44e23f third_party/boringssl/src/fuzz/client_corpus/0eafeed1661611dceae201683c22cc48b7830d5a third_party/boringssl/src/fuzz/client_corpus/0eb359ed50206f62ce29211fceb26d529a5221b2 -third_party/boringssl/src/fuzz/client_corpus/0faf170f5397113ccc60e9121301691ed0741e18 -third_party/boringssl/src/fuzz/client_corpus/0fd9e732c7cfc06b901d9b17c993d59e643ad8f2 +third_party/boringssl/src/fuzz/client_corpus/0fcc74786a3cfcc46b8cca0e1f386af389c1719d third_party/boringssl/src/fuzz/client_corpus/10160f43e2a9a996205b01ebe97fc837447be782 third_party/boringssl/src/fuzz/client_corpus/10a49beec4173c88d7ada3716749d03348f69b3e third_party/boringssl/src/fuzz/client_corpus/10e876f00a01321df4deab708431a576a273c5ff third_party/boringssl/src/fuzz/client_corpus/113966997654b918c943ef60e50680934dc93785 -third_party/boringssl/src/fuzz/client_corpus/11f6d27310ae414a59bc7f33676183f070975b22 +third_party/boringssl/src/fuzz/client_corpus/1273309a9fb94613b98f66b99f23ca4c4505af22 third_party/boringssl/src/fuzz/client_corpus/12d192b9f1e4cd1d57e78b28a1e428ca12f4d262 third_party/boringssl/src/fuzz/client_corpus/13248b9bf61272edbd4af057557858a18c76fa3e -third_party/boringssl/src/fuzz/client_corpus/1352584c7827012806391d572798141b58812e67 third_party/boringssl/src/fuzz/client_corpus/1457a6df484d46354814e6d96d2f19fd66b4257e third_party/boringssl/src/fuzz/client_corpus/1462b9ab928c5829124cb5bbb7d22154cf5b1221 third_party/boringssl/src/fuzz/client_corpus/1489f923c4dca729178b3e3233458550d8dddf29 third_party/boringssl/src/fuzz/client_corpus/16a96ddc906ac7b0c23c9de305c9f5d57662d3b3 third_party/boringssl/src/fuzz/client_corpus/16edf76313dbde3f7d5bb66a1bc28a0d4e331f20 third_party/boringssl/src/fuzz/client_corpus/16f4de03fcbf82630122a5d85eb991ddb9446305 +third_party/boringssl/src/fuzz/client_corpus/17a41950cc63827e50dac758ebdc3f7d160af2bc third_party/boringssl/src/fuzz/client_corpus/18fdaddd35d95b89f62c424e87b76d39e1186993 -third_party/boringssl/src/fuzz/client_corpus/19218520184aba139eef7d4f60e753ffcbd3cdba third_party/boringssl/src/fuzz/client_corpus/1a29dc3f4ddbc88e7f41f24504812f5aa031e6d6 third_party/boringssl/src/fuzz/client_corpus/1a920bc20dc342fd073e58c5e702fcfeabcd7d4c third_party/boringssl/src/fuzz/client_corpus/1b38a6c19d65a990faa03085fdfe03a8d03be0be -third_party/boringssl/src/fuzz/client_corpus/1b92e2a858bebc0ade09242f1cef998e85980cdf -third_party/boringssl/src/fuzz/client_corpus/1be7d55841e81d880ed265375d5591b5f410e7da third_party/boringssl/src/fuzz/client_corpus/1c4f68b0c7ff500dde6ed368b97913236e06b480 -third_party/boringssl/src/fuzz/client_corpus/1c6b85b327b039a9945637ea469b3e2306640983 -third_party/boringssl/src/fuzz/client_corpus/1d8e4321227ffdda3c5df96a15ca5c00eb90dced +third_party/boringssl/src/fuzz/client_corpus/1c838033e540b1d4e7c15cb7075dd98f4daea405 third_party/boringssl/src/fuzz/client_corpus/1dea82855d6050ac4e58b7fc9b36a9a1db7eab0b -third_party/boringssl/src/fuzz/client_corpus/1ea355aaf7a71920194df1a1ec3b83b092c602dd third_party/boringssl/src/fuzz/client_corpus/1ec693ed992d0413f7452bd12fe7c56da2f843b2 third_party/boringssl/src/fuzz/client_corpus/1f01512da77f2bc35554ebdec20f95c922fabe90 third_party/boringssl/src/fuzz/client_corpus/1f27ef50ed64041270dbe15c8fa70970d2f53673 -third_party/boringssl/src/fuzz/client_corpus/1f56d229de3a39f4d138235183b83a799e242e25 third_party/boringssl/src/fuzz/client_corpus/1fa317904e38b79eb0f97ab5cb5cd921da263735 third_party/boringssl/src/fuzz/client_corpus/20772b4b2e3717da6130fd5eaa28cfa9610bf5c8 third_party/boringssl/src/fuzz/client_corpus/209ceb138208c6122491447d1feb86d22b0b735d -third_party/boringssl/src/fuzz/client_corpus/20a2d0f44515f54e8626b8e755d70e31ae757049 -third_party/boringssl/src/fuzz/client_corpus/20c34f92938131cc09876db62cfb056d4a8d6323 +third_party/boringssl/src/fuzz/client_corpus/21db8450e70d77763c4e9b308f2ab0bba4d2e936 third_party/boringssl/src/fuzz/client_corpus/21fd5f4d8d8219de4bca7d8259dcfce2d6c98c52 -third_party/boringssl/src/fuzz/client_corpus/2227fcda00f1f2f853cb6f9f47d185e3c31a5b8f third_party/boringssl/src/fuzz/client_corpus/2295c860d5d7f71fff164236470cb48902a46159 third_party/boringssl/src/fuzz/client_corpus/22f2f3f9647785650e57da5bac1ee1380c4d904e +third_party/boringssl/src/fuzz/client_corpus/23b72188d77132ea04131a9888767b920c10c60e third_party/boringssl/src/fuzz/client_corpus/23c0a95196ed3217c091f64bb83bf35969b3a236 -third_party/boringssl/src/fuzz/client_corpus/23dcc5d06f29714ec029315dc0627fdc137fc9af -third_party/boringssl/src/fuzz/client_corpus/25a9ad9e1443a2fbc9546b533ff107de56152def third_party/boringssl/src/fuzz/client_corpus/2600d3f4f8e8260e3dcd569f9aeab3472073ed28 third_party/boringssl/src/fuzz/client_corpus/26509a8eecd1dc8da2539f8a6043017bee3d7e5a third_party/boringssl/src/fuzz/client_corpus/2663bbcebc2d0196a8479e7bd6c4a0c50dc2a7b4 third_party/boringssl/src/fuzz/client_corpus/268f3a6e5988719ce6342aac22f398120fc1e650 third_party/boringssl/src/fuzz/client_corpus/271f300013a0c622c62053394768a322f128925f +third_party/boringssl/src/fuzz/client_corpus/27a06a5522a8e3c580c33b4d89e26bc7b2c1c44f third_party/boringssl/src/fuzz/client_corpus/27d8f11bba8911fab93f9a071758fde4ae68e97c third_party/boringssl/src/fuzz/client_corpus/27e30e7a74e4c1f7f3cb7b593f86085d754465eb third_party/boringssl/src/fuzz/client_corpus/27e3e7215df3bde2b1d9777d3d5c12d851756930 third_party/boringssl/src/fuzz/client_corpus/280261b9fbb593f68a40692db426a4bd349570fa -third_party/boringssl/src/fuzz/client_corpus/28379bd9e4620bd3dc9cfb8fc8bd6701bc0f9278 third_party/boringssl/src/fuzz/client_corpus/28885a18e7cdf0652611aa2a6c0451ccf5a80657 third_party/boringssl/src/fuzz/client_corpus/288f85e87627da44714b0e4ea5c36a6b5dc47309 third_party/boringssl/src/fuzz/client_corpus/28d25966f30bcb3fa3376830109d2dfcd1ec5e04 +third_party/boringssl/src/fuzz/client_corpus/29019593ae0fe17f24c30c1ed6e81d90f0bae155 third_party/boringssl/src/fuzz/client_corpus/2ae019bf128fe0446ddf111ede241e1133804583 third_party/boringssl/src/fuzz/client_corpus/2b54b2bd17efcfb44d8b9fd3b7533bc3c6e64382 -third_party/boringssl/src/fuzz/client_corpus/2b63ddea4137b3a3fc1969110c64b75f308ae04b -third_party/boringssl/src/fuzz/client_corpus/2bb44fd69d880c2cf24b6f17df43c1ef55ebeca9 third_party/boringssl/src/fuzz/client_corpus/2c18d5783fc3aae3a33299e98d91dd79bdd84593 third_party/boringssl/src/fuzz/client_corpus/2c248ea079ee8866385f5925cd2b221e99f6902e -third_party/boringssl/src/fuzz/client_corpus/2cde7a3d657d7b70a7a61e66e3540e1b910c717a third_party/boringssl/src/fuzz/client_corpus/2d0d60874eb38d8cf3cb5a533acfbed94a9c85ec third_party/boringssl/src/fuzz/client_corpus/2d6f1e3e2e1265df8a84188d5fff32375bb6ef26 third_party/boringssl/src/fuzz/client_corpus/2de2c9577497e916efa2d9e22896acf27fc569ac -third_party/boringssl/src/fuzz/client_corpus/2ead7d1f07c11d22cee502f404237186e66e9fa8 third_party/boringssl/src/fuzz/client_corpus/2eb44da113d33ffeb7adbd554d492b8186871036 -third_party/boringssl/src/fuzz/client_corpus/2f3efb91c27d90806aa42d0d83036401a8110649 -third_party/boringssl/src/fuzz/client_corpus/2f850c36dbfb6e7f645ba5ba37f7081117b30614 -third_party/boringssl/src/fuzz/client_corpus/2fc1671b418d2a266c2c6dd0da354556ce773e83 third_party/boringssl/src/fuzz/client_corpus/30569fa929fa44e33ce161c4f4ca898f391352db third_party/boringssl/src/fuzz/client_corpus/307640519abd0bd6dfd3d58c45a5938583d983f5 third_party/boringssl/src/fuzz/client_corpus/30bacd78bde1964064995b1b25762064718a5270 @@ -3447,22 +3492,19 @@ third_party/boringssl/src/fuzz/client_corpus/312b4e89586028407304c4ca9d2fb01f72b third_party/boringssl/src/fuzz/client_corpus/3197bdc988e0562051fe78df4dacf287dfb4d8a9 third_party/boringssl/src/fuzz/client_corpus/31dc9b4d43e1334fc3b32c8f1a99133b929a81fa third_party/boringssl/src/fuzz/client_corpus/322d2b8ed42ecdfde91fab51a14def388271c29e +third_party/boringssl/src/fuzz/client_corpus/3298d08fa699cc3b4df3d454266e56f56fd30715 +third_party/boringssl/src/fuzz/client_corpus/32b9c4d0aa3a98576350cdbaceefabf19d711fdd third_party/boringssl/src/fuzz/client_corpus/3318cda1e722ca255700a0f200a8212a6fc3abab -third_party/boringssl/src/fuzz/client_corpus/338571aaed8be503a1766b517e349ff88dbc6dd1 third_party/boringssl/src/fuzz/client_corpus/34cdb17eb999320626cb92ee813d075d74f8f4d6 -third_party/boringssl/src/fuzz/client_corpus/366ab612310bd405d1c877476039060b614cab49 third_party/boringssl/src/fuzz/client_corpus/36ab82cde14fc9082875af77efe678e2d20482d9 -third_party/boringssl/src/fuzz/client_corpus/370a61f5abaec9b13f8d0320f534041c5de4f10b third_party/boringssl/src/fuzz/client_corpus/37bd8712b1dc0a2c101c62fac2c74cca9783e0d6 third_party/boringssl/src/fuzz/client_corpus/38a1b09c079d16a4ac7384a3234fdf1a39b07b23 third_party/boringssl/src/fuzz/client_corpus/38b9b04617c86537cd6d9b0f1bda85efda0bdc48 -third_party/boringssl/src/fuzz/client_corpus/3a064ef010355948df3a051aa6cd8a4e3b86b037 third_party/boringssl/src/fuzz/client_corpus/3a2d4380e9f61f1ad3645a7c6cee929c996f7136 third_party/boringssl/src/fuzz/client_corpus/3a4c09845b9fc552e4bdf06eb633c7782375f3ec third_party/boringssl/src/fuzz/client_corpus/3ab00d40786b6d9df60f7c55aad889569cc2d289 third_party/boringssl/src/fuzz/client_corpus/3b643561a422e98f7eef3fa56e63b292be633558 third_party/boringssl/src/fuzz/client_corpus/3c1c9e8188e15ea8d78d0385f3bedc29d7d01237 -third_party/boringssl/src/fuzz/client_corpus/3c411821bc6b7c39d70678fc0b49b763c7028f5a third_party/boringssl/src/fuzz/client_corpus/3c43bebd27d15931341bde80b6a604616096e0d6 third_party/boringssl/src/fuzz/client_corpus/3c57d14a2698b73a51b6e16329dce3bf3820d454 third_party/boringssl/src/fuzz/client_corpus/3c7d1d113858ca068aa76d82f1bf6412b71415e8 @@ -3470,241 +3512,180 @@ third_party/boringssl/src/fuzz/client_corpus/3cd8cb4cb07b78612c4c0ed06fc8bc40090 third_party/boringssl/src/fuzz/client_corpus/3d1d894725291dc115c29a5618cecdb8efc95568 third_party/boringssl/src/fuzz/client_corpus/3d5f63ea051c303463d1fc9e40c94da571e5c504 third_party/boringssl/src/fuzz/client_corpus/3dce5964a93bf755cb29fc52568264a07548fcff -third_party/boringssl/src/fuzz/client_corpus/3e3d83ff0602334a99dd4969af410636b58c268c third_party/boringssl/src/fuzz/client_corpus/3e49dcd6a33b5f1683f878901bb62428dda37454 -third_party/boringssl/src/fuzz/client_corpus/3e4e4eaf23694312e2755ba5c7c016b1a90d370c third_party/boringssl/src/fuzz/client_corpus/3edda9d71b041688bcd7cbffc424a1538cfd07f8 +third_party/boringssl/src/fuzz/client_corpus/3f652e4e11aa938a1a1277f1174ad6dc33bbe622 third_party/boringssl/src/fuzz/client_corpus/3faad84b2489c637baead5186c6289fe8a8a6476 -third_party/boringssl/src/fuzz/client_corpus/3fb9dc79ecac11d76ef52738c024e56e4c620795 third_party/boringssl/src/fuzz/client_corpus/40245dd16aeea3af16b50ff983fcdef1490e21ea -third_party/boringssl/src/fuzz/client_corpus/40500856bacd3d47a323468ace898852eda8587d third_party/boringssl/src/fuzz/client_corpus/40c5fb0f3220bb37f45bf69ea5a197d38a2a3753 third_party/boringssl/src/fuzz/client_corpus/4187d923c91ab221da8e18f80475632a84a6e212 third_party/boringssl/src/fuzz/client_corpus/41a069cf62fef316e92aa67f42a0265ec974d1b3 third_party/boringssl/src/fuzz/client_corpus/41f6d9f5745a27c894698aa7fcc4e4ed386a4369 third_party/boringssl/src/fuzz/client_corpus/423a5d6d609fdac8f49f403e94311fe4530e4899 -third_party/boringssl/src/fuzz/client_corpus/426e7068501326acb5da0a9b945fd6a07a63bd32 +third_party/boringssl/src/fuzz/client_corpus/42d39267aac48c5b5df22e8779a8b5ca1e6414ea +third_party/boringssl/src/fuzz/client_corpus/43143dc817c313c17942e536ee1ed752d5679036 third_party/boringssl/src/fuzz/client_corpus/43b2d40fdb95ad755f34d64ff408b4bb3ed4be27 third_party/boringssl/src/fuzz/client_corpus/45178d87b26e965490b227802017ec1699624b51 third_party/boringssl/src/fuzz/client_corpus/456f9a91aa2fce920e9b981484719699b4bd959b -third_party/boringssl/src/fuzz/client_corpus/45ed4dba7dce3c45ae2a500c8162f6873c8595f7 third_party/boringssl/src/fuzz/client_corpus/463d129e21935b60fe8e7a31fbd1bb19b01b2c18 third_party/boringssl/src/fuzz/client_corpus/464ff0570dd243dba4873de1c7d4715b5889b308 third_party/boringssl/src/fuzz/client_corpus/46a9fc44bab25ddf24e92c4f137080bbd8684f10 third_party/boringssl/src/fuzz/client_corpus/46b693f35e3a1540fd6ce64ce18c9e69d5ea04c1 -third_party/boringssl/src/fuzz/client_corpus/46cc10aa3063076e31eb4112af46db9a8f9f2a9e -third_party/boringssl/src/fuzz/client_corpus/4873fecfa93b00d1a177969e6fbb251aba57fc11 third_party/boringssl/src/fuzz/client_corpus/489cc5493127321ede727c2bacbe852efb19ed24 third_party/boringssl/src/fuzz/client_corpus/48ac42d82cd9a47386670ad75690971f60b49c1d third_party/boringssl/src/fuzz/client_corpus/48c48ad84e7564fb35f58dddb55574b81d41d6c3 -third_party/boringssl/src/fuzz/client_corpus/48d5e6c70a176ad22fff46a7609b6d204a4df2c2 -third_party/boringssl/src/fuzz/client_corpus/499b1a1ee60836d79fc5686977d4af0d0bee5f86 -third_party/boringssl/src/fuzz/client_corpus/49a21b95e75323777f27a80f7ba67f5abe15a1fc -third_party/boringssl/src/fuzz/client_corpus/49c80a6f59bfa6e46e508676b31a1810120c221f -third_party/boringssl/src/fuzz/client_corpus/49f8150d2adae0d61882d66c5011f3fda5c671a4 third_party/boringssl/src/fuzz/client_corpus/4a0395c510e7351c0a7b648cfcb69908618997c3 third_party/boringssl/src/fuzz/client_corpus/4a0b3302b909b8867613400030e009764f07d182 third_party/boringssl/src/fuzz/client_corpus/4a5a57629518326b445139b7c3b73e115bbd58d6 third_party/boringssl/src/fuzz/client_corpus/4a9987a6d3d62520fd58697efbfc9a039a7a24e0 third_party/boringssl/src/fuzz/client_corpus/4ac923b2e4de2cc4abae15eaede2e19685df5e55 third_party/boringssl/src/fuzz/client_corpus/4aefe7a2088758e97b8d8d19ed5240e66e30a7b3 -third_party/boringssl/src/fuzz/client_corpus/4afad51cf6c91da5271b66799036dbfabbe42008 third_party/boringssl/src/fuzz/client_corpus/4b4a81578279494267573090e4b827af319abe75 third_party/boringssl/src/fuzz/client_corpus/4b4fddfae163e6a95a5e8d6702fec404953b9465 third_party/boringssl/src/fuzz/client_corpus/4b78d9ccf5e13c52413ae9421b6cb72de72a0973 third_party/boringssl/src/fuzz/client_corpus/4b87f72d48c96dca631d4fd7d6b6f69ce5cda0fb third_party/boringssl/src/fuzz/client_corpus/4ba056257e8006d097a38483193b25d9e7a41958 -third_party/boringssl/src/fuzz/client_corpus/4bd70766fff41c40a6015069d9727aa358e9a2d6 third_party/boringssl/src/fuzz/client_corpus/4c357f2fa3d5e9e26919f407a2aa260c83b66cd4 -third_party/boringssl/src/fuzz/client_corpus/4c3d86aca6cc838efca6730622c52f96129488f7 -third_party/boringssl/src/fuzz/client_corpus/4d970f123b6fea26710e39a64fcf4bbae114b3c6 third_party/boringssl/src/fuzz/client_corpus/4dfbc2d94941971dc9027bdab7d70ae3f8382c44 third_party/boringssl/src/fuzz/client_corpus/4e267bab0e4e40e7fa55d9265f37b95727da81bb third_party/boringssl/src/fuzz/client_corpus/4ead29700b9403f54ec0d1ed5eb1f1960abdf713 third_party/boringssl/src/fuzz/client_corpus/4eb1957d2397d99b34fe8d99439162e530f9c40a -third_party/boringssl/src/fuzz/client_corpus/4f8be74ba18e66a62a3bf72950ae57b07ba1322d third_party/boringssl/src/fuzz/client_corpus/5001c8b67b737509e782a4c716cdc44285af881b third_party/boringssl/src/fuzz/client_corpus/5050a45e71c0d153e03e946152d83186ac68c142 third_party/boringssl/src/fuzz/client_corpus/50bcf41fe889225c5b05b977442af7627343cc55 third_party/boringssl/src/fuzz/client_corpus/50d95c0f776e9964e04583e5abbd71a8c7d5b522 third_party/boringssl/src/fuzz/client_corpus/515dd77e466bb091e57ae84c94505af27c1da28a third_party/boringssl/src/fuzz/client_corpus/52815ef33fe06ce81d9880158900189ea0f7ef7c -third_party/boringssl/src/fuzz/client_corpus/5304e701b69b9ced38aabc0966d5ff7b1045e201 third_party/boringssl/src/fuzz/client_corpus/531a908f6bea4f9f2fd1c59ebdd98838bd6acb49 third_party/boringssl/src/fuzz/client_corpus/53b51a1c9ee6cf4a29296477716727af41ff7c66 third_party/boringssl/src/fuzz/client_corpus/53ec88cf2f8b1464f1f2a37202bd88a44cf21e1a third_party/boringssl/src/fuzz/client_corpus/5466cb86043e9b3a713bb939e5f433f6812745de third_party/boringssl/src/fuzz/client_corpus/54f709c5719142c49e5b85bdd96b93f4457868b7 -third_party/boringssl/src/fuzz/client_corpus/556529f12ae427dce4da14631d63c205a21634cb -third_party/boringssl/src/fuzz/client_corpus/5663bb0890dfcbe7f3dbd93a6b3a3e2a0905df50 third_party/boringssl/src/fuzz/client_corpus/566d4d4a345950b024c1a753eb40392598f072fd third_party/boringssl/src/fuzz/client_corpus/56a992ccd52d91e011b38b795d3cf7177c4119ac +third_party/boringssl/src/fuzz/client_corpus/56f1ff4cc748a77bcd62a588b373ca8060e7179d third_party/boringssl/src/fuzz/client_corpus/5726ce8b9d43aa799aafc4a9d5b13673a31b2568 -third_party/boringssl/src/fuzz/client_corpus/57716f72823fad8c21042ba9d89f01aa8601dba6 third_party/boringssl/src/fuzz/client_corpus/57be8966ffeaf6f0070ce16389c2a79446452b19 -third_party/boringssl/src/fuzz/client_corpus/581f18b9b210314bb1c3e0df7c0267a571f4cc8e -third_party/boringssl/src/fuzz/client_corpus/5825ccf66182e384195063d47f5f42e0d32cb3cc -third_party/boringssl/src/fuzz/client_corpus/590b0a4d5341d31fece7ca1323e54d7fdfcbbbf8 +third_party/boringssl/src/fuzz/client_corpus/58dd97b28e54273740747d111e016639845b3868 third_party/boringssl/src/fuzz/client_corpus/593381897639cf34eea2247e157d6d8916decbfd -third_party/boringssl/src/fuzz/client_corpus/5941f3d7347444a870f0275185faf98367058bfb third_party/boringssl/src/fuzz/client_corpus/598ac46782509a6bd5d8f5ec38c2a5e8bec422ed -third_party/boringssl/src/fuzz/client_corpus/5a138a7043d005422a149f2c8f80bce96aaad8be -third_party/boringssl/src/fuzz/client_corpus/5a5c45a19154f9ab75591741213940bcb8a236a2 third_party/boringssl/src/fuzz/client_corpus/5aafc8a70c74d1e5fb76e64bd7e82a257869f7a6 third_party/boringssl/src/fuzz/client_corpus/5b491bfff0d167328a72a4035d3e340930dadc8b -third_party/boringssl/src/fuzz/client_corpus/5ba18dda72c0db2c799bbabe46d7451b83606341 -third_party/boringssl/src/fuzz/client_corpus/5c08fa7f6bfe32f4fb24f70c6e9b079a77e9701f third_party/boringssl/src/fuzz/client_corpus/5c17c4704df42cc9b0bac7697ea2ec4e5b2d2984 third_party/boringssl/src/fuzz/client_corpus/5ca519ebade30a074c4c1c60973e1f1125c75d6b +third_party/boringssl/src/fuzz/client_corpus/5cc55c2a063263e4b8cc8c3d40c122e6dc44fb88 third_party/boringssl/src/fuzz/client_corpus/5d4b9bc11776e004e29083d4325042f359a8224f -third_party/boringssl/src/fuzz/client_corpus/5d68e739190e5f8eceed6fa26c5c24d454974b76 third_party/boringssl/src/fuzz/client_corpus/5ea244a01d2de1fcdc94dd73e532ecfc1e401659 third_party/boringssl/src/fuzz/client_corpus/5f493305c89ce45a985aaaacbd2860fc1070d3b2 third_party/boringssl/src/fuzz/client_corpus/5fa2a1c0cc6bb4d62ffb013ad3424191320c5d84 third_party/boringssl/src/fuzz/client_corpus/5fa5c3800a85fefc1d52276ff261324ea15df3de -third_party/boringssl/src/fuzz/client_corpus/5fd0187b98c70d71d62e4ddf052c68effc7a768a third_party/boringssl/src/fuzz/client_corpus/603845a11adb138e9f6501503076c62661d45796 -third_party/boringssl/src/fuzz/client_corpus/62a01ca61efd372762826dba962c3d0c542c4a58 +third_party/boringssl/src/fuzz/client_corpus/61789a036ff23d627ca712fbcda64741385223e8 +third_party/boringssl/src/fuzz/client_corpus/627f647e652bbfbddcd44d52ba55ffc8b441c57e third_party/boringssl/src/fuzz/client_corpus/63309504d4abf6af9449b85460ad302cbd510dc5 third_party/boringssl/src/fuzz/client_corpus/63b5c745b356b1ef7227540bdd2aea9ac6060938 third_party/boringssl/src/fuzz/client_corpus/63c50ad2fa6e63213107d9cae63f285b5fba4fd0 third_party/boringssl/src/fuzz/client_corpus/6525e66edf364a7c2cd75b3eeaa63b40fc2e4317 -third_party/boringssl/src/fuzz/client_corpus/6590b1625e6111230b0a3ad7cce9fe29592f8fb4 third_party/boringssl/src/fuzz/client_corpus/65af12103f712bc889b3efe1a8c6d34fad8c14fb third_party/boringssl/src/fuzz/client_corpus/66455fd09104a775ac6443124513124b268f7260 third_party/boringssl/src/fuzz/client_corpus/66551807ec3a4715a988bfa9fbf5647e02f021a0 -third_party/boringssl/src/fuzz/client_corpus/67ded94bf9bb3ce7aff7ba2948893188e15b07d5 -third_party/boringssl/src/fuzz/client_corpus/67e59117c04ff6d682d208540bbdec34bc89b848 -third_party/boringssl/src/fuzz/client_corpus/68f153c0973ca389f91ecfbe2d2cf4d6d2162b34 third_party/boringssl/src/fuzz/client_corpus/698d55279186283eb7183decb2bbeb8da6f45d86 -third_party/boringssl/src/fuzz/client_corpus/69b502f0d05c0d467f43313421ca8526d09f424d -third_party/boringssl/src/fuzz/client_corpus/69e18c0e864c899c2d55f6fbe10433ae15cc2ced third_party/boringssl/src/fuzz/client_corpus/69e6deba1250f6bf3e7e461634957ff167971037 third_party/boringssl/src/fuzz/client_corpus/6a0569c99c30b75f1d1cfc5d5a73190e377fa2d5 -third_party/boringssl/src/fuzz/client_corpus/6a5f7a3dd9170d96a59b201359b88102b9d7c1d0 third_party/boringssl/src/fuzz/client_corpus/6b0125c45fbf140c33bb54a29d6bbd1d7cd07bb7 third_party/boringssl/src/fuzz/client_corpus/6b556d1144e4fa33097aea9ecbd6630ae30729c9 -third_party/boringssl/src/fuzz/client_corpus/6bea3938af45483a8b945da5e8d2f60c4f5a5037 +third_party/boringssl/src/fuzz/client_corpus/6bf8fe861362722863f0d9d1c8a5b79bf3d3a79d +third_party/boringssl/src/fuzz/client_corpus/6cb75744557e90e0a698789e774e8cb8884c79d8 third_party/boringssl/src/fuzz/client_corpus/6d868c89c1e8737a7f87066322bb6e372858017e -third_party/boringssl/src/fuzz/client_corpus/6dbd2cbe121eeec24918e912f0d946f696f501db -third_party/boringssl/src/fuzz/client_corpus/6ee9c1296a36f0fc5cb125c37bc68906fc836bfe +third_party/boringssl/src/fuzz/client_corpus/6e853ad54f0ef2d0907eb78daadf070b811ebed9 +third_party/boringssl/src/fuzz/client_corpus/6eaaed5eee2df54eb20699a587c2b819ad914c36 third_party/boringssl/src/fuzz/client_corpus/6f0d9d91fb07d53d9ba14550059cb9a44d72c1de third_party/boringssl/src/fuzz/client_corpus/6fbfaf9bc7da158f0e4744b4a35b664810dc0be2 third_party/boringssl/src/fuzz/client_corpus/700f0a366c202b1ddf0abd8c0e270c989d4f5d9d third_party/boringssl/src/fuzz/client_corpus/7014edbd62a57bac82ee8067c09085eff86d8e29 -third_party/boringssl/src/fuzz/client_corpus/705270318e4d13b2254e8b8ff53cb6a56b8cb019 third_party/boringssl/src/fuzz/client_corpus/70c304a9f2130a9da1c953905e2a08c7ee92d8af third_party/boringssl/src/fuzz/client_corpus/713644535bf06e6a885e3acf6f0911e02b76736e -third_party/boringssl/src/fuzz/client_corpus/728f123a132ec0800a157e9be4224b93a32d1b55 +third_party/boringssl/src/fuzz/client_corpus/72128bb6e7a0bd4f16b51553a2636e2f943cbd14 third_party/boringssl/src/fuzz/client_corpus/72c4f60d5e4927d9b355ef72aada0bff5ea49fe5 third_party/boringssl/src/fuzz/client_corpus/72d1a8739d621c82db91f96c72c9901bb3d6e9ca third_party/boringssl/src/fuzz/client_corpus/72db38ec7e0b96489820750d33cfeca38868cc50 third_party/boringssl/src/fuzz/client_corpus/72fa1a28e1aac7b5bfa3e89fbd93cbe647ccea7c -third_party/boringssl/src/fuzz/client_corpus/72fd762324b055e05b3ef1405bdfffcd1b81be55 -third_party/boringssl/src/fuzz/client_corpus/735955f9e9f3b3695aab2a2efbb2e2b79dbf3175 third_party/boringssl/src/fuzz/client_corpus/737ede0e9b07905630674c3c3e68e5151373209a third_party/boringssl/src/fuzz/client_corpus/744445dbc417fc06a699594ce31b514cd5f13305 -third_party/boringssl/src/fuzz/client_corpus/7470716119f5ca3e8e97bd025c6a64aa57f66ef5 third_party/boringssl/src/fuzz/client_corpus/74b9d4687b680e8323b23002f7892686228f98ff -third_party/boringssl/src/fuzz/client_corpus/7511c88035b8be9d022a69aa4d4567ca7e0296c7 third_party/boringssl/src/fuzz/client_corpus/751c8ec11fddaeecad0c279453bcb78a1b5ca2cf third_party/boringssl/src/fuzz/client_corpus/753fe82b3f389f387b319580559bb65e1a9feb13 -third_party/boringssl/src/fuzz/client_corpus/757a8462b5d788b9cd37e7dc5f662a4219823d93 +third_party/boringssl/src/fuzz/client_corpus/757907074e544d3b641a888aa487123b7e07f755 third_party/boringssl/src/fuzz/client_corpus/75abd0da52e52c46a783e70dbfe2c142b568f3d7 -third_party/boringssl/src/fuzz/client_corpus/771cb15f857c0b88666cbffa75a1be2dfaa6aca9 third_party/boringssl/src/fuzz/client_corpus/773c2c70426f82aaa1ed22753f9a797db9dd81d4 third_party/boringssl/src/fuzz/client_corpus/7765b816e7a468c49f08fc9d5029545c082d1792 third_party/boringssl/src/fuzz/client_corpus/777c62e39bca66f2b5d5eb2f972816dd4220ba62 -third_party/boringssl/src/fuzz/client_corpus/778fbd10327798c462cd295dc65910a9f1a76fc2 third_party/boringssl/src/fuzz/client_corpus/779b18a1111b5076f0d38e886c829cb9b4a01ccf third_party/boringssl/src/fuzz/client_corpus/782e026f5744838a43685a90b44ecd89fe9ed59e -third_party/boringssl/src/fuzz/client_corpus/7883b90a700dee89498244237f722372f6546105 third_party/boringssl/src/fuzz/client_corpus/7888919c757d594d748f48c3fc4e38e45035c291 third_party/boringssl/src/fuzz/client_corpus/7909120e73ff69731956ab915c88a227ad84029e third_party/boringssl/src/fuzz/client_corpus/791988af86a2fd99c324275165fb41dce142779c third_party/boringssl/src/fuzz/client_corpus/79386db4b5be0fd646b09361b93119337e4630e8 third_party/boringssl/src/fuzz/client_corpus/7955e419198a4d6e51b52a53a244556cffa53d47 -third_party/boringssl/src/fuzz/client_corpus/796ba96b2309960f46bd859d36069318cf23e35d third_party/boringssl/src/fuzz/client_corpus/797d0603a7f0bac9e0c1b18340332ffb16eb80e9 third_party/boringssl/src/fuzz/client_corpus/7ae62bd24b71bffe9a36d6245d1a5179b3e8751b third_party/boringssl/src/fuzz/client_corpus/7b33b0f49e7cd12ce7f81a0e5ef775dd865564bd -third_party/boringssl/src/fuzz/client_corpus/7ba298722c8f14c2a7d2c7607ea07b1de6360db0 third_party/boringssl/src/fuzz/client_corpus/7be28ab4a7aca1bedf365684ec6cc96dcc25cf1e third_party/boringssl/src/fuzz/client_corpus/7c8f2e3444a11a582a125c820e61037b9bbd32f7 third_party/boringssl/src/fuzz/client_corpus/7cc3ef5d5543809c541e151119f5e8e1660809c6 third_party/boringssl/src/fuzz/client_corpus/7dae9ff8b8e0c96b271d938b42e77d97a63ccf24 third_party/boringssl/src/fuzz/client_corpus/7de98692de4691cc3dbbe8a533bcca10b1d787cb third_party/boringssl/src/fuzz/client_corpus/7e114fcdc32f577777bb6cf720fb74a01a72c9b3 +third_party/boringssl/src/fuzz/client_corpus/7e4a4bb64c79be3f0ac498c1a4edfd59f806a7e1 third_party/boringssl/src/fuzz/client_corpus/7e624f4bcc3c0932ab1fed213a9ae624bf939510 third_party/boringssl/src/fuzz/client_corpus/7e75aad4b419d40093327bb3d833547ad9774c91 third_party/boringssl/src/fuzz/client_corpus/7ea10a6e464f01d2d109239879a3015cda444099 -third_party/boringssl/src/fuzz/client_corpus/7ea4327304ca820251ff657630a4a2145a3f2ca8 third_party/boringssl/src/fuzz/client_corpus/7f5108127abe091dbf0878041923a83c470d9635 -third_party/boringssl/src/fuzz/client_corpus/7f8226d5ab0f996bd1b110c150caaa897e63bb43 third_party/boringssl/src/fuzz/client_corpus/7f94fe1d8d2e9fcbe8a689ea405d283e0dbdec53 -third_party/boringssl/src/fuzz/client_corpus/814d3aa24cd14cba5aeced1364d751db580f021a -third_party/boringssl/src/fuzz/client_corpus/81a21d3c5e9729fb1c1f7d2670450744628b1f23 -third_party/boringssl/src/fuzz/client_corpus/82075fcb16153155fdcc5343375d6a66de43cda1 third_party/boringssl/src/fuzz/client_corpus/82352e42f967e5b8756188078a8efc79ca626d02 +third_party/boringssl/src/fuzz/client_corpus/82383ce29eb3859692479c1430e40ec9c92a94cb third_party/boringssl/src/fuzz/client_corpus/82541e42df32c831849804371094eb9df0d058bf third_party/boringssl/src/fuzz/client_corpus/82fd11c12899b4a315bb6e9ea9c696e30e121aa6 third_party/boringssl/src/fuzz/client_corpus/830a44a776765c096368c08061081f74fb2fc3f4 -third_party/boringssl/src/fuzz/client_corpus/831990c84074f833d3543ac5a1b4e33bde76816c third_party/boringssl/src/fuzz/client_corpus/8323833dd4faa2ca179376fcf6c0f34aabf67e34 -third_party/boringssl/src/fuzz/client_corpus/8334b29c51ae5419cfdac23f10318593f4741644 +third_party/boringssl/src/fuzz/client_corpus/8341e0b7f320bf5b32c714d140f46416427a6349 third_party/boringssl/src/fuzz/client_corpus/83f968279035f9032b8eb3cb3d364ad131ab324e third_party/boringssl/src/fuzz/client_corpus/85abb3ad2be8579c86ff389b9ed8491a33d4c66b -third_party/boringssl/src/fuzz/client_corpus/85b6a59fc0663d5f7c0bee96f60a7024dc570fed third_party/boringssl/src/fuzz/client_corpus/85ef227e89b2a552fbb82bbd6026adfb4e22fabe -third_party/boringssl/src/fuzz/client_corpus/87a7140e2ecf21f83c5a8cb45b06376f4776eb8a third_party/boringssl/src/fuzz/client_corpus/87bb6aa5ac056350c9a7e56d847170202d7aab35 third_party/boringssl/src/fuzz/client_corpus/88bd64f2db59160481171829431147105f674505 -third_party/boringssl/src/fuzz/client_corpus/890001c1d75834bc96ae241f4f35975a7543ef02 third_party/boringssl/src/fuzz/client_corpus/89a62df92f2195df2fe77b45589633593286ee95 -third_party/boringssl/src/fuzz/client_corpus/89e28415fdb84e21e3911067478c04c76579b953 third_party/boringssl/src/fuzz/client_corpus/8af70613e43b65fcc301bcd9cc7d4ae1d2755e7e -third_party/boringssl/src/fuzz/client_corpus/8af99436bcf6c5e8aa84b58ce02a31d4b1d1aec0 third_party/boringssl/src/fuzz/client_corpus/8bd8970f86ff299a7f666086e120129ee123bf57 -third_party/boringssl/src/fuzz/client_corpus/8c045a3062f68122aa7073b9d94e27ceee60b9e1 third_party/boringssl/src/fuzz/client_corpus/8c2b924d6f6e272dfc88bbf362ef45eacdf8b916 third_party/boringssl/src/fuzz/client_corpus/8c38b90b62dbb2966aa80093c16563f05f9c6fec -third_party/boringssl/src/fuzz/client_corpus/8c6221612cbd05c4aa6c94c34d7fa7d1360c0dd0 third_party/boringssl/src/fuzz/client_corpus/8cb31f11872eb9338a9c8e2204ca45e4bd88fe9f -third_party/boringssl/src/fuzz/client_corpus/8cb86ea790fdac3957df23ab9b164e2b9f9e510d -third_party/boringssl/src/fuzz/client_corpus/8dac3d882423a9aa9150d552d82f04a7db68ab68 -third_party/boringssl/src/fuzz/client_corpus/8dc70fc1b7d4618855a523d4148f6226cdf7cb9b -third_party/boringssl/src/fuzz/client_corpus/8de0c079be9fd4b1dc99ac12329c2cc8515010f7 third_party/boringssl/src/fuzz/client_corpus/8e5c353c81f1f26031d4e60258f77e3812017ac9 -third_party/boringssl/src/fuzz/client_corpus/8e63c390576c2fe0f27161100d6c333e4ee10e57 -third_party/boringssl/src/fuzz/client_corpus/8ed05d5b24e887e871ac1ab4f8067da646906803 third_party/boringssl/src/fuzz/client_corpus/8ef7ca659777ebd6dcf089d08ec25be59d91bc2c -third_party/boringssl/src/fuzz/client_corpus/8efcd21e03921b9422b17c05879af49894539cb6 third_party/boringssl/src/fuzz/client_corpus/8f525c06e595eb50e55519a02459e81bd8d8138c third_party/boringssl/src/fuzz/client_corpus/9030584991c1a254b578429a7f92730c8b1dced2 third_party/boringssl/src/fuzz/client_corpus/903a43e6cec506c4a5d86e1e5d92da4157cfaecb third_party/boringssl/src/fuzz/client_corpus/9073f9373f32a3443194c6e8d1e2d464e02e493f -third_party/boringssl/src/fuzz/client_corpus/9164227dbd500772ec8e297bea98a6fe0285b628 -third_party/boringssl/src/fuzz/client_corpus/91f7e5629ac2a700d762ab1bf829c0647113a895 +third_party/boringssl/src/fuzz/client_corpus/90c8b69792c8c9f73327c9338c342337fba7b2e6 +third_party/boringssl/src/fuzz/client_corpus/91b5edf23edf3062c9a3fe2b113be183a05e1d89 +third_party/boringssl/src/fuzz/client_corpus/920345afe5acc4364544483da9ac5a6682bfb1bf third_party/boringssl/src/fuzz/client_corpus/924b8b5719ff40cefb09db42ba5f416802eaa81c third_party/boringssl/src/fuzz/client_corpus/92efff2c122ccd72524396578bf4e08bc2a649dc third_party/boringssl/src/fuzz/client_corpus/9314a50d4e95e174daf91c1ab57b6d006a1fd2f7 third_party/boringssl/src/fuzz/client_corpus/933435eb1ee083e0261bfe133b225aa46ac11e1d third_party/boringssl/src/fuzz/client_corpus/93a991961b4613cf23d85fd184f4db690ad49445 -third_party/boringssl/src/fuzz/client_corpus/943238af2480078f3cc834c12239c4733f4f7891 third_party/boringssl/src/fuzz/client_corpus/94dee8f21f9f63676d7292538971144bb84043da -third_party/boringssl/src/fuzz/client_corpus/94faa1b6cad89767b1c67a4fa5501afb7b4bfce2 third_party/boringssl/src/fuzz/client_corpus/950240fcd88a2f4bbf8eaa8773c8512e191d5929 third_party/boringssl/src/fuzz/client_corpus/95496de66dbdfed84f8e14d24a6f7aa9ef075de7 third_party/boringssl/src/fuzz/client_corpus/9562f7d50d338ed79f071531143447cf03f30a6a third_party/boringssl/src/fuzz/client_corpus/95ac138deec7bcede966af89007e21406e10c1f0 third_party/boringssl/src/fuzz/client_corpus/95c251231914c9b41dc5d196ad13fc98aad8ca79 -third_party/boringssl/src/fuzz/client_corpus/95c7a7e129ffb78dbb842a182e4a328e061bdf5d +third_party/boringssl/src/fuzz/client_corpus/9638788d1d430bfcebee33c2621c8698e03e8d39 third_party/boringssl/src/fuzz/client_corpus/965261ea2fb6959c33a9d00aa4854eb50cbc6934 -third_party/boringssl/src/fuzz/client_corpus/96a56813952a9fb3dfdabd2ce8f4ed2d83a1b3c6 +third_party/boringssl/src/fuzz/client_corpus/975c40a741d970ab70fdd055988167726dc87131 third_party/boringssl/src/fuzz/client_corpus/9939194d8042e17552ffd55536ec73a40a81a342 third_party/boringssl/src/fuzz/client_corpus/998602e0a3e094639286be5954dbf572db9d2599 third_party/boringssl/src/fuzz/client_corpus/99c2022ecce46fd66738a7620cf77f00100c94f5 -third_party/boringssl/src/fuzz/client_corpus/9a26f4b5ae110dddb324990b4bac595b83651074 third_party/boringssl/src/fuzz/client_corpus/9a3e583c686b703985312b4e7b5363976c059ee4 third_party/boringssl/src/fuzz/client_corpus/9ab020005067f1e698c8bb552cc1f4f027382b0a third_party/boringssl/src/fuzz/client_corpus/9ab91d7f2ae6cf5040f700ee1f7ff6df90e80892 @@ -3712,54 +3693,45 @@ third_party/boringssl/src/fuzz/client_corpus/9b5c217dcb4ae41c124be8d5dc971d4b811 third_party/boringssl/src/fuzz/client_corpus/9b64a53df6dd82587a66beec901be81727c24b05 third_party/boringssl/src/fuzz/client_corpus/9c09ab4e51ba96b5d5f09f10900b8e81c50afc19 third_party/boringssl/src/fuzz/client_corpus/9cbba0db5514abb7d8dd614e6146c823b9d7bc17 -third_party/boringssl/src/fuzz/client_corpus/9db5a74fb95288734b767d554c6d45a291833441 third_party/boringssl/src/fuzz/client_corpus/9dba8b578e0c6b9c0e75de38bfd622c345eed0e2 third_party/boringssl/src/fuzz/client_corpus/9ddcb5a2ca9e5144f676c9de1897ff0a403b54cb third_party/boringssl/src/fuzz/client_corpus/9e4c611855fead2d56448cd284d3931d7f3baafc third_party/boringssl/src/fuzz/client_corpus/9e50b7bbecd7af256d55358ea8ccb0a8f399d5ff -third_party/boringssl/src/fuzz/client_corpus/9e5ea6cae1e13c8b948bacec6e886099edc66ce8 third_party/boringssl/src/fuzz/client_corpus/9fcd86e338ebf63927e734e1ae9ba41024a3e5ac -third_party/boringssl/src/fuzz/client_corpus/a0c16f6ef643938f6f94c8cd8f8d200ef3772fb0 third_party/boringssl/src/fuzz/client_corpus/a14a8862c08a81a300e1197c1f25fd79e61905f6 third_party/boringssl/src/fuzz/client_corpus/a153423cef6c97fc93d3bffc0ab9228ceecfffce -third_party/boringssl/src/fuzz/client_corpus/a19db1ce2a311ec7c63c8954da69e73fc7429ffc +third_party/boringssl/src/fuzz/client_corpus/a1eb5db2d450c5d0959147cff41975bd08156655 third_party/boringssl/src/fuzz/client_corpus/a22a724a5a5e5869cc869e72caf197e247ef7936 third_party/boringssl/src/fuzz/client_corpus/a246c1340b42d887fd2f5626ab9d6a6468de57e2 third_party/boringssl/src/fuzz/client_corpus/a36c75741c2a634a8e15e4a79f7d530f0857461d third_party/boringssl/src/fuzz/client_corpus/a3df6ea0a91e2599cb4b5d3111ec31407b6e321d third_party/boringssl/src/fuzz/client_corpus/a4018b58f498e8d82e5ef133ffb6041ca3263d12 -third_party/boringssl/src/fuzz/client_corpus/a4e3bd4c243d55501410aa59b9816dffc4fc2bf3 +third_party/boringssl/src/fuzz/client_corpus/a487c1685f43c6018f07517b479fafd737afdb74 third_party/boringssl/src/fuzz/client_corpus/a5365aa3fd54b10db6af724a57a5ae5aef1f1255 -third_party/boringssl/src/fuzz/client_corpus/a63b5061fe0bd3e8e95b776f8157fcdf5b4ede03 -third_party/boringssl/src/fuzz/client_corpus/a66b6fbe30d059b8bb0821808293b3c129aa1301 third_party/boringssl/src/fuzz/client_corpus/a71afc2e39779254a6de6990ba4fb0d3b5f4f236 -third_party/boringssl/src/fuzz/client_corpus/a7b3e8109a70b79509bcf9e17a07f3076e599f1e +third_party/boringssl/src/fuzz/client_corpus/a830842dbc465c8e3037c3618d059ea5d190da5a third_party/boringssl/src/fuzz/client_corpus/a868ec8f5ce2fb0e388aa57e9441f9ba9c1b2c73 third_party/boringssl/src/fuzz/client_corpus/a9a2c80155d312fe4bc1e0f29af1896275002c75 -third_party/boringssl/src/fuzz/client_corpus/a9c05362f2203728c7f87e3a72421e520ad6e227 third_party/boringssl/src/fuzz/client_corpus/aa35b60cdea0e6fca8d704df9c9255732c4891e5 third_party/boringssl/src/fuzz/client_corpus/aa42f1d9302651c1d42487c5f0ed597f9cac7f00 third_party/boringssl/src/fuzz/client_corpus/aa519d2e0a8ae83733136753a7cc278e48d9430e third_party/boringssl/src/fuzz/client_corpus/aa7344d8a6d3170f5cca3321b31d3c7808e33a53 third_party/boringssl/src/fuzz/client_corpus/ab7c806b04ee6433e7c6bfe11bc37aad059b69dc +third_party/boringssl/src/fuzz/client_corpus/ac2be4918f3aa61d90401b4ca2cef5fdb6a1ab53 third_party/boringssl/src/fuzz/client_corpus/acc72251511b572bdc239d70e977eaf9d7938730 third_party/boringssl/src/fuzz/client_corpus/ad607e0e365c85eac8625760b0fcf9d66541e700 third_party/boringssl/src/fuzz/client_corpus/ada30d921250223ae4690f501377e2c9d600dee8 +third_party/boringssl/src/fuzz/client_corpus/ae129fd5006c4fdf9df2f6f2b5702f39d3781c9a third_party/boringssl/src/fuzz/client_corpus/aebd243480afd12ae20bf93033cf62fd099e3918 third_party/boringssl/src/fuzz/client_corpus/af1fe897b0d0fce9859004756c1cd18dfef7fa1a third_party/boringssl/src/fuzz/client_corpus/b00f6b1fc712ffc63610269cc5cc100e8f147a40 third_party/boringssl/src/fuzz/client_corpus/b074bbfb940d18612f09471e9374a733c2cfa9a1 third_party/boringssl/src/fuzz/client_corpus/b0a36c2cb1349bb23d71db38f824e5e4aab8bf91 -third_party/boringssl/src/fuzz/client_corpus/b0e801525a35d01ba083e3972b0ad28df1c5d800 third_party/boringssl/src/fuzz/client_corpus/b0f7bd95554303e3beb9f7b1412992145765be9a third_party/boringssl/src/fuzz/client_corpus/b2184fe9cd98bd60fcac94862dc54dfacdb093c2 -third_party/boringssl/src/fuzz/client_corpus/b24240827e440dfaf3ec3f82a25e6ab6c40a542a -third_party/boringssl/src/fuzz/client_corpus/b24f9f75ae3df4fd42fa986b5e714e5a93834d83 third_party/boringssl/src/fuzz/client_corpus/b2d6d46afa8295605881bc788f59cdc3c98c2596 -third_party/boringssl/src/fuzz/client_corpus/b32ce5c58b3daad034cedea926d7f72b0d041c80 third_party/boringssl/src/fuzz/client_corpus/b41609c1bad70a169bdc7dc6551b48223feedcc9 third_party/boringssl/src/fuzz/client_corpus/b4165aa9809dc17e6e2d25ff1cbde7f11ff6c049 -third_party/boringssl/src/fuzz/client_corpus/b468b693ab8c9929bbc05150983d5a23e6a9b4d1 third_party/boringssl/src/fuzz/client_corpus/b57b255bc26d2960a6c185cc9043a60062942d49 third_party/boringssl/src/fuzz/client_corpus/b60798f1dd83d26e3c06880a93aef04ac3dd6ef3 third_party/boringssl/src/fuzz/client_corpus/b63e2445b24a6804c5618e631b4dcd750e38ccdd @@ -3768,211 +3740,138 @@ third_party/boringssl/src/fuzz/client_corpus/b735ebb521c006604780dd972fcf69b8abd third_party/boringssl/src/fuzz/client_corpus/b78d0ca0332ad3274ae5f04697aa388badd7d504 third_party/boringssl/src/fuzz/client_corpus/b7a7abe63d79e964819a8678990cd26233c4a85d third_party/boringssl/src/fuzz/client_corpus/b7bd91d688520eac4e86f58c82a7329a732b16fb -third_party/boringssl/src/fuzz/client_corpus/b803d5f470786c6adedd9796e777b0c0d3194eae third_party/boringssl/src/fuzz/client_corpus/b80c803d309101f4cc89bce92e3e33fb5357148a -third_party/boringssl/src/fuzz/client_corpus/b857a7634ccf44b592439a0dd6985b6678a8968a -third_party/boringssl/src/fuzz/client_corpus/b8dd9c42a6012d2682c1ff6595833bed1e231727 +third_party/boringssl/src/fuzz/client_corpus/b83f3c86b68985c7e72f1aa528c354f3863b09bd third_party/boringssl/src/fuzz/client_corpus/b96d64b983fe54573b993c5ce1b4a523a1b14f00 third_party/boringssl/src/fuzz/client_corpus/b97a82a073c00ecb45eaaa02fe30fd467908d12d -third_party/boringssl/src/fuzz/client_corpus/ba838bd5b0ff00c38e9d707f596af75fb76baf02 third_party/boringssl/src/fuzz/client_corpus/ba86c336ff68fe730760c55c2139cdc16070265a third_party/boringssl/src/fuzz/client_corpus/ba91498cc3e51a7cdb24ef012aee1c7491f494c4 third_party/boringssl/src/fuzz/client_corpus/baa04654605d4327f87363e8bbad16abaebedb30 third_party/boringssl/src/fuzz/client_corpus/bb7894f1583f71e1d1739bd897891723454ec6da -third_party/boringssl/src/fuzz/client_corpus/bbb2dea21a16a04e638a6b50ba1929fd3c36cde3 -third_party/boringssl/src/fuzz/client_corpus/bbd9f203a8361993121fd41398337c3d1eeb923a third_party/boringssl/src/fuzz/client_corpus/bc19949a4f9d9309a48ec184fb6c59002f42e86c -third_party/boringssl/src/fuzz/client_corpus/bc1e0525d6d1d9d3854ea6c650e11003f94efea9 -third_party/boringssl/src/fuzz/client_corpus/bc6cf715c66c692cb3afa7b591161888e7d0184a third_party/boringssl/src/fuzz/client_corpus/bcdf21fa08f5feefc2ad8d67c54a6765323d4526 -third_party/boringssl/src/fuzz/client_corpus/bdab0bc0ac54d89c32e4d3cef4164c55a5364fb4 -third_party/boringssl/src/fuzz/client_corpus/be86c816be7d0bfa27d75b85e6e02ff07afaed3a -third_party/boringssl/src/fuzz/client_corpus/bf3771d1d4d93a3a90d856394fed894cc9caef20 third_party/boringssl/src/fuzz/client_corpus/bfab7ca819784b56c5b5bea117f676f4f477a575 -third_party/boringssl/src/fuzz/client_corpus/bff54b5f23887cb8fa619ee32ceef26bda73afa9 -third_party/boringssl/src/fuzz/client_corpus/c041579839962198009c1df66de5d1cfd27d8c04 -third_party/boringssl/src/fuzz/client_corpus/c0a16b94e0d896ff0a425b2989a6dd7d1adf9cc9 +third_party/boringssl/src/fuzz/client_corpus/c0a35d998fd4b993e28f49ed8f8fd26537f61931 third_party/boringssl/src/fuzz/client_corpus/c0a51d3e265eb49369027b42f75d0a3afd05bae9 -third_party/boringssl/src/fuzz/client_corpus/c0eb2ed71a555d107bbe8c4b37b3dd339dcea045 third_party/boringssl/src/fuzz/client_corpus/c173db0e63f3190b7f6dfb56d66d3790fad91fc4 +third_party/boringssl/src/fuzz/client_corpus/c1968d828afabf12a1e9c85663a1622d0d27f2c1 third_party/boringssl/src/fuzz/client_corpus/c1ae95d46e8ca34f399a64f0d1b4bfd3cf063bef -third_party/boringssl/src/fuzz/client_corpus/c2103f5ff54d3c9db7d4a2a6f10a6bf0028a65b4 third_party/boringssl/src/fuzz/client_corpus/c22d696654e0e13d63b56b1128ee68c29e09be56 third_party/boringssl/src/fuzz/client_corpus/c2aec7681b77106ef0b29526782efa319b796110 third_party/boringssl/src/fuzz/client_corpus/c3412e715cac1d93863561dd1952adbaca3e66ca third_party/boringssl/src/fuzz/client_corpus/c4039256aaf3e26007f3891797ddea125bdca754 third_party/boringssl/src/fuzz/client_corpus/c4478798e12f21be6c984475508bb90acacb9d37 third_party/boringssl/src/fuzz/client_corpus/c51860180e57b690dfb0ead0ab75c107e195bda9 -third_party/boringssl/src/fuzz/client_corpus/c5a9e9fb45d410a492456ad65835821be1cf89d1 third_party/boringssl/src/fuzz/client_corpus/c5e777dc898a71950ecb1701f909b88543ee2074 third_party/boringssl/src/fuzz/client_corpus/c6c083fe2ce06d449343d54b9f0d083b1822e3d0 third_party/boringssl/src/fuzz/client_corpus/c6d77ee4f07249d041d66e4e60d02d5431b25c52 third_party/boringssl/src/fuzz/client_corpus/c778e849c730a16573a584f3030b1e61737ae584 -third_party/boringssl/src/fuzz/client_corpus/c7e12f42c420f4db7031aec13b292a80327c01bb -third_party/boringssl/src/fuzz/client_corpus/c8b180beee8e7854063d4746d161ff117edc5f2f third_party/boringssl/src/fuzz/client_corpus/c8b487285f1054a84f0a54d33b43404d32283bd1 third_party/boringssl/src/fuzz/client_corpus/c911cf0506fe502f5ad1218e46df98470d848a7d third_party/boringssl/src/fuzz/client_corpus/c92c4f274b565905321738eb5eeb0f0c44720c65 third_party/boringssl/src/fuzz/client_corpus/c9784107f0415460555380b32d4e29d4cc47a8f6 -third_party/boringssl/src/fuzz/client_corpus/c9ba6f993a9b60cadfe2233c2168b31bc52be9d7 third_party/boringssl/src/fuzz/client_corpus/ca2ed4c4f6f6fd8ac15b8e778686d9bfe181c5fb third_party/boringssl/src/fuzz/client_corpus/caec6f9cf88f2c1a864f01acf9b5c8e1ed0107e0 third_party/boringssl/src/fuzz/client_corpus/cb8c22cd8252df9e5d2458068009978db5fec6d4 -third_party/boringssl/src/fuzz/client_corpus/cbbecb7966ebc3b1c75318bbcc3a6b987078af31 third_party/boringssl/src/fuzz/client_corpus/cc8d58451ea229642e78bad1081a8cbd2e8ba758 third_party/boringssl/src/fuzz/client_corpus/cccda73c2270a1f7b1745767581b01bbb1244367 -third_party/boringssl/src/fuzz/client_corpus/cd192229390eaa7c633521d4939873d95311c318 third_party/boringssl/src/fuzz/client_corpus/cd571b007c73933077ea4a8c7aeb84d543434b0a -third_party/boringssl/src/fuzz/client_corpus/ce070348a876a7b7fe3fafa074c2c0b1102b0a3e third_party/boringssl/src/fuzz/client_corpus/ce140c839b75c2aca49dc513cf84a2d65079ff1c third_party/boringssl/src/fuzz/client_corpus/ce6dfd5af0466e85e961bfeb1d3e4e09f0e4eed0 third_party/boringssl/src/fuzz/client_corpus/ce9a920e934c5bc155e004ef1172073eeae30831 third_party/boringssl/src/fuzz/client_corpus/ceaecaf2c790b485a4e5a31564ffd9ca5773e29c third_party/boringssl/src/fuzz/client_corpus/cec3c5c57065a85c43d1735159d917aa5221c64c third_party/boringssl/src/fuzz/client_corpus/cecbe4c358574a5582593bd7767fe74f16686b25 -third_party/boringssl/src/fuzz/client_corpus/cf73a5c88785631fdbfa5041060682d2c5a3fafc third_party/boringssl/src/fuzz/client_corpus/d00aa2159e5afc7d242ed649a05d5828e9679ae4 third_party/boringssl/src/fuzz/client_corpus/d09a9de612f6d2fe4ee32b52c7d5f7d3b0017eb1 -third_party/boringssl/src/fuzz/client_corpus/d0b2509cce02c973ac83952be6b7df1c9c2fa174 third_party/boringssl/src/fuzz/client_corpus/d0ddeba6e41127c75501ecd6c535db1497099649 -third_party/boringssl/src/fuzz/client_corpus/d301b60ac37229e6fd277904e897d79741c10651 third_party/boringssl/src/fuzz/client_corpus/d4c72481c230f50a7d9be856d3f4e3453724f58a third_party/boringssl/src/fuzz/client_corpus/d598c9e588535db13f919b3e0b4f9d00b12395ea -third_party/boringssl/src/fuzz/client_corpus/d5d86464969415814f5e7a00ab63391bf17610f3 third_party/boringssl/src/fuzz/client_corpus/d611b2ab5713e5eee4e95ea674c80be461819529 +third_party/boringssl/src/fuzz/client_corpus/d63a680528abb85c99dded5acf4fabd5329379ea third_party/boringssl/src/fuzz/client_corpus/d75c006b6a3257821d36dd60fefd414311eae123 third_party/boringssl/src/fuzz/client_corpus/d8ff93f2b82aaf768e9bfdac5d294b08d03f1266 third_party/boringssl/src/fuzz/client_corpus/d91cc66b655e8403b5ed7fa882fb56fb816a5488 -third_party/boringssl/src/fuzz/client_corpus/d95e8c02e3e556a5252b91b4d2341d8b1670bb33 -third_party/boringssl/src/fuzz/client_corpus/d99b37f1485e90ed59c21a602806f794b2e33d81 +third_party/boringssl/src/fuzz/client_corpus/d9db0962d9ac205095e605bcc554e977ee2d1a2e third_party/boringssl/src/fuzz/client_corpus/da1e75ef829bf87b86edf01cdbd8fe93061e29b8 third_party/boringssl/src/fuzz/client_corpus/daa279a3a46d0282b588e5c59982835def06ec42 third_party/boringssl/src/fuzz/client_corpus/dab267004c836d2e390cd407a2542e9761317692 +third_party/boringssl/src/fuzz/client_corpus/dae17fa7384f64288bd57a079d90c7daa72defd8 +third_party/boringssl/src/fuzz/client_corpus/db40f34b5cb2e5ff56aed2d3963533c74a16d567 third_party/boringssl/src/fuzz/client_corpus/db4c1a4b6dafc2cbbf594791afbff215f172a709 third_party/boringssl/src/fuzz/client_corpus/db6253a552c9b15d05c75abd422b002def6179f7 -third_party/boringssl/src/fuzz/client_corpus/db72de4e55cd847036b76e9a4fc19c14a0cd2530 third_party/boringssl/src/fuzz/client_corpus/db7b39a7a057f604ccb5874a56c47a6e1872758b third_party/boringssl/src/fuzz/client_corpus/dbcab74e0cfc5aec4bd0ae0948c18bb54b94d912 -third_party/boringssl/src/fuzz/client_corpus/dc6223c71bec695eb1ae50a35eef1256b2061451 -third_party/boringssl/src/fuzz/client_corpus/de7efd72ec394a206cd39115a0e903614c8f0919 third_party/boringssl/src/fuzz/client_corpus/de88260dd1da5b89a3f0b0f44a4d569f30ccb360 -third_party/boringssl/src/fuzz/client_corpus/df2d5dd967db7cb76778f833935b28aa0c7eba74 third_party/boringssl/src/fuzz/client_corpus/dfe5e8862697cfac7fca54f1c272a05adbb59673 third_party/boringssl/src/fuzz/client_corpus/e02330b2655e1af9d3279e407a50890b770ca3c1 -third_party/boringssl/src/fuzz/client_corpus/e0b2ab4ac896d42551a8ffe5c49740ae775278d3 -third_party/boringssl/src/fuzz/client_corpus/e0bf8c16b44c9086fb16b8c47c6745b8cf3c29ca -third_party/boringssl/src/fuzz/client_corpus/e0d2daafb027da947ab7b4b473aa29b174edf833 -third_party/boringssl/src/fuzz/client_corpus/e125d21c5ad0dfc78e011b8e281a0b8a74abb33c +third_party/boringssl/src/fuzz/client_corpus/e0af9354b9f69386fe4a3c62f98502bfcdb643d4 third_party/boringssl/src/fuzz/client_corpus/e1538ffef6a4fa4f7f3387b175cd06095244dce5 -third_party/boringssl/src/fuzz/client_corpus/e1564dcd1775d54d48ace7ea66bd4ac9b3127d4e third_party/boringssl/src/fuzz/client_corpus/e1e12194e3911f302b3ae134bc55582913dc8613 third_party/boringssl/src/fuzz/client_corpus/e28ecd51ebedd2dd20d6da5b786f56e40aed7cb5 -third_party/boringssl/src/fuzz/client_corpus/e2f124a571318c8c61785f636cafccab20d6961e third_party/boringssl/src/fuzz/client_corpus/e35b35150652f135401bb2cffeca233eb398f93d third_party/boringssl/src/fuzz/client_corpus/e38ef2823e48f897ed118c510c643766fcf1768c -third_party/boringssl/src/fuzz/client_corpus/e4809b072f22767fea98b4640752d023be9daf5b -third_party/boringssl/src/fuzz/client_corpus/e5063eb842b404633a4ac4f36577892f7a829fe8 -third_party/boringssl/src/fuzz/client_corpus/e5125b7c36a451f3349dedcd6f67ee9dab2c5aef third_party/boringssl/src/fuzz/client_corpus/e537385c5ce56749bdc608bbcd4a5b29cabf1f70 +third_party/boringssl/src/fuzz/client_corpus/e547b1b6d6e366f5a0e959ef08e68f1afc881e1e third_party/boringssl/src/fuzz/client_corpus/e5986c31ee75c48f54ebbdcb4e1001fde788acba third_party/boringssl/src/fuzz/client_corpus/e5b7e63e8c6d6e1c704f4f2cd368fcb1bbc5c7b5 +third_party/boringssl/src/fuzz/client_corpus/e697293d9441bb670b5fbf5ae4429ab80d55a8d4 third_party/boringssl/src/fuzz/client_corpus/e7907612baf7af477320d805b50df07fc772d53c third_party/boringssl/src/fuzz/client_corpus/e7a18b1cdb788e95fbbf07d87ecaa78a524f3f75 third_party/boringssl/src/fuzz/client_corpus/e7b1848c9a71c824e1fed8e7398b2672a3290b27 -third_party/boringssl/src/fuzz/client_corpus/e845ef13a3c97d79898e135f48797228b7738034 -third_party/boringssl/src/fuzz/client_corpus/e84df15838007ce3101174202d2d0f2ee8a70540 -third_party/boringssl/src/fuzz/client_corpus/e885661bccdc658e652d468541b5ed4020cf0b6c -third_party/boringssl/src/fuzz/client_corpus/e8bc4c1ba57a9a7f9dc8c2df119a1a80eadbd834 -third_party/boringssl/src/fuzz/client_corpus/e8ce02b686cfbf6df94607d22f0a8c56df6cf9ac -third_party/boringssl/src/fuzz/client_corpus/e938e10a8b1b38539c1d7b80eff9f99133f3a12e -third_party/boringssl/src/fuzz/client_corpus/e9c862d2fd67a158a9769714711efa9bf8bb604c third_party/boringssl/src/fuzz/client_corpus/e9e2eae1791c0258ad0450110d99cc7bfe49adf1 third_party/boringssl/src/fuzz/client_corpus/ea45c9c97fbffcdf2c793db30e14ce7a1904bfd5 third_party/boringssl/src/fuzz/client_corpus/ea8d9f30a779b74c5cfa2b7846d4471a0cb1e442 third_party/boringssl/src/fuzz/client_corpus/eb70b20ca69e1900aac28802c8656f204e39df72 third_party/boringssl/src/fuzz/client_corpus/ec2eb34ed6da144585d66820b121cd22ec7edaeb third_party/boringssl/src/fuzz/client_corpus/ec52fdf44df5cb311dba136892b3bbce77a62627 -third_party/boringssl/src/fuzz/client_corpus/ec9db99734f4c6b393173e497215699bc1f06503 third_party/boringssl/src/fuzz/client_corpus/ed1f142caf3bdda7f269344d4f35d7a28c94ea47 third_party/boringssl/src/fuzz/client_corpus/ed9329a7f470b8172133a025d694e940e570b5ab -third_party/boringssl/src/fuzz/client_corpus/ee7f985a285dc3503c2d57bfeb031ca2cd0f8a00 third_party/boringssl/src/fuzz/client_corpus/eeb876cb6cdeec8998afa3da7cae6c0bcc6e8207 -third_party/boringssl/src/fuzz/client_corpus/ef865d7e4f6786af7258c3e9c0aea3f2e53ce3c1 -third_party/boringssl/src/fuzz/client_corpus/efbc17a60b1654faf1227bf90920115d16034ccb -third_party/boringssl/src/fuzz/client_corpus/eff3155bc6d357c2897eff20cb8768b2c50fda1e +third_party/boringssl/src/fuzz/client_corpus/eedcf0f4cc2146b6b1845d451b1c0fd343b166fa third_party/boringssl/src/fuzz/client_corpus/f0065bd261954ee93eae49517a624e3496b498ee -third_party/boringssl/src/fuzz/client_corpus/f052704036404ef7a62dd2d02b0950940b4fe742 third_party/boringssl/src/fuzz/client_corpus/f08b4679f2d5201da635830df6983522222528eb -third_party/boringssl/src/fuzz/client_corpus/f12b857d0e2fd11038255147135dbf9e5f1093f8 -third_party/boringssl/src/fuzz/client_corpus/f13003f930c5c9efc9cc150a4a395c2c04c7daf5 -third_party/boringssl/src/fuzz/client_corpus/f2296edfa03d685986ded5431cf5631988dfe2f5 -third_party/boringssl/src/fuzz/client_corpus/f320ae98fef7d66f801e39baf2d76465f2cf4989 third_party/boringssl/src/fuzz/client_corpus/f344621b9d55f44969dbeac5997f7f9683d2ed5e third_party/boringssl/src/fuzz/client_corpus/f37496d899bdc8d284d4fdc679811c0810bdee80 -third_party/boringssl/src/fuzz/client_corpus/f3850798fb4f0f0f2bc3dc15a59c48322ff074f7 third_party/boringssl/src/fuzz/client_corpus/f3a3a1c2c165c4dd4795166e62cbe57e19a2d63b -third_party/boringssl/src/fuzz/client_corpus/f4c3047373530953edd198bb94f00b2022635558 -third_party/boringssl/src/fuzz/client_corpus/f5331e42e7f27f9fc94cc2980bfbdfb5a030409f -third_party/boringssl/src/fuzz/client_corpus/f564e2f85f36978c8e3208382503a1aacefb4bc2 -third_party/boringssl/src/fuzz/client_corpus/f5b54b9772ce3396787a2336dd4fe6de9aca43d7 -third_party/boringssl/src/fuzz/client_corpus/f60a42b37ec400f57f71889484ba5854f3de04c7 third_party/boringssl/src/fuzz/client_corpus/f63efe1383053a5bb4a46012818938a16226b4d2 -third_party/boringssl/src/fuzz/client_corpus/f63f66e1053edd96171253d2e3268651ee280e67 third_party/boringssl/src/fuzz/client_corpus/f651ac6b5cc69fa474c29cff2c1996da2046373b third_party/boringssl/src/fuzz/client_corpus/f6875bdfff87523a3b37b9c5273aa2ec1dc2c2c3 -third_party/boringssl/src/fuzz/client_corpus/f6d05be1615ec6305250f53fd8c0d95411187bbd +third_party/boringssl/src/fuzz/client_corpus/f6edba54dd1cd3162424bdf164420e45904c8342 third_party/boringssl/src/fuzz/client_corpus/f70542841855744e718c75436fac40fe6001e19d -third_party/boringssl/src/fuzz/client_corpus/f720d3fcfdbf8d057c5c7b636c83a2d85263799f third_party/boringssl/src/fuzz/client_corpus/f79e38fffbf711fc3c85920e3e1c34586ab3cd44 -third_party/boringssl/src/fuzz/client_corpus/f84d8972c8154e3436c5e4c12920f917ed2db906 -third_party/boringssl/src/fuzz/client_corpus/f87c34b937b7d6d64f799ed7116afe0badf7d65e third_party/boringssl/src/fuzz/client_corpus/f889d65fc9a7b4b75f085b61a240cb7c10940dd3 third_party/boringssl/src/fuzz/client_corpus/f8b6088f8c34f2847c78ecf0e70a71b41c7193a8 third_party/boringssl/src/fuzz/client_corpus/f8be00b1c3922da992fe91fab1ef328d4613929c third_party/boringssl/src/fuzz/client_corpus/f8d1f2e014ef92a74eddd2fc8f96bfb7ef19921e -third_party/boringssl/src/fuzz/client_corpus/f9a1644d67fcf57692a231471cfe3be577410638 third_party/boringssl/src/fuzz/client_corpus/f9b80eecce34e597d452ad03a511a7487403c739 third_party/boringssl/src/fuzz/client_corpus/faf0d57fb654343d1cedc170f0e65afc67ae0888 -third_party/boringssl/src/fuzz/client_corpus/fb969157e224ddc4880e09cd078f563b7e966075 third_party/boringssl/src/fuzz/client_corpus/fba3e36ff9038e8cc1139d722fda5b9fa7f5d901 third_party/boringssl/src/fuzz/client_corpus/fbc122a0b3cf64922da10d1c0a90aa31dac2ff39 third_party/boringssl/src/fuzz/client_corpus/fbdb925b4ec83e77eaebb87d7e3d80ae6edc6f95 -third_party/boringssl/src/fuzz/client_corpus/fbeda522c9cb1468f96b2a70fe082bf418d9a9d4 third_party/boringssl/src/fuzz/client_corpus/fc1448394a5a017bfad44a910f651f0ee0e3c923 -third_party/boringssl/src/fuzz/client_corpus/fc48a8345f51e8f9f7ea60f7c3a6ad53853d0408 -third_party/boringssl/src/fuzz/client_corpus/fc929763fd6236f38921fcbb14445652ab39475c third_party/boringssl/src/fuzz/client_corpus/fd3dd6b9b568a9da77c9d213031da5ad17f2cfc6 third_party/boringssl/src/fuzz/client_corpus/fd3e6f784078d95acfbfea317205220b8b9390c3 third_party/boringssl/src/fuzz/client_corpus/fd967f905e97b50b5afcb9d4daacddf8ee00a565 -third_party/boringssl/src/fuzz/client_corpus/fdc64d4dc758ac253b0d42adaf9b920c1f932a3b third_party/boringssl/src/fuzz/client_corpus/fdfa2474cdf3e4fc720bdac4b8f0b4cb301833cf third_party/boringssl/src/fuzz/client_corpus/fe187b582bfb5a84e21f43416293a05ebe8900c2 -third_party/boringssl/src/fuzz/client_corpus/fe5faaa4ec3b7f781831c2c9f742ddc07f6053c1 third_party/boringssl/src/fuzz/client_corpus/fe767dc5b87b4965a8d7027aaf94588a9917c0b9 third_party/boringssl/src/fuzz/client_corpus/ff6b644d310397f2f63a362bae3059de091a0d89 third_party/boringssl/src/fuzz/client_corpus/ff6cf28e51054b5211130e10280d0bca367e677e -third_party/boringssl/src/fuzz/client_corpus/ffb8bcc87aa374846dd48e47cd7649cbe87f012d third_party/boringssl/src/fuzz/client_corpus/ffe71d0314b13356a01c259339dab080a47a2b81 -third_party/boringssl/src/fuzz/client_corpus/ffeaeef1e062b772eee2579768799848f4f32315 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0184b1ddf12ab07475787b17fe41aa5702b4db92 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/01dae3edd412f30df4ee0d1494f0f453b9fb6d0d -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/01e523c6b36248be87ed873ac64a9ac83512f24b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/021236ede951ac81f840ad4092af4b90e70a6662 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0267da870fb294f38df9560ca06d86ef08908a2e -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0422b2b82c010a42274f0e5e3ece01466200de4e -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/04e50855147e489b081cd8fed96f7e88c2514cf0 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/059e79eba4b5e804ab89d9050a06a71732e23ca6 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/067cf89d163998b020e1829ac2f13f8b0665c3f7 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/06adeead9ec17f5df0dd3e3caafb95ee3a01a924 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/076c9f0fdaa2b449eda2f58e011d8f3fbac9e6f6 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0835ab477b154856764842f6389796d722b70ffa third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/096eddc240c9044debb4cb35995671a2dd555646 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0aec559b75117081051aa66d47f70700e705e7d4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0b0f3818d48b140b7660d30630e2da7be213d13c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0deabea1d4d61ede4328cbc630a16f123d0a6e59 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0f8e688a4c6c22e352819389bdf5387a0a75a510 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/0e75d2f837abc03408d7d3db57d9959a8fcb3bf6 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1108a347eb5b4587bca015346c695bab73b9b815 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/114821ff678fd91715196341f4aedf8b468c1947 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/11f842ca4f752d206c9f1d893f4af5b2a0ba39df -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/12f9fa4128945a916e74b5165442c515afa07ddc third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1489f923c4dca729178b3e3233458550d8dddf29 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1570dfd6da737e42b8fd83fb92db1293240ea1b8 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/15b5964b3f9e5ede5065ecca5e9d1fd7694bdb64 @@ -3981,210 +3880,158 @@ third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/15d88286efd2b01b2f19 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/15fce0238c6f15c36bc64ce9452917be3177f8a0 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/17af1321ca1bcf93458e8786682c61d474d582e8 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/17bf733e2011f066cbc4dbd62ed9051b3bee44bc -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/185271becb021a5fbe300ab1c08013587f96eb75 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/188cfbc5efd288a8f552eac58283b28ed1d0e4fb -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1914a26475263b46e553c5b470db3d264d8c8eaf third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/198387c95d3a24ce414348516fc51ae5d6f46bff -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1a587a0709df3982f8ff74b5f1a9a23d45c408a6 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1b6bbd1f17ece2ff279e2381ad860018bfa11845 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1bc0b5767e3ecebb33afde10717cb407f8595886 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1c80b5ec9bf3b7d492b02b7d6d8cde154e3c5767 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1cfff640808dbb6ed82220f3f25d592f32182d9d -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1db16d71d352533e5c76b79e2ca7404aacd66bc9 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1e3b010b7e3cb1222934aa0b45154e3b6b364eb6 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1ef89e5a4c6308cb40d8167759ccd1987796a0b4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/1efd691b9e956ab5119a03a520a42f1855d095f8 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/220169702a6e2847c42655c4b8ec0ca772317147 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/21db8450e70d77763c4e9b308f2ab0bba4d2e936 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/23b72188d77132ea04131a9888767b920c10c60e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/255472a1dff67bdd5cd03b12682189c32c36230f -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/2796b7ada7efd03efa3595a2b9c585ef4f4e734c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/28d25966f30bcb3fa3376830109d2dfcd1ec5e04 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/2b76fd82e994800c68069d73c9ae267df90e120e -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/2cc718ad69e198048e10556fac0a4e84284cc240 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/30023909e6ba3b6d4ad7984e3e1e1fba38834a70 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/2ff107808da9b3259c7c492f56f614b51e7cf511 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/3061373083005b2f9bc481a52ac2089de73d6a73 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/30bcbd3bf3da44431b4d8a9a50e8c936cdcbbe4e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/30ef5c18821a1412b18c66c5951af10433d803c5 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/321847a2ce634faeaffa56ae79df8d5a568d4f41 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/39aa3c93285507dae367037ae321ce71edad37a1 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/36ee3ebf21d12fa502a4f975b577ea88272f7a73 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/3ca2a932e5b409c4b75e9e9c85848fa84562ac22 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/3ccac69d70ac237a9c56b42ee8a0fea9fb402405 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/3d543946691b7da695c51f06788f1fbdbba0078e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/3e153e6b6d0146a43ec3fd09464f942704daf1a4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/3fb9220ae4d3f9b932efb342db26b96938767750 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/3ffa236a9443c7c3fc37dec4004c281abef454cc third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/41a069cf62fef316e92aa67f42a0265ec974d1b3 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/42d39267aac48c5b5df22e8779a8b5ca1e6414ea +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/43143dc817c313c17942e536ee1ed752d5679036 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/448d792661e919cb7ee54273760367cb5ccb9ad3 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4524f9b5ef1d96a93d26901cebd69c143494fba3 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4552802489552783e316f1edf339a112643381f9 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/461bb6e7d93af42775a640b70b6043d3c43f990d -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4624cdb3a0df9e5a3fbdb95a2b4a8bb821f620cb third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/46a9fc44bab25ddf24e92c4f137080bbd8684f10 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4856721e2cf47eebec756e23c877558b4cb10f3f third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/48ad34fbe236d875535d2d9da5027a610833ebf8 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/49a21b95e75323777f27a80f7ba67f5abe15a1fc -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/49b74ef90eb6623b2775ff9e496c842bf8ffe6c9 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/49f8150d2adae0d61882d66c5011f3fda5c671a4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4a74365e7a0c46b447ce6d38ca82d313247be73a -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4b530383230ac47fa0cc9d6ef8f7e1cc7bf12a24 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4c108c7588df5d3a0a70725d2ee59b180b30f455 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4c2a417a5062ac87582e07de9d58b66b0a9933d3 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4d1433feec7ffb3a6b500b33aa2c672e8dd68d8c -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4d31bb20ca8dcfbae9ff4e32a1a025b7df8d2358 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4df014262a67bf848145487545747aee2cd8ec28 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/4e50ae4a0f21aa01f73fcfd57caab9f92106c351 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/50df7fcb9d352351c357c3628cdccd408a4432a7 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/520bdd3a6257921e0e2ee3aca87f39e1bf19fdad +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/50e1fe9153a0f2f162b7d8a56419225dcce1ec5b third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5326b1ab999cbca2d5e4525e368b4a31f0357088 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/53ca7b40934b63df766c5dc95abd75fac34eab0c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/54de963a4c073668a7728fd22f83881451b46b65 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5597751db27e8046082c938f109c3ef9432a878f -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/55e787753115c104b8015bb23008956ccc0c9cbc third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/564cfd52b7873bea5d715c87b4ec56053ebd14e4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/565327c2f218a0937d73f40571f04958b28efc47 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/56a851221d4b93d2c9b5982a5bbdc30b3294db5d -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/575a06119571bb4c7a0db4642d01a47b23d47ebc -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/579583244643ac3ded44d734540b36997ca0830d -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/57c81ca1561089981e44f1f0a4d1cfcd5321fc8e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5837fe69b76cfe5fba1d11efccddcab6f2396b5a -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/587e5a6b6ef4c41cdb1f5ce000b84b85e9fc291e +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/58dd97b28e54273740747d111e016639845b3868 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/595087ec880e606486f12720614fec12260c2e5e -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5ae338e6363d1e3b7a578407f6afb0225184750f +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5993c38e52907805629c080184104ffd91381698 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5b0fcef8cf8f8d5c1531d85f1689145a1d671ed5 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5bcda6ff42d95781bdf79b7df73362743181bb37 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5cfbe5bca4f01d58b5e0acaa1fcfc6fe0452b21c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5d68e739190e5f8eceed6fa26c5c24d454974b76 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5d8c35e774db92e469cb224592a4afdae9ec8846 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5ed097540daf0d802d5cece04907e56fe1fb7df9 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/5ed7d2e724fef0c0e4b9a2fd3400bf12a1ddde39 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/60ee9101dba1de8251676729bcb5fe9071c75b07 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/62fff427c23ff1143bb04236a410630ceb06ad56 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/61789a036ff23d627ca712fbcda64741385223e8 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/63b09a82816a8d231b5a0efee7355bc6996d0044 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/642d56ca7981859ef3d1a544c6d86ff14cf6643b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/647dd0b053a7d8d2ecd2010635372371860833ed third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6485e23f6bc3d84a6fb8cff8ffcdc1854b0e4ba4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/65339f5686e83ae8e03b1203f37bbebab2ae0fd5 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/65377f2f2b6735681c93af60d8c70011f878d506 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6601522bb69f1f64d249c4964166c5c1372eaf5f +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/67a1b9bc225b6b3238c13e3cc1a634d5b22a3af9 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/67a2d01f9bfa54c4f13952ab3b71518da8c557cd -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/67ded94bf9bb3ce7aff7ba2948893188e15b07d5 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/67ec20345ec5e5ed39e3046764b5a6351b6e2c08 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6991365467c8619c71581bffc9c30f65975e700c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6b5746e0fa6f753061e959449200ae2a8d908493 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6bf8fe861362722863f0d9d1c8a5b79bf3d3a79d +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6dd27bb0c3c6118c70a9f504467385665e26928a third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6e2ccd0ae5e2d1934e717cbd1ecb6befa9ed6140 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/705270318e4d13b2254e8b8ff53cb6a56b8cb019 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6e4285caf846566a62740d83cc0a40f3aa2a119e +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/6eaaed5eee2df54eb20699a587c2b819ad914c36 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/715ea107bb66d37a57161139384852e434f5e9af -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7191af13ce6d6b1861368d2de30b80e5234282cd third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/71a53759871766a1777635ac953a0397aec89b49 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/728f123a132ec0800a157e9be4224b93a32d1b55 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7217510403b2794cfa4ded48e9842ccc060b8e83 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/72c4f60d5e4927d9b355ef72aada0bff5ea49fe5 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/72d1a8739d621c82db91f96c72c9901bb3d6e9ca third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/72db38ec7e0b96489820750d33cfeca38868cc50 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/72e3abde4028caa8efe2839e3909bb6913a10520 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7391108d021d742f14374781e47957532ffe1c84 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/73bb0f23494b6ec33b247e0a2e399d3f4c5fc94c -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/73ffc3730cfe13c174bf5a127e27c1b5b610d8c1 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/74142701740b75fc372f3ea476ee32dedea6cd74 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7461f62ca214c576c43dc6024f126056f54c044f +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/746bde76e39c0dff6714c4451739ca8f9fd96b21 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/752ba4ace927edd3ef0fc70516b2fc55c383c1ca third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/75831f97f420e01ec08de69afa7948f23f261a88 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/759606f3e01eb7a55aa16d40af0b9d4dc03ca02a third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7690aaee06c6d307efabc1ec7b40ae8035323bd6 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/770fddb164af2441060d0e36fe87e325fd404759 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/78be03dce34d5a034897e179c051ddcfe0e7f9e5 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/79bc88fbd74ded2dd414163866743a50b7dacd8e +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7b71d7d90a6f74a8b5e0203b9524aa3f53dc558d third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7c6e650189ad8d3668b2a7027d210968737f44ae -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7ddd290f632b4db1e13eb6ba93ac8d5eea19653b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7de549a778377fd072033ba6bd6b68a2eff73afc +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7e4a4bb64c79be3f0ac498c1a4edfd59f806a7e1 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7ef87ee636938c2bb4235227cc5347d8adae7196 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/7f94fe1d8d2e9fcbe8a689ea405d283e0dbdec53 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8050ba2604841da92f0b59af0cd174bd855d7cb4 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8092c66b49507d0804cef649eedacb6ab5d4c665 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/81db329c4ceee4f035e2240bdb02afde0903ceab +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/81bf04a30d4cec65f82d1b21337aafeae706b87d third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/83c064458968d36359860dfe17c72ae096a05895 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/84a683d3367f6d9e746e58b36f1eeb2365544250 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/85b13045cc9ef0e9f06418ebb164ce56458ff39e -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/872f1f37b9721c43ac1fc37a1fa2bcfe9999b6ec -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8782ebcba0e46e7d5d5b8512ad5b6c6b0f6c9bab +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/861ca6dc51c3df53315af5f6b152e6acc9519c47 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/87a799820d8e22e37610b575117591ff82963c6e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/88e19427045bf9e453e315a27d092999a355d659 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8a1c75bde791aa363cba0a6a146a098aef100e07 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8c5064acaa7b853a114d5e64bc630396ac7453a2 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8cc44a343ecb056ee6113080ad397a71be237af6 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8d95927e1a1d8deaf76c328979171a041ed0cd6a third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8d9d6cfc1b60fff0eac72f537aa04900e3b6049b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8dd8893a5f0fc0e15351b7099a3e8f592bafead6 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8de0c079be9fd4b1dc99ac12329c2cc8515010f7 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8e341602679596171444f18439f149f0c5824640 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/8e83a4101a54aaa7e1702689dd063a6c168d707b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/90c713d46111253ca7e360c54be82f3a3d8f1c00 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/922143b5e486e7ddedec09154de45a9329870ff7 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9294ea5ed7179d7ef1a033fc6d98fad1a3365210 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/92d0c33fa738bdb33bfafd4aa6369d5b66aa9206 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/92f51d7dd5aaa6da46a0cbece26eeca997eb2ddd -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9460a55e7b8870ae5b802442b45558c32546d1c0 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/960f76b2dbfff2e6590365b62cae0e8ad2840a92 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/96133aa61a0d5b41d4488efb1a6c8c77cae9fc5c +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/964349dc203759d2b88013142e311a49dd157499 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/964a71f0e7be3d918e17930feb8cb493cd320c49 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/967c1873fc0f7cba05d2d8bf4d8370917581435e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/97477f6fc79072be058178fecfd1fcfcc5197ee2 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9763c6b7d81835078e3b20fdb41b5288cab9930d third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/978e1b1c12ef766f664b5474cc68e9a769299748 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/97d1abe729dc8868925708fb67448ffa5a87b7e7 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/990fc339eeb1c77883a5f078f566a7b33ef2bc71 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9a3e583c686b703985312b4e7b5363976c059ee4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9c26ea944d6af8ca8a40fbe140b1546c35bed999 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9c6193a5394c1c4e89ba29c195e28d2f9bb1d43e +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9c4aa58ec20965049f92156a7820f950f7801b07 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9c658f6134d4ee8d92cbb14c17ef3f95866f9244 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9df27fa01295756f17f55c589ede72884ea23ff7 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9e7480708f1639b3d7d28c24b8d0069872cd9792 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9e927fcb8f36066b2cf797a59692d2787e0a0a5c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/9fb493abce1d36d1279c94f79909b0c02ccf9dfe -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a0a3f8b81f6e642dba6e9699a93affd8ba8f2ac0 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a16b87d54f34c41585c186d6d9276471a4360c45 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a2fc726c88593743aa6370f0042f9820195472d0 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a31485be9beb36c2e8de3c8dff871f5a7ebe6286 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a36c75741c2a634a8e15e4a79f7d530f0857461d -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a388fcbef7a7f6472de3468fa4c32dd78b3129f1 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a428882e3383a053f7a67f18da2b494a1c3244b8 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a48061bd3de257ac7f848d715308b6b83cbaef0e +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a4e966a61063261a509a28fca896cee5c4ff0f07 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a5dfc336934d434aad04cc9914d27426d00c2a34 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a64113ae9e2ca40e85f2da4693d8a50c3a663c13 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a73731d1af48da3322941cf0a0d047c5c1d5282f third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a73e17bb891d223f500c95916dd2ba549661f9ae -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a84f3221df53883f4e434588698a91a5f5591d42 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a830842dbc465c8e3037c3618d059ea5d190da5a third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a8870d429c8e771cc689d8c5f5d3c2bb26d9470e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a896436f90d5fbefb9c1d0f2786d16ca6dc3a3d3 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a8d10ffb2203179928d1e8db5c90bfdc6bf88f0b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a8e6f33cad1fd35c6293591d1ab69e2010b41fda -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a985e12a9d7d8eb3414ba48ffe5184c3ec6a3094 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a90d298af651bb2dff49a9eab4a1b3a8434ddd58 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/a9dee07816a237b7c8b3366bf4e939fbfa855a11 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/aa42f1d9302651c1d42487c5f0ed597f9cac7f00 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/aaee48963344a233374041c38961c0e1bc1a0f54 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/abc84e32c9322d849428edcc88f300c6b5092201 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ad6b840542d75c822ec03a7e10be6f685281f254 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ae1efc0b2a8d3c8ef85c46a688647d458441df6b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ae79bf11841099f18cc67c797d3397493093a5d7 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ae882abd4353756b6ab3a5a10a25a0bb86ff9ff5 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ae96f0e125de99bd430b09ed39f189806eb5143a third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/af44ac4c3b0371c29f408f6b42edf8b8403785d9 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/af80142b1a0f56afda8d5aa8b71a58b57dc61994 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/afc16adaed4afa91f8877c29c6f6a99fc453cbd4 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b01af8aca6a58bcda50555e3afab1c40bcf7f582 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b1376725e3bf74c6519c219c6472c6d81515182a third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b217013fcc4b7f16e856b8c91df61f7e071c5cd2 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b2174c896aadd734d67bc84c407f475b35912695 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b38b00f5b3038f2b2465f5ac267e704cbd6f2b91 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b518d36780c7262e68d538925850d2cb45e1eecf third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b58685e21fa74c6eeed49bbecd71e7acdff69599 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b5e681b102d6eec45ee5802af02ead2d6713ac25 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b708d243cb5d8f4678030d6822bef1772d443117 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b7923b14c8413afca9f6e394dcfb50392f99071c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b7d6540600ab6d67e85b698a97ba5d39e9ad7a66 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b7f51c55bd011598a8e3e1d0671fc9d4a17a4d09 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/b7f92e1901074aad1041b2e33b02ab2cf2757f2c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/bb1932ddcdcaa62c527013ca89743438cc57db82 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/bb78e3d26db4f97235fda0a0329847a655bac48e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/bc19949a4f9d9309a48ec184fb6c59002f42e86c -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/bef320e1d75b8a7426cd327824604d6dd3403c4f third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/bf8a9329652af9d8c79a4049a63000282fcc1fba -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c1efdcf04cb3b2c092fd7d337941b4a1b8541112 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c2ad633a6f8e9af11d5d73ccd9537a4fc66bc9d7 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c30d524f1e818c476d15246ab7e57892b74b23f4 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c4c5d5f97310548bfc8c6bd37202e5caed807bcb -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c5a9e9fb45d410a492456ad65835821be1cf89d1 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c1571d8dead21f0375ec249a2ac0acfa30c5bf98 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c672a287349b95b21cf74fe53b18c8ae52011e1e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c7c685c2d3992a29cb0ac5f3491481a81e9c37ed third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c88decc00c709493fd2b46582cc39fb2d90b9c2f @@ -4192,63 +4039,52 @@ third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c911c751c524836662b3 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/c9d2ac1c2a32db202847e5e7881dd1d802276588 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ca2ed4c4f6f6fd8ac15b8e778686d9bfe181c5fb third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ca4a6d08a9cbabf39f2e5ca745d08bec23f257bc +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ca8b2b965235d155b554d0ae21f5b26ae58edc7a third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/cb0c90e980e4a01bbea871812a9923aae9a12300 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/cb4160eb793e7dfb3ce938c73dcbe4e4e2724a15 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/cb50b131a7978e48d0b16c3a68da108fc7bf31d2 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ccae049e25479df182d207e85c401d57a21dba43 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/cd280adb132d1fc580a5411d9b3544d24909e0bf -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/cd6a4efb428c62a9f81228ee454574733323c802 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/cd93ea4c10bdb524167d62a52df30109703c06ac third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d03d55e11ffb6b7bea17ee5fbd26fd9088ca41d3 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d2328f74204a8ab6cfe30cd2700bd87cf824ff70 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d38f8974f2828363e00560acac189d4b21fec131 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d4c5e79fcc1be0df3d8e9829c7adeb9b10ca6dd7 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d4ca6700cb2247c09f4e4907aed38b91b6433156 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d53ffa4e51bd0e2fa76482d3f4117ad6edd7dd66 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d57be58967cf9ae66dbe40ac2be4041924e67047 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d5bb4c5a18b8c80f4e168308815f3290c1257b5b third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d636d9f8a5e92c6ffba412fc2dbc2c0c67ece39e +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d63a680528abb85c99dded5acf4fabd5329379ea third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d71a395440f1f57e20b812b018e3a6e1f44c2130 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d73f9e0858c2b64ad3f27f8ba0afdd057c36d417 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d7aa318731d76a02b188aaf44af22c34c0a71917 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/d90ce69847da6a1e6afa0ef67dea51c3232921c0 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/da9f75b9b66c2876b084de8085e35da2bc454e52 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/db0dc10acf7ec0d014ec49f891d95aac21c50a94 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/db48979524a308faa3c44bb26bc93693b20e00dd third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/db6253a552c9b15d05c75abd422b002def6179f7 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ddcfeba49070b0ab5aae64cbaa73155e051bc903 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/debec0c03eca0c20c4c4e92c956284dcad5bedf4 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/dec67d20da08abe80169e12989d315550d2b7fa9 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/df69f4b2fbc627d7f1719c0eb8f9b44b8c1f1fc9 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/dfb41c32dca4464951f14eb246f0386afd2f8b87 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/dff3f321cdffd2458b2a7b06d9f295c7591f10f7 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e02445df45e951ea7c2819584678658b987234a7 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e0c1180e30a5c4487dd3f01bcf20a633a7c0b9ae third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e180ab112d2cfe38105931af1ec32b63e7293997 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e1982c0d53c837275574a549e9c03612f82ea053 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e2c512cb0534f93ebf02a528019f50cc677792db third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e53615202a537675257fa5bd9ea8aaaf1c2730dc +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e547b1b6d6e366f5a0e959ef08e68f1afc881e1e third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e5b7a55372247aac91c5c816a944f68379e35f50 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e5d13321e6a41e047af87c8555d2e218a845e2c2 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e5fae8d533c84367dc80ab51c88f6e1b6617d4f3 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e6760514765cf56f5544cdd72a48e845a1648665 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e885661bccdc658e652d468541b5ed4020cf0b6c -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/eac69fcd8cf4cb4f2c427463fe00eb4cd8615f55 +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/e8fdd58224af1868748282cca2c2e0f414bdd6de +third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ea910d676242f1bf4f0bd42d575ea204a84ec64d third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/eae093893ad367e52f83275a9e85e2042b4f3839 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ed7a02841142930ca1c0f366e5d54fd8d849f7d9 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ed9506b910179982197773e7d650fe732b2a6b47 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/eeb8106583eae8296bb0a90817c6cd42145c4cc4 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/eed2398c7efa360b9957b91c755a5354cbd8d80c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/eee378854e90402bc4a80bc0c5d35a9a11c39a68 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ef996f25c51d66c9c3ab072638ef1b2bcc114299 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/efaecc78e9aa4c414035c033fb723a87e3cd12f6 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/eff517ffa93857163c09240c201ef9b5fd9a5dcb third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/f2991e821ea94b22f5c9d7b2fd76a2ded0171328 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/f6d05be1615ec6305250f53fd8c0d95411187bbd third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/f6d5ec326e8f1027a68accda8da48489b705564b -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/f8be00b1c3922da992fe91fab1ef328d4613929c third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/f967f8fd9d5298a2e19d0f900b785528c7b317f1 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/f9fad23530597588efd0af3187526e3bb0151e31 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/fa2cefdf344569957b3ea326c8f759738face0eb third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/fb1007d8cc0a626dcf13b4910cbe3cef5ec564a3 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/fb1a5d0a53477c504d6bf01e36c2680d941c12c1 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/fba3e36ff9038e8cc1139d722fda5b9fa7f5d901 -third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/fc07d38a8e9905c8e4f7984afadb667866c2e5e3 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/fe625aa8c83a7bfa864f3b2ca979cef60d661474 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/fe637e938fce270fcc0ab998d5aed4e10aad1d57 third_party/boringssl/src/fuzz/client_corpus_no_fuzzer_mode/ff261b7426d59abe341f87143f622f47ba3b9289 @@ -4311,6 +4147,7 @@ third_party/boringssl/src/fuzz/dtls_client_corpus/69f717ef05e0751b25908ac15f0316 third_party/boringssl/src/fuzz/dtls_client_corpus/6ab3bf26ed1ca437bb12e24b298a2b0d1e80df0a third_party/boringssl/src/fuzz/dtls_client_corpus/6bfb96ccf744774b8f59a9396053e937e8619cc3 third_party/boringssl/src/fuzz/dtls_client_corpus/6c79e70d2b8a1f8f2c16ac183ee8317970186193 +third_party/boringssl/src/fuzz/dtls_client_corpus/6e86ef23237569d34b0225a75f75efd486d34bbf third_party/boringssl/src/fuzz/dtls_client_corpus/6f30b0ef2f2e51b01b3868ebc6d39a01f7cbcc65 third_party/boringssl/src/fuzz/dtls_client_corpus/708aef210c5e5ecfa9dfdadfa7396cce4bfdb716 third_party/boringssl/src/fuzz/dtls_client_corpus/70f63d64f74c44978450c1669037013cf9ce1ceb @@ -4323,7 +4160,6 @@ third_party/boringssl/src/fuzz/dtls_client_corpus/76aa2db8766473839b501d804da208 third_party/boringssl/src/fuzz/dtls_client_corpus/78aa31923ffc9e1095cdffbd931b5a1defaf22b7 third_party/boringssl/src/fuzz/dtls_client_corpus/79fe1ab0295e05efad4e93bf951d64e51dc92051 third_party/boringssl/src/fuzz/dtls_client_corpus/7fd4a2edff6826eecbb8e274de183c1b78605b56 -third_party/boringssl/src/fuzz/dtls_client_corpus/8409abb8d5c926ba3f496c5018b44117924c3230 third_party/boringssl/src/fuzz/dtls_client_corpus/84d5c450b4b953e2176ad00b4300e57d1c21a46c third_party/boringssl/src/fuzz/dtls_client_corpus/86bb3b2a64b5e5a039f7ab3d60bc5713bdb00c75 third_party/boringssl/src/fuzz/dtls_client_corpus/86ca4581fb07713a95e99f37354721059805ad55 @@ -4342,6 +4178,7 @@ third_party/boringssl/src/fuzz/dtls_client_corpus/a31a750ad827c819b1ceb278f15854 third_party/boringssl/src/fuzz/dtls_client_corpus/a3ce07b158d5bdc13d8672c278977c784a1d3ca1 third_party/boringssl/src/fuzz/dtls_client_corpus/a526f93c153350013af4279af6c7213022f2a906 third_party/boringssl/src/fuzz/dtls_client_corpus/a6d1f697bb3530fe0131b99b74ee2bdf87b9bd7b +third_party/boringssl/src/fuzz/dtls_client_corpus/a71e9d280a0fa4fd257c9755a747e7a50aa3ae42 third_party/boringssl/src/fuzz/dtls_client_corpus/ab745674d21a34d315c4904c6e01f8ded83502a9 third_party/boringssl/src/fuzz/dtls_client_corpus/ad86ec911cf4a53a0020f36319ba2fa9bc38ac12 third_party/boringssl/src/fuzz/dtls_client_corpus/ade9a4bc53bdb65d3bf9f2f00ee41f6811672c8e @@ -4377,6 +4214,7 @@ third_party/boringssl/src/fuzz/dtls_client_corpus/dd303e61296120c83505fc822d731b third_party/boringssl/src/fuzz/dtls_client_corpus/e1a19456e1d02cbe3e71b4ab76636c7bde4d8651 third_party/boringssl/src/fuzz/dtls_client_corpus/e3008d20ea3c034bd4582c8e2f11fd36450e2548 third_party/boringssl/src/fuzz/dtls_client_corpus/e3fafe3c9e1be8fb12115494ad963b87f84cdb69 +third_party/boringssl/src/fuzz/dtls_client_corpus/e4cd38b05f81aa466a1e1ccd7c0c8cd7e8fae4d2 third_party/boringssl/src/fuzz/dtls_client_corpus/e61ce0dea06320041bd5a81729c06b5fc8f1410b third_party/boringssl/src/fuzz/dtls_client_corpus/e8ec4c5ece41e3ee58ba64658fd8af841e302079 third_party/boringssl/src/fuzz/dtls_client_corpus/ef0c43ed259278c01dbd064e9765d19bc3b71fc4 @@ -4392,13 +4230,11 @@ third_party/boringssl/src/fuzz/dtls_server_corpus/0e1ad8ff2eae0ab91e97a7583aa9c2 third_party/boringssl/src/fuzz/dtls_server_corpus/0f3d6706c7ca5f6f23866abd9e376da62e7343a2 third_party/boringssl/src/fuzz/dtls_server_corpus/13c3d37e9e492531537bf340894176cfbc431879 third_party/boringssl/src/fuzz/dtls_server_corpus/14e0cadb5809f43011abd20c3610665877b1df21 -third_party/boringssl/src/fuzz/dtls_server_corpus/1787da807ff0fdad73f53491aeb566bccb78faff third_party/boringssl/src/fuzz/dtls_server_corpus/1b2d862bcc29bcbc2805c65d9b08e01ea7384297 third_party/boringssl/src/fuzz/dtls_server_corpus/1c51b2d525d6a6f2fc4e76ab2b96869610735064 third_party/boringssl/src/fuzz/dtls_server_corpus/2136d2b87f88a29e1d28cd0c758a9e91dbf166be third_party/boringssl/src/fuzz/dtls_server_corpus/24973bbed6527f9fffa3792322500447cedc8717 third_party/boringssl/src/fuzz/dtls_server_corpus/2d1082bd0c42e38132a435064cc739d430a0fbb9 -third_party/boringssl/src/fuzz/dtls_server_corpus/2eb97023d92ec521009c93ceeeddf894f3f0c806 third_party/boringssl/src/fuzz/dtls_server_corpus/2f02fbe45436263e7de8d85d55110508feb07989 third_party/boringssl/src/fuzz/dtls_server_corpus/328daea98a65aa522edf51b482ab5a7d757d6116 third_party/boringssl/src/fuzz/dtls_server_corpus/3bb6754a9a8b89bbd87b385959f106a9ad587220 @@ -4415,6 +4251,8 @@ third_party/boringssl/src/fuzz/dtls_server_corpus/517dade6d9edf5067549f39f7ab87f third_party/boringssl/src/fuzz/dtls_server_corpus/5210047131b7e7920a5adbd87aff07add5af6d17 third_party/boringssl/src/fuzz/dtls_server_corpus/52dd2bd7667b32329e3f6e2e406c792ea006587b third_party/boringssl/src/fuzz/dtls_server_corpus/54eb56610f3a663105006f03d0e83b9d2f5ee8eb +third_party/boringssl/src/fuzz/dtls_server_corpus/57eebe0c4a8cb4e550316546f348d050da58a1b3 +third_party/boringssl/src/fuzz/dtls_server_corpus/581b8402802e5bb50eca830a63c9a2dde6eeeec1 third_party/boringssl/src/fuzz/dtls_server_corpus/583e7e56f1c6d9dba2f9bf06d9e625cf1cc5fec4 third_party/boringssl/src/fuzz/dtls_server_corpus/5b392c5b3d898c664212649722b349234a515e51 third_party/boringssl/src/fuzz/dtls_server_corpus/5db3b2c6e40b45550dc59fcfc0b1a32fad0d3bba @@ -4439,7 +4277,6 @@ third_party/boringssl/src/fuzz/dtls_server_corpus/829a7dd29a0f60c7b17d7d270ccee9 third_party/boringssl/src/fuzz/dtls_server_corpus/87ff93e800e3956bfaee7276683c14f718058553 third_party/boringssl/src/fuzz/dtls_server_corpus/88b155676d384245d07034d8975a7761e50ff726 third_party/boringssl/src/fuzz/dtls_server_corpus/88c19208af825dc038d4c46114713271ebce6056 -third_party/boringssl/src/fuzz/dtls_server_corpus/8d2d0f7c8e0ca6c5e0aa74a2bb221e1275c1b1e9 third_party/boringssl/src/fuzz/dtls_server_corpus/90237833748f124b562a8a464e8f058236c4434e third_party/boringssl/src/fuzz/dtls_server_corpus/902d0f2519c24854d135a0e0f8070da4ebd80f85 third_party/boringssl/src/fuzz/dtls_server_corpus/90311d335d972398836e12b4fb7d118c97f2db96 @@ -4453,20 +4290,20 @@ third_party/boringssl/src/fuzz/dtls_server_corpus/9aeb57cca795217a65520a9ee9677b third_party/boringssl/src/fuzz/dtls_server_corpus/9f140d158db604dd5bbb7057c80361536ce56af2 third_party/boringssl/src/fuzz/dtls_server_corpus/a23f84e21c99d11d95450d44029ddde034a97b29 third_party/boringssl/src/fuzz/dtls_server_corpus/a2acc938fa33768e372d4449ab89ce00120415ee -third_party/boringssl/src/fuzz/dtls_server_corpus/a47fd22c843096f4f196465ede9ab0a576bdb4dc third_party/boringssl/src/fuzz/dtls_server_corpus/a68be626255ba67fa01da37c58ee7b228354d18b third_party/boringssl/src/fuzz/dtls_server_corpus/a8b0038adb4e93c0ad414defe7e4520af5d09917 third_party/boringssl/src/fuzz/dtls_server_corpus/ac6d4b13bfcd5c428da0b97bc43bf5d107c455fa third_party/boringssl/src/fuzz/dtls_server_corpus/ada750f131912ceafe1fa434ed6f304cf21fb331 third_party/boringssl/src/fuzz/dtls_server_corpus/adddc6ab718a4e14ba1d775e82a9f3f22b97469e +third_party/boringssl/src/fuzz/dtls_server_corpus/b2cd7cb2b6286ab60446ab41b99f88560b845de0 third_party/boringssl/src/fuzz/dtls_server_corpus/b3fe70e89428e8ef1269b1e9b1e1a11c7b7ff94e third_party/boringssl/src/fuzz/dtls_server_corpus/b4d69853f3a3143be9670f44b4e147564d3c3528 third_party/boringssl/src/fuzz/dtls_server_corpus/b5d8bd48ba0ab9ea699d766a8d8d29ba2f55c3b3 third_party/boringssl/src/fuzz/dtls_server_corpus/b84c82413b101a88522653bbd16e03ca0de0d946 third_party/boringssl/src/fuzz/dtls_server_corpus/b99645a5401e409e30a573a0d4febb27d367736f +third_party/boringssl/src/fuzz/dtls_server_corpus/b9a0cf0ce32f0c06ca4d3ae44f97e03e48078791 third_party/boringssl/src/fuzz/dtls_server_corpus/bbb700da571a9d5f31e3e4f30e7352d13394a3b1 third_party/boringssl/src/fuzz/dtls_server_corpus/bd37d9deab416c2983a405f5b20e8d114b1de6ea -third_party/boringssl/src/fuzz/dtls_server_corpus/c113fd4d121d1a08e48c9985bb25d2fa7086ed95 third_party/boringssl/src/fuzz/dtls_server_corpus/c1ea062568704eff257b7586f18b7448480742ef third_party/boringssl/src/fuzz/dtls_server_corpus/c20f11b9a147a8d00d2990cc6029d29ad421f110 third_party/boringssl/src/fuzz/dtls_server_corpus/c2d6d0c7704114d7976e9561cfda66e93998ad3f @@ -4474,6 +4311,7 @@ third_party/boringssl/src/fuzz/dtls_server_corpus/c3109373610b14e47396af64d3013a third_party/boringssl/src/fuzz/dtls_server_corpus/c59beec40ea2a223e5dcd0516f708bac5df1228e third_party/boringssl/src/fuzz/dtls_server_corpus/c7f3fad0aa2589c9aff8e2ad743014e53d74dc5d third_party/boringssl/src/fuzz/dtls_server_corpus/c85b5ebae9157c049be9c1f774eb36593c0fe318 +third_party/boringssl/src/fuzz/dtls_server_corpus/cadad5ba35f54b3b0aaeee97e1730aee89db2a2a third_party/boringssl/src/fuzz/dtls_server_corpus/d0eb7f09dcd05fe3ff6bf5c1c30ed2f0b1181ed6 third_party/boringssl/src/fuzz/dtls_server_corpus/d1f647a1d5a14fdb19cb1218180ef77f29aa991c third_party/boringssl/src/fuzz/dtls_server_corpus/d4ae5d6cf66d5851d987223ad453cee16b692657 @@ -4486,15 +4324,13 @@ third_party/boringssl/src/fuzz/dtls_server_corpus/df5a41dc4edc113ed5c23ef6c9ff46 third_party/boringssl/src/fuzz/dtls_server_corpus/df7694683e3983f36340a381c9ed4ba288d2f510 third_party/boringssl/src/fuzz/dtls_server_corpus/e013043155dacef54814aead504732431146e905 third_party/boringssl/src/fuzz/dtls_server_corpus/e0e0ee673f0ee0b126e8bc3b2fd0b4c0a6737ed6 -third_party/boringssl/src/fuzz/dtls_server_corpus/e1834d0cdb7dcf3442f7eeb06879d45062908eba -third_party/boringssl/src/fuzz/dtls_server_corpus/e34fc060bbaea9e02d9d3aae122240ef2152588c +third_party/boringssl/src/fuzz/dtls_server_corpus/e1665c174c6dac587c0c128860f6e0db053e6702 third_party/boringssl/src/fuzz/dtls_server_corpus/e4eba30c8235c6c3eeda757ee90c66e0af51755e third_party/boringssl/src/fuzz/dtls_server_corpus/e6a48234db89b57ba7fb541a8fbecd4edb64b68a third_party/boringssl/src/fuzz/dtls_server_corpus/e71548c95e23af76066dec9055358dba203c1192 third_party/boringssl/src/fuzz/dtls_server_corpus/e76685d946faf56e405c1a8ed5d388161ac77816 third_party/boringssl/src/fuzz/dtls_server_corpus/e832f8f94d276fea1dab0615e223b8d0ce58cec4 third_party/boringssl/src/fuzz/dtls_server_corpus/e8391c002864076c99925df0db40e2ab2714c3f6 -third_party/boringssl/src/fuzz/dtls_server_corpus/e914b10d0bcee158315944bfaef58a1e30d2ab3c third_party/boringssl/src/fuzz/dtls_server_corpus/eabc7a372c19ddf9f41e1db4650684fb83c2faa7 third_party/boringssl/src/fuzz/dtls_server_corpus/ec3cf0937e53b4cf3845db6f7a759332e2c89e19 third_party/boringssl/src/fuzz/dtls_server_corpus/ed0aceb4d37b5a21b1d35de568699f592bb51139 @@ -4923,7 +4759,7 @@ third_party/boringssl/src/fuzz/server_corpus/013747bfa2cf4629fbb78e2cf8aad57ac91 third_party/boringssl/src/fuzz/server_corpus/01815ba153ed7aea022dd43053e4138b46c3c51d third_party/boringssl/src/fuzz/server_corpus/01ee0b1daa505b2371ae9160902a7fdb3179c102 third_party/boringssl/src/fuzz/server_corpus/01ef99e935e4a086cf97d599e831cd40b6b1d578 -third_party/boringssl/src/fuzz/server_corpus/03011155ce832f527d19293c07505b367ded7159 +third_party/boringssl/src/fuzz/server_corpus/023c8b35d213afe8fd0d0ec674c8a9b14eb193a6 third_party/boringssl/src/fuzz/server_corpus/0308ad43686c1e8e59e2d609df964842da26d709 third_party/boringssl/src/fuzz/server_corpus/03bb0ac2d6bcdce6c424610866233ec9a790f37a third_party/boringssl/src/fuzz/server_corpus/0400e9c88283a21403b12822ced66e4a755f9353 @@ -4932,18 +4768,10 @@ third_party/boringssl/src/fuzz/server_corpus/059878a43741e57ea90470deb87ec8d7fe8 third_party/boringssl/src/fuzz/server_corpus/05d7236a50d50edf97f27b7186649ec682d2bccf third_party/boringssl/src/fuzz/server_corpus/060781e01925904b8af390d897e1a073cd22f22f third_party/boringssl/src/fuzz/server_corpus/06115f4a2f0130c780a7e683a252c17c2b12f009 -third_party/boringssl/src/fuzz/server_corpus/0637746970bf0a0cd57ce278cfa1d959a6adbec4 -third_party/boringssl/src/fuzz/server_corpus/068417823cb04ebf83f0b7ab4ba7a8db623492b4 third_party/boringssl/src/fuzz/server_corpus/06bf929b99009b37662be34fde38894eeace91a6 third_party/boringssl/src/fuzz/server_corpus/071690fa3624186b80e1182f113a3be71cbd6e2f third_party/boringssl/src/fuzz/server_corpus/076a769cad593d9f516e928377e215282878b77f -third_party/boringssl/src/fuzz/server_corpus/08206a0872c9ae7a78f526b8adcf08f01edb714c -third_party/boringssl/src/fuzz/server_corpus/08389fdb0fcfe60293d80171f378e25001acea12 -third_party/boringssl/src/fuzz/server_corpus/085be6ff00b2a429bfe2370c665a276822a9a2e6 -third_party/boringssl/src/fuzz/server_corpus/08a0366e0545d7d3d0c6f500bd54f000093251e7 -third_party/boringssl/src/fuzz/server_corpus/08debd6df6fadfca66e9e4fa9bf080983bb8b68f third_party/boringssl/src/fuzz/server_corpus/08f94db2baf68e874968c88cd285c53c20b10172 -third_party/boringssl/src/fuzz/server_corpus/093aaf4bb8825faf504afe81b5655e0f007df40c third_party/boringssl/src/fuzz/server_corpus/0967fb61edafb16e3606469e1ab3dd482bf85aac third_party/boringssl/src/fuzz/server_corpus/0a30bf5f031bbf135e8d716edb944a8ac4b6b50f third_party/boringssl/src/fuzz/server_corpus/0a4a46ec7671370ae9806a252bc70a03b4f7b95b @@ -4951,452 +4779,389 @@ third_party/boringssl/src/fuzz/server_corpus/0ac7f3a86b7160e431ae050c4f17fae52ac third_party/boringssl/src/fuzz/server_corpus/0aebeb57985c43b5e98fb52eb3c4e4130a1874c6 third_party/boringssl/src/fuzz/server_corpus/0af4dcca8de94c52b1bd40e6c456e8a4d08d4320 third_party/boringssl/src/fuzz/server_corpus/0b203123d059e87b871101c4ffa7d280166e933b -third_party/boringssl/src/fuzz/server_corpus/0baf8d456ecfaaa5b99d7bc7744ade38a8fe2107 third_party/boringssl/src/fuzz/server_corpus/0bcae43fb2315c737f23fb5086db3449c6aceb81 third_party/boringssl/src/fuzz/server_corpus/0c710aac8e5915b1314beb5d1168d9864c3070ba -third_party/boringssl/src/fuzz/server_corpus/0cb93058fbd769fe93e079e680e27d7280013af7 +third_party/boringssl/src/fuzz/server_corpus/0ca5937df3d69bca28c17ab821698d282bebbe49 third_party/boringssl/src/fuzz/server_corpus/0d2689ee9e947191402ef87771d5ed11ec9f4975 +third_party/boringssl/src/fuzz/server_corpus/0d590d19f4d9c43ddb6014f7ba04c78c762aef6e third_party/boringssl/src/fuzz/server_corpus/0dc0f477fe4d7075902307b7479334f4ad306dae third_party/boringssl/src/fuzz/server_corpus/0e63a469313a8a9f88877b007b9613ee8e0f2181 third_party/boringssl/src/fuzz/server_corpus/0ec1495a1b861bfde674ed45141203477f8e4d93 third_party/boringssl/src/fuzz/server_corpus/0f9e3bc08774abbcd2a654d1b35368f7a8142b14 -third_party/boringssl/src/fuzz/server_corpus/1037d8ef263682ea727da03710954173df7212ac +third_party/boringssl/src/fuzz/server_corpus/106e192eece15d7009b8ae43788d63363881068b third_party/boringssl/src/fuzz/server_corpus/1106e9e9c3ad2d7fd09647b8c7a52592c27c7d2e third_party/boringssl/src/fuzz/server_corpus/110ad0c11960037e047425d678cee954fdb45791 third_party/boringssl/src/fuzz/server_corpus/11185b65cd0006dd64bec9675f9435f8bccf1775 third_party/boringssl/src/fuzz/server_corpus/117103f837b20b87d76ee5beb0ba9e4fd4634b51 +third_party/boringssl/src/fuzz/server_corpus/11c91d3aa29f06d800aacbf6a388d3c02a666ff4 third_party/boringssl/src/fuzz/server_corpus/12f8bee4045e5df9be96cba4f8ea5317f9cb3a71 third_party/boringssl/src/fuzz/server_corpus/144adb23e15fa3239e29fe3838514f3ff8486c6f third_party/boringssl/src/fuzz/server_corpus/1489f923c4dca729178b3e3233458550d8dddf29 third_party/boringssl/src/fuzz/server_corpus/169a112c88b979eac18628990387c3330b7dd192 third_party/boringssl/src/fuzz/server_corpus/1722394127928520f54880c216f21206e58da9b0 third_party/boringssl/src/fuzz/server_corpus/1743aa1e9e9f03a04809e98bc8cbe9c4e13e857a +third_party/boringssl/src/fuzz/server_corpus/17670b2de0dcb3d630ca67072787f44fe5b7f0d6 third_party/boringssl/src/fuzz/server_corpus/17be3939682f1734663c780c7dff3b847700c5c5 third_party/boringssl/src/fuzz/server_corpus/17e91d9b4d81bf521adc3f773974cbd2a55e24d4 third_party/boringssl/src/fuzz/server_corpus/186262a3b3edbe7aaeaed2227605a42f00443399 third_party/boringssl/src/fuzz/server_corpus/19296373181ecb6818015c773ec78a928b7be7bc third_party/boringssl/src/fuzz/server_corpus/1a25f5a985c0acbac57833e349506e9864a5c010 third_party/boringssl/src/fuzz/server_corpus/1a5335fe5c9d58dd2d74199b604699f5fe7959af -third_party/boringssl/src/fuzz/server_corpus/1a78f784f7c4f7b942697dc1557acb0008c9a560 -third_party/boringssl/src/fuzz/server_corpus/1cab37845cc732e36d19ba02f55cbd13ea044617 -third_party/boringssl/src/fuzz/server_corpus/1ced00233814002e63473bac5e1e7af0580158b1 -third_party/boringssl/src/fuzz/server_corpus/1d82dc6e31eb9e7a488c5dda40d46e5ea7a2a238 +third_party/boringssl/src/fuzz/server_corpus/1b4db1062df0b7cb3fb6774c48ce0a16a1f318a1 +third_party/boringssl/src/fuzz/server_corpus/1cd4151700c87404d79e9636110b71a94fee194d +third_party/boringssl/src/fuzz/server_corpus/1d75c7b2b9e619e4447b133d6780a6f5f72e363e +third_party/boringssl/src/fuzz/server_corpus/1e19c5814e17f3a1f6b8099469f598df24f04d40 third_party/boringssl/src/fuzz/server_corpus/1eaca93716848922dc05f038869c1744af3a33d0 -third_party/boringssl/src/fuzz/server_corpus/1f3c79b970c695cf25193cb1a1a828c489af7484 third_party/boringssl/src/fuzz/server_corpus/1fd6bd44d7c69c097e7b417b0987eef60ad7426d third_party/boringssl/src/fuzz/server_corpus/206fabbbd678c4c8c9cde43a4ee022cdef978dda +third_party/boringssl/src/fuzz/server_corpus/207638edf84fa4c4b0c28f7c09ffde6874aa5b50 +third_party/boringssl/src/fuzz/server_corpus/20cdb1a78d24092922226e0938e2a15d1e7d3cd2 third_party/boringssl/src/fuzz/server_corpus/2125023d7a1d999b5fa6f2a666b30a16f5d96f59 third_party/boringssl/src/fuzz/server_corpus/21cddb02178830bf7b34cf621f65dc9206a97e7d third_party/boringssl/src/fuzz/server_corpus/21da554d55e0b283d47ece9c21104093a312b888 third_party/boringssl/src/fuzz/server_corpus/2207c3136bfec2ea48f7e1a6a79ec51ca98fb355 -third_party/boringssl/src/fuzz/server_corpus/22f72df9f08c63ddd8f718c554519e67d3ca8200 +third_party/boringssl/src/fuzz/server_corpus/22aa8b7ebd2def6d4681abb424af53d324a03d83 third_party/boringssl/src/fuzz/server_corpus/22fa50e25785b6f9e8a0804a0c2f3c0c25d2bdf8 third_party/boringssl/src/fuzz/server_corpus/237ce3aed4fe295c823329bbd0099c10043b7719 third_party/boringssl/src/fuzz/server_corpus/238a368904902d8af8bcf1515ab89c3cddc6b16f third_party/boringssl/src/fuzz/server_corpus/23a4fb6fe87273eba1d7ef7f61800db5bb39be1b -third_party/boringssl/src/fuzz/server_corpus/23a5452e2e2e4adea06ec37ff7ffd48e1bd07c44 -third_party/boringssl/src/fuzz/server_corpus/23f8aef528cbd45526a184bd7c930745c3ece6f5 -third_party/boringssl/src/fuzz/server_corpus/24810db206dcb2f0d1c35ecc95c2c4e1d8157160 -third_party/boringssl/src/fuzz/server_corpus/24d6ee1aed1e3fca0cecec4cd61d839e61ae483a +third_party/boringssl/src/fuzz/server_corpus/255c8ae4a52e89b51357072c73fe3c50405b2e84 third_party/boringssl/src/fuzz/server_corpus/258efd6fc31573594163cba4aab779400381cf87 +third_party/boringssl/src/fuzz/server_corpus/2667f5e7c11c095341437f1f9fa55045bfc7e149 third_party/boringssl/src/fuzz/server_corpus/26da9789a834d6f36aeca9c3acf22867bae4bc9c -third_party/boringssl/src/fuzz/server_corpus/276e79c323d0aaeeeb782f93526b6a145073b8e5 +third_party/boringssl/src/fuzz/server_corpus/275fedb0ed3c17f1a546e44a66c106a01de254b6 +third_party/boringssl/src/fuzz/server_corpus/28e3dcf99fe53bdf8564e609d12a10dddddafac1 third_party/boringssl/src/fuzz/server_corpus/29a46a6da7a15bf4958f75c78fb5bd302880c4ca -third_party/boringssl/src/fuzz/server_corpus/2aad1fa94aa81c0f2c1525795845cbac111a65d9 third_party/boringssl/src/fuzz/server_corpus/2ad910a4a5a56a235de833481ada34f126af77b0 third_party/boringssl/src/fuzz/server_corpus/2af410f165923d9f0c3768145f50cfb08494cae7 -third_party/boringssl/src/fuzz/server_corpus/2b02b3e40e2dd5abbe9cb1485e51dcf14cadc8bb -third_party/boringssl/src/fuzz/server_corpus/2b0478975d2bf828532ed8221a981372cc6a3c33 third_party/boringssl/src/fuzz/server_corpus/2c19cfcde510e4272fc1e1536678ddb7136308fd third_party/boringssl/src/fuzz/server_corpus/2d8810174cb123569ddf17eabd65bc357a5a7cd5 -third_party/boringssl/src/fuzz/server_corpus/2e49944d26d8901030aeedd456a6c7c295d07560 -third_party/boringssl/src/fuzz/server_corpus/2e4ce5a4b839f68644043d885170bce69b3a4a0b -third_party/boringssl/src/fuzz/server_corpus/2e885dc18ebb6893cdbd7b1f91d75c89fe0e44a7 +third_party/boringssl/src/fuzz/server_corpus/2da619fe8d8674ff205e676ec5fa00e634140717 third_party/boringssl/src/fuzz/server_corpus/3015d6b86f84de09f1a3911bdeea8745777e4a9f third_party/boringssl/src/fuzz/server_corpus/30990ff7250df77e8c6d543d1691830d30b10015 third_party/boringssl/src/fuzz/server_corpus/312b954a1808122eab9f0b4938a3a21106cf3df0 third_party/boringssl/src/fuzz/server_corpus/314b0c35047597104082c28c6bd32f6c06f51b6d -third_party/boringssl/src/fuzz/server_corpus/3155a3dacbc4c63aa6427bf268e11c9e41084108 third_party/boringssl/src/fuzz/server_corpus/3198a2117a106278936cecbdfe8a569452073864 third_party/boringssl/src/fuzz/server_corpus/31b5d2a041ee564477d503248f6d537933dfcaf4 third_party/boringssl/src/fuzz/server_corpus/31f052fb49fa0db222eeef09cd8521df3d0b06a9 -third_party/boringssl/src/fuzz/server_corpus/31fd20b407d28122a5be510fa0984a2bc21b9baa third_party/boringssl/src/fuzz/server_corpus/3307ffe0e0c5d13bac2c435e1ef572d44a390861 +third_party/boringssl/src/fuzz/server_corpus/33659f9e96cd7d316e762d59d319f67a6a4bb8e9 third_party/boringssl/src/fuzz/server_corpus/343afca2129b9490063a28fb2150a1ab42d252b3 -third_party/boringssl/src/fuzz/server_corpus/3459bdcd05e1ae611d5e918b753ae7a67ca53ad4 third_party/boringssl/src/fuzz/server_corpus/35463fa0278db6c1ad7a91d35d19bb9c84b2efd9 -third_party/boringssl/src/fuzz/server_corpus/3576435c2783c2227b2eb1bc89fc27c7a5ac0349 third_party/boringssl/src/fuzz/server_corpus/37aaaf6b3cf2f209bbf9096f0ee34e4c6db2e926 -third_party/boringssl/src/fuzz/server_corpus/37c16ef642ff43fac6f5db1120105ed7ce517e9f +third_party/boringssl/src/fuzz/server_corpus/390c601ab4fc7955cbc293bdfe06d4596a6a4d1e +third_party/boringssl/src/fuzz/server_corpus/39595aefed2e596791fe2059307bf6bd690deb77 third_party/boringssl/src/fuzz/server_corpus/398054b6e2550f54674eb8884c52d7d5ff6adc72 third_party/boringssl/src/fuzz/server_corpus/39b6413db9535c6e91951e2844984590a44e0350 third_party/boringssl/src/fuzz/server_corpus/3a33f19b5caa8d3376a51d722b27cadecb6f5840 +third_party/boringssl/src/fuzz/server_corpus/3ab15537883838f4a9f81fe809dacbc7740130cc third_party/boringssl/src/fuzz/server_corpus/3c2113d28f8b349605ba2ff6881d652fda8c49eb third_party/boringssl/src/fuzz/server_corpus/3c2c59725b02c9ddc1af96e7bbf889a0965d0bc6 -third_party/boringssl/src/fuzz/server_corpus/3da7a1b1c97f619226cc16d4e6c9b000cdd79647 third_party/boringssl/src/fuzz/server_corpus/3f14c41ef3c80f8a3385058551d16d480b655541 -third_party/boringssl/src/fuzz/server_corpus/3f8b70f68d1d607b11cdae111ef4c1cc29411376 third_party/boringssl/src/fuzz/server_corpus/400ecb15011e12bbfdcc9ef6ab617ca8b4570a31 -third_party/boringssl/src/fuzz/server_corpus/41602f2bc3dd880230a3a2bb77b21ba8f48ce0b9 +third_party/boringssl/src/fuzz/server_corpus/4090429348f0c2db01cb1efd531d00294619e4da +third_party/boringssl/src/fuzz/server_corpus/40c735a9649c54b781347cbdac9790dee455848e third_party/boringssl/src/fuzz/server_corpus/4164c47852dfd9d3e60a09ea9319650873d78988 third_party/boringssl/src/fuzz/server_corpus/418f7b53c578f63d0a081eaab3f33a6d10859b79 third_party/boringssl/src/fuzz/server_corpus/42870087ca8b89d7b0eebfa61581434de8eee78d third_party/boringssl/src/fuzz/server_corpus/45114b337620aff160eb1b642ab9773a05ea24e1 -third_party/boringssl/src/fuzz/server_corpus/456d75147098287eb74fec66c84301c2a915b95d third_party/boringssl/src/fuzz/server_corpus/45c1ae2fc5d8c68a0190992dee644c22b1534256 +third_party/boringssl/src/fuzz/server_corpus/45cccbeb29e86d64fd30d806755d627534bdd286 +third_party/boringssl/src/fuzz/server_corpus/45e000e0ea249ebe9e9980d49db75f75ddb98be2 third_party/boringssl/src/fuzz/server_corpus/45fba4e9d60ee8fb13fb046b5cb91f6669e8fbf4 -third_party/boringssl/src/fuzz/server_corpus/4715f52230a51dc8556ee980b9569f2b1294ff7d third_party/boringssl/src/fuzz/server_corpus/474428a93a9a918d80041056823a79e63f4c7b0e third_party/boringssl/src/fuzz/server_corpus/47b0b68cc57e0f4e49cf75d1c6031e110b168bfb third_party/boringssl/src/fuzz/server_corpus/47ffa6e724b3af0681a543eeb0af9eb0d225b2c5 -third_party/boringssl/src/fuzz/server_corpus/482ba8c99cd2b9adf5e50e3485f176fd925f4671 third_party/boringssl/src/fuzz/server_corpus/484c8136bc326bc3966c6365cf38a5e5520848c1 -third_party/boringssl/src/fuzz/server_corpus/487cf4c37ee8fb104019a3c7c65b7a691be01591 third_party/boringssl/src/fuzz/server_corpus/4886592053943c4d4fab906aa2eee87848fcd212 third_party/boringssl/src/fuzz/server_corpus/488f4e02dc2a4ea43de53272a92b86edd6dd1b3e -third_party/boringssl/src/fuzz/server_corpus/48c76a417c2803c9e2306e524c36c98da1f06169 third_party/boringssl/src/fuzz/server_corpus/4920ebd714784a0bbf4d794ee0ea20b8b7d80886 third_party/boringssl/src/fuzz/server_corpus/498115acb4d792dd725f5bc02a4e2d2d7748d7ac third_party/boringssl/src/fuzz/server_corpus/4b054ec1dc21a8fe7e1f828f32f88b4b298b6183 +third_party/boringssl/src/fuzz/server_corpus/4bbe7e0a04b6ff5acdd53c924bd65843c2681025 third_party/boringssl/src/fuzz/server_corpus/4bc45d8c12b4dc50f4448f56fa7c336b4c32921b third_party/boringssl/src/fuzz/server_corpus/4bc5a2435f377cae5bf7653e2fcb653f31cc4be0 -third_party/boringssl/src/fuzz/server_corpus/4bd1ed109588a8de70ac51a6ca890563c7425ee3 third_party/boringssl/src/fuzz/server_corpus/4c4b741618b1d69016a19e6853d34063d3ed220f +third_party/boringssl/src/fuzz/server_corpus/4cbb0d7e7212ca0685f6e4221c77fb2e097dcd60 third_party/boringssl/src/fuzz/server_corpus/4ceea9ed5a2de154cb0cd38a2e6e13b794513eea -third_party/boringssl/src/fuzz/server_corpus/4d2f6e562d9127508495d8f94a53210ac9fae6d8 -third_party/boringssl/src/fuzz/server_corpus/4d806bc59ebc6394f08afe63c02e14c12c7ef490 -third_party/boringssl/src/fuzz/server_corpus/4d88a384ebe2acf818f7180293299fe592f02b95 third_party/boringssl/src/fuzz/server_corpus/4d8af438375933ff7e8b92b3d038887196d353d5 +third_party/boringssl/src/fuzz/server_corpus/4d98ff17e2fa659fa5d8b7bfcc25db09e89d3201 third_party/boringssl/src/fuzz/server_corpus/4dd3f7b16a6f20a7f055b74f46e9c2eb48b056f2 third_party/boringssl/src/fuzz/server_corpus/4e119f1a0cd9825ea21ae35601d29ec3497a26de -third_party/boringssl/src/fuzz/server_corpus/4e5e83cfcf8974049f923ab7fdd68867be425ca6 -third_party/boringssl/src/fuzz/server_corpus/4f1724f64b36b926fa61b472b22d0ac1246ea7b4 -third_party/boringssl/src/fuzz/server_corpus/4f75a9225792899a85c834eb06386390f7f5a516 -third_party/boringssl/src/fuzz/server_corpus/4f87ebc3beba94a88a243a422c6440b151e514fa -third_party/boringssl/src/fuzz/server_corpus/4fb20f69fbf7ddc2a4e759f793d4d27d5e5fdee8 -third_party/boringssl/src/fuzz/server_corpus/501378352f97a568fa130ff2f311dc9c6ed38247 +third_party/boringssl/src/fuzz/server_corpus/4f9ecb1439131ac6b96a32a1814f51b9a366b46b third_party/boringssl/src/fuzz/server_corpus/501acf6f5bc1ff3f3cc40850b12863b5d9494ded third_party/boringssl/src/fuzz/server_corpus/50941592691c0b7538d29de114992c7f7b2109e8 third_party/boringssl/src/fuzz/server_corpus/50bb99de00f57b41ee4804711e240d7c24c9274e third_party/boringssl/src/fuzz/server_corpus/515869de2859e3d928e49c07250ec97361a8b048 -third_party/boringssl/src/fuzz/server_corpus/518809d93dc5b0711e5fc75421500c3f3e5f9f84 third_party/boringssl/src/fuzz/server_corpus/527396c34e64984be7242af28d395fc695803193 third_party/boringssl/src/fuzz/server_corpus/52becc42a710929d52b5665dcc4a16902465b27c -third_party/boringssl/src/fuzz/server_corpus/5318e5e2fa4f4f8c3ec2929dff2698b02103e40b +third_party/boringssl/src/fuzz/server_corpus/52d0f9bc2973abf688c281209bcda893e80f1da6 third_party/boringssl/src/fuzz/server_corpus/5323c5c76efc31e768f1102ca69f838c4f610f17 -third_party/boringssl/src/fuzz/server_corpus/53b122bcdaf3c097787b1adcac1f55ad78fdd9e1 third_party/boringssl/src/fuzz/server_corpus/53b8d54136f323758b8512349d268c9dbc89b769 -third_party/boringssl/src/fuzz/server_corpus/53dfa7254e7ce5adc1e07fd73c754ff6899839b7 third_party/boringssl/src/fuzz/server_corpus/559ee79f321a91ee6280a09754d7a7a3ee9bfae1 +third_party/boringssl/src/fuzz/server_corpus/5730303cce68d8bb85849e3111e650841a8fa98f +third_party/boringssl/src/fuzz/server_corpus/5820360899d8e73ae9d76591598748232467a8b0 third_party/boringssl/src/fuzz/server_corpus/5899a200b4e0353f7dedefb9fea3a2643a3e07b1 third_party/boringssl/src/fuzz/server_corpus/593e021cf28b592a39cf9a89bc31a337e8fcba5b -third_party/boringssl/src/fuzz/server_corpus/59854715238489e418d3ae64a2b020a1ec756284 -third_party/boringssl/src/fuzz/server_corpus/5989ad6b613fa7e329f1dc6c064f32dd173fd96f -third_party/boringssl/src/fuzz/server_corpus/5a5dd7416c4cff2f73f9fda8fe892bce2bf42066 third_party/boringssl/src/fuzz/server_corpus/5b36b2a85ccba93f17bebfa41924d5d2da9631ef +third_party/boringssl/src/fuzz/server_corpus/5bd1c4c0dcfe8a43bc1d8c47c841194308a1c283 third_party/boringssl/src/fuzz/server_corpus/5be89060882b5a65ee59fa536ee7314ce8a58905 third_party/boringssl/src/fuzz/server_corpus/5c1e061635e7fd602b3bfdc4a0cdfa65cc5751b1 third_party/boringssl/src/fuzz/server_corpus/5c9b1f2ec7d6401f040330330ed47e7101fd86fc -third_party/boringssl/src/fuzz/server_corpus/5cea9822085b20134b978e95bc9c4408052e2860 -third_party/boringssl/src/fuzz/server_corpus/5d00fd2f4434ff067eb7b372c6389512bb4c4a59 +third_party/boringssl/src/fuzz/server_corpus/5cfb3341a78b59db4d3951fd5233c0be7e5e2727 third_party/boringssl/src/fuzz/server_corpus/5d3bcf456e6895d50b7e7439b4badce1a95e7797 -third_party/boringssl/src/fuzz/server_corpus/5e49f6b3b6b74d69a7bd9dd065cca49d050ae4a0 -third_party/boringssl/src/fuzz/server_corpus/5f1d485807b3dc24f9f5d8533eec9c0c6a0c1de2 +third_party/boringssl/src/fuzz/server_corpus/5e8f892a9316fc1a7d113a4cafe2873b622553d3 third_party/boringssl/src/fuzz/server_corpus/60bfa18b5141d4721fa1f77161e94b92cfe5ce19 third_party/boringssl/src/fuzz/server_corpus/60c74e9a4cd0698801f0835a5d871aba55a8ebdb +third_party/boringssl/src/fuzz/server_corpus/61c4eeeb73a5e6ee54f85c15ca5c3986b5f92a3b third_party/boringssl/src/fuzz/server_corpus/620cc49467ad35727ec9e0302173952ad3ec75d7 -third_party/boringssl/src/fuzz/server_corpus/629f0ca1a9014a5236e4cbc4b393f2b6b23334aa third_party/boringssl/src/fuzz/server_corpus/6338a12bd594b3e2096ea2b183a3f193eacea0ba third_party/boringssl/src/fuzz/server_corpus/6345864b607053a8f6e4523f3b942dd96dfd7768 third_party/boringssl/src/fuzz/server_corpus/63a659a4ada4bf925f09a03981d5f6640fe43ce1 +third_party/boringssl/src/fuzz/server_corpus/63ec6c080d717d967f8f7b6acc925130f433d0a7 third_party/boringssl/src/fuzz/server_corpus/6437d9945f8fc394a076462bcdd271f0f65d73d0 third_party/boringssl/src/fuzz/server_corpus/64bdf76682c05ec367ef0ed0cb8a5740fdcfe469 -third_party/boringssl/src/fuzz/server_corpus/6551a2521c405dbbf6ebb9e96b01e2c9dd31b116 third_party/boringssl/src/fuzz/server_corpus/665882f130e0d490cd635f775d779cb4f1ad0184 +third_party/boringssl/src/fuzz/server_corpus/6683040b20b9ff29e7a8ae4fa4392d7e901b1f43 third_party/boringssl/src/fuzz/server_corpus/66d5c49ccdbdf8858a97e21a91a98b90ae8946bc third_party/boringssl/src/fuzz/server_corpus/67061eda9280b72be2ff37a8bca3c72599057301 +third_party/boringssl/src/fuzz/server_corpus/6710b2f0e09b52b3ff9cc80334793fcf08ee4b6c third_party/boringssl/src/fuzz/server_corpus/6732aa7493cfc57d2b7c57edf22999084307bc00 third_party/boringssl/src/fuzz/server_corpus/67a04126aa0949fae1a2060a6f719ffa14384fc7 +third_party/boringssl/src/fuzz/server_corpus/6837d610178351794416bfd7e61a3e6e122c79d6 third_party/boringssl/src/fuzz/server_corpus/68ccbbf7037575019290a88ca120e37fd38c314a +third_party/boringssl/src/fuzz/server_corpus/690473ac05992f2261a0ca66dbb43da6e4561681 third_party/boringssl/src/fuzz/server_corpus/69bd5142894b008f0a5a56396be56b6a02e0e27e +third_party/boringssl/src/fuzz/server_corpus/69d9a21d14e73fb4996985df5b8d01ea16e8b44b third_party/boringssl/src/fuzz/server_corpus/6a8d0acbcbf53ed119d50eb88bbf5c71c1f70bdf -third_party/boringssl/src/fuzz/server_corpus/6b00d2a56c18e832ae3ad8642230c18c1827b513 +third_party/boringssl/src/fuzz/server_corpus/6b6cf1c00f065ae55587fb2f38f00eb322b56d8c third_party/boringssl/src/fuzz/server_corpus/6b9a3d316c769c22c32487004d02f0a45251ecde +third_party/boringssl/src/fuzz/server_corpus/6bb5ba6fa61575c5f18fd3e4b28a78b6f89e2f69 third_party/boringssl/src/fuzz/server_corpus/6be9a95d72f81c0e499ddc1562c9eb3bf3dd9659 -third_party/boringssl/src/fuzz/server_corpus/6c0a817faeb1668f737cccd43849c5212f8c845f -third_party/boringssl/src/fuzz/server_corpus/6c12eda0978611ceec94c842a223e08f358b53e2 +third_party/boringssl/src/fuzz/server_corpus/6c62f9331d90b104393e94eb6595d25422a2d666 third_party/boringssl/src/fuzz/server_corpus/6d44a2f92ec3c6662cbe8460bad9f84a280afef5 -third_party/boringssl/src/fuzz/server_corpus/6e300a6dcf839041d04b3be4dc55f938080c0941 third_party/boringssl/src/fuzz/server_corpus/6e488e411bde2c15350a977c7afe2111fb6bcdf3 -third_party/boringssl/src/fuzz/server_corpus/6f195a98af89e5029efee085bc15ca15b46a210d -third_party/boringssl/src/fuzz/server_corpus/6f9e04071782f5ab408da6481473ed48708500ca third_party/boringssl/src/fuzz/server_corpus/7033103633833275f2148e19ea662a6b5f7f99e9 third_party/boringssl/src/fuzz/server_corpus/703c9b7ea22f9f7d7ea5342fb1b603528ea54841 -third_party/boringssl/src/fuzz/server_corpus/70d34941750fc11c60ff8fe78be6de6b65d62b74 third_party/boringssl/src/fuzz/server_corpus/7110aebc25faeb3a98f5c7493f34e8dfe7259774 third_party/boringssl/src/fuzz/server_corpus/7169e7607e88065b5fbcb6b934bdc5643190298e third_party/boringssl/src/fuzz/server_corpus/721f5b496439598dbcc51271dfbb6cd300468942 -third_party/boringssl/src/fuzz/server_corpus/722ab9e3b38f016b99b53ef0e958548fef235b06 third_party/boringssl/src/fuzz/server_corpus/729efe50dbbe894d685560b027e40199f0558bac -third_party/boringssl/src/fuzz/server_corpus/7365f8e9a248f7eed6128149bd0fa30aa1a0c1c5 third_party/boringssl/src/fuzz/server_corpus/747b7b4b1672fee4be1a1f5130d9debe55675648 -third_party/boringssl/src/fuzz/server_corpus/747fbf495163b9fd57f89007c068344a04cb4b3a +third_party/boringssl/src/fuzz/server_corpus/74a301735d3508bf71212ff82ed5e73d66321ecc third_party/boringssl/src/fuzz/server_corpus/75a4d4273220ff40a717e8c698c173f2238010a6 -third_party/boringssl/src/fuzz/server_corpus/75f3d3d68726f837da9670159cd7af2432053cd4 +third_party/boringssl/src/fuzz/server_corpus/76265dd42af3a01948db4435ef16cbca660de196 third_party/boringssl/src/fuzz/server_corpus/7640100d37de0a1b181e605dc6e40890244998e4 third_party/boringssl/src/fuzz/server_corpus/7678c9e32a173378bfc2c0a13c82858892a2074a third_party/boringssl/src/fuzz/server_corpus/76790ee802c4219b97471c4f4f7f6730c33ebb2f -third_party/boringssl/src/fuzz/server_corpus/767d2b34a313fc42e752ba13473c09c89c5b518c -third_party/boringssl/src/fuzz/server_corpus/7688e97925703b10939d1948231aefa9f659516e third_party/boringssl/src/fuzz/server_corpus/77493bbc3cd9b452701d2171a217a88d28a66679 third_party/boringssl/src/fuzz/server_corpus/774f5f6cd08e9b015ca7a075ccc45e020d63c78e third_party/boringssl/src/fuzz/server_corpus/776e47c61a9ef4da1e34778618740391c35c1854 third_party/boringssl/src/fuzz/server_corpus/7793a091fabba19f878feed5e77f735a37e62f0b third_party/boringssl/src/fuzz/server_corpus/78fc5d40a52c6d7627bc4c6a63a204762ce0437a -third_party/boringssl/src/fuzz/server_corpus/791c6cdce4287ddc8b4fc12034a2d3ed8f7790f7 third_party/boringssl/src/fuzz/server_corpus/7926ff84e3e3d60bbef5d8aa2b43acb8c183126c third_party/boringssl/src/fuzz/server_corpus/79505bb38c9e050c5e2a0a8275dfa0f5c95c93a0 -third_party/boringssl/src/fuzz/server_corpus/79552e2ee92e494f042c3ba2976e2691404f1ced third_party/boringssl/src/fuzz/server_corpus/7a2227a3b569158f7047d10aabe56145675036e4 third_party/boringssl/src/fuzz/server_corpus/7b20109580dafb6e311ca14a33464d3bcc159846 -third_party/boringssl/src/fuzz/server_corpus/7b82accddc71ee45666867d59286afa0c7473692 -third_party/boringssl/src/fuzz/server_corpus/7ba5b856b1cae0cbe4182d239cbf5fd3f5c1a3ba +third_party/boringssl/src/fuzz/server_corpus/7bc353d842244cb550e9c2233ab241f232330ca1 third_party/boringssl/src/fuzz/server_corpus/7bd092f7e71e1eb6575777c96780a2650ff0b0f2 -third_party/boringssl/src/fuzz/server_corpus/7c19a805d2449a8b58e4962c00f75d8392f9ecc9 +third_party/boringssl/src/fuzz/server_corpus/7c48a271f90302906ca907498614d601528dbd15 third_party/boringssl/src/fuzz/server_corpus/7d41a0bd11324b450f19acb27d710e988895db16 third_party/boringssl/src/fuzz/server_corpus/7d5bc6facf2b8f45f069763ddbeea326b443b6df third_party/boringssl/src/fuzz/server_corpus/7d6f7ac64346d6e372f7df9a088c6c6d2ebed1ce third_party/boringssl/src/fuzz/server_corpus/7e31733d514a626d2e0a85ba24c137d8f5ef4081 -third_party/boringssl/src/fuzz/server_corpus/7eccbfd75a539ce85614b639e8fdf32e404b6a8f third_party/boringssl/src/fuzz/server_corpus/7ef595d6d1d6c010e413be80e62526c57c0621f3 third_party/boringssl/src/fuzz/server_corpus/7f525a74a61a07bd0fe96372172d3a562748db25 third_party/boringssl/src/fuzz/server_corpus/7fa3e02659107717cffa607c80a8ab0926f0023a -third_party/boringssl/src/fuzz/server_corpus/809036949cdb8d3027c81d274580a22ceffd4324 third_party/boringssl/src/fuzz/server_corpus/8180f89dd6aaf304490d3381ce9e696f605b6feb third_party/boringssl/src/fuzz/server_corpus/81c7a3f820923de6af1ce58a251390a03e59b002 third_party/boringssl/src/fuzz/server_corpus/81ecee1e06d345b7988442e3504955bd80809671 third_party/boringssl/src/fuzz/server_corpus/8282e7fd6d04096672f0785ef14e10bf3851f457 third_party/boringssl/src/fuzz/server_corpus/83050fd71fdffad5521d713a11e2e274974f4e69 third_party/boringssl/src/fuzz/server_corpus/840ce4b082a6762b66d6284e981e0e9f29abd211 -third_party/boringssl/src/fuzz/server_corpus/84fa3866724973634e0e7108a63b9d8d1b76bf7a +third_party/boringssl/src/fuzz/server_corpus/8510d641d2b8d753cfb40cf300b256d3240563b4 third_party/boringssl/src/fuzz/server_corpus/85370d249d65aa2a98720457d685ecb6d24bc27d -third_party/boringssl/src/fuzz/server_corpus/85ab0aa26ce8f16bf0494f357c1e0b21dae1f70e +third_party/boringssl/src/fuzz/server_corpus/864d20a6fae78067162f5ec2a2bdd8cf7a536aa0 third_party/boringssl/src/fuzz/server_corpus/86720ec3facce350e9fc5cdd7b968b95c4a3562a third_party/boringssl/src/fuzz/server_corpus/86f2df0d0bdddb98cb6c16bf6e467be212f9e5ae -third_party/boringssl/src/fuzz/server_corpus/879d920357500932ef085f4e93b8bc2d8d9315c5 -third_party/boringssl/src/fuzz/server_corpus/8803f37fad4a1621612e01a5c07f302d7ad8ac0e -third_party/boringssl/src/fuzz/server_corpus/88a4697cf81eca73ff4fd3f8356dd76c63b3148c -third_party/boringssl/src/fuzz/server_corpus/88df86958f0edc98131dfd00e85463cbae9f8e9e +third_party/boringssl/src/fuzz/server_corpus/883270c8f4101a569757b7a7955d8f0617098eaf +third_party/boringssl/src/fuzz/server_corpus/88fbadaa4011de66b7de55d7f1a5ac92f7f9ad5e third_party/boringssl/src/fuzz/server_corpus/8992056e63812be6fcc096bc9cd77158c18c7e96 third_party/boringssl/src/fuzz/server_corpus/8a4a09d74a76f733d734f62d724772b3e63fde70 third_party/boringssl/src/fuzz/server_corpus/8a712e268ce3db47e079a7dfa138a0426a2a6b8d third_party/boringssl/src/fuzz/server_corpus/8b0a71b1363b083de1149e2a809b86ddd062dfb2 third_party/boringssl/src/fuzz/server_corpus/8b5a38a077d8c216a06bf14d2feae08ad29a3bd4 third_party/boringssl/src/fuzz/server_corpus/8b6b4f3686f36f33a8cd9f0bf6d720d157fdee38 +third_party/boringssl/src/fuzz/server_corpus/8b9120fd271c1a49f258a6f9aee70580dd5771ab third_party/boringssl/src/fuzz/server_corpus/8bf41d8b3808360285ca461d0d86843ab50dd60c -third_party/boringssl/src/fuzz/server_corpus/8c3f9e5496e809c487195e4065092b8a06f44055 third_party/boringssl/src/fuzz/server_corpus/8c4a1f8f0dcffd3016b240da8ba969ea1f42f2be third_party/boringssl/src/fuzz/server_corpus/8c8b05830795351152c78f25810381ed9e0dbef9 third_party/boringssl/src/fuzz/server_corpus/8cbb00a724255fbcc73fe415583d60d4b5d1d04e third_party/boringssl/src/fuzz/server_corpus/8cc9ef63fea6954c9af8416005525db090419cee third_party/boringssl/src/fuzz/server_corpus/8d8f2fd03fba3be4dc89b313c4cccc0e1ce8c46f third_party/boringssl/src/fuzz/server_corpus/8df729102a2d35ebc97ad212890fd51529f6dcda -third_party/boringssl/src/fuzz/server_corpus/8e4c1b30abe7151a31e31bec48149bfbcf21ada1 -third_party/boringssl/src/fuzz/server_corpus/8f68ab52d7fd374536f9efe7a05509a05e821d95 +third_party/boringssl/src/fuzz/server_corpus/8e108c529cb9c3ad290eeca8d5b1c4e011c3ccab third_party/boringssl/src/fuzz/server_corpus/8fb2be0735f1517db41588127f086e50cb555143 +third_party/boringssl/src/fuzz/server_corpus/90ad5fae798d7221f8b66f7baaa0750c66c750e4 third_party/boringssl/src/fuzz/server_corpus/90e16df53b78e5471b72e9a196ab35db4deed341 third_party/boringssl/src/fuzz/server_corpus/9136e4d20a8420b2ed4d459ae1942ef50fdf8052 third_party/boringssl/src/fuzz/server_corpus/9155f25db605d301d5eeff5ab7973f8cf539bc4f third_party/boringssl/src/fuzz/server_corpus/91be88a16cd8e9e863822788703afb5461276fa0 -third_party/boringssl/src/fuzz/server_corpus/91d0aac46247fe414439cbd7ba43fab7996c2989 +third_party/boringssl/src/fuzz/server_corpus/9246ffd4626557c6968ceb5672af00a2f906dfb6 third_party/boringssl/src/fuzz/server_corpus/929ff17e78d77731f2265da58028fde629f10bb9 -third_party/boringssl/src/fuzz/server_corpus/92d96391d0d8744c29e705487976f8d1cd9949f9 third_party/boringssl/src/fuzz/server_corpus/92d9a1b4346215d3410275cdd279b01bead7d5ec -third_party/boringssl/src/fuzz/server_corpus/9316e30ca5fbb124d91cf457049988af36435758 -third_party/boringssl/src/fuzz/server_corpus/935136138eb10c635f9fd0c3be8f9f8011ad6f1b third_party/boringssl/src/fuzz/server_corpus/9366ef809db64526e9f47282d6bb767ebc1a2351 third_party/boringssl/src/fuzz/server_corpus/93a74b8c6fdc3d536bdf2f6c716b4689f6a2d6d9 -third_party/boringssl/src/fuzz/server_corpus/93d787b0df610a7a1166716a5be2daa7891963d4 +third_party/boringssl/src/fuzz/server_corpus/94b4484c87b0365807afe0b4bc5598c9ddb4e96a +third_party/boringssl/src/fuzz/server_corpus/95750ba3b5c3c40b333585b313fc7d3d2b4c714f third_party/boringssl/src/fuzz/server_corpus/959c1f4abfcbb7e3bbb3375db6fb7e869f3e72ad third_party/boringssl/src/fuzz/server_corpus/9623746829a65d542851478dba5e9ea5fc60b664 -third_party/boringssl/src/fuzz/server_corpus/96d93d1fb471f6d03f56ec362e19d76e429888c4 -third_party/boringssl/src/fuzz/server_corpus/9743a8d5f3d4ae3266e2c8db8c1a65e06fd2b3b2 third_party/boringssl/src/fuzz/server_corpus/97e95b4bfc5504e79927a932c4b4fb43e67d8c14 third_party/boringssl/src/fuzz/server_corpus/97f63639b6cbc864df541cb80f26232b78a4e7b8 third_party/boringssl/src/fuzz/server_corpus/985788a281c53ea9c227f421fb1c430526cb94b6 -third_party/boringssl/src/fuzz/server_corpus/98898dbdb84fb1bb5d0efc0f9895280a8607bb57 +third_party/boringssl/src/fuzz/server_corpus/987af5e5517bfd3e684245e114635054ed16c945 third_party/boringssl/src/fuzz/server_corpus/989493fc889dbfd224e01105e07bc8b5c587b9cb third_party/boringssl/src/fuzz/server_corpus/99363ce912a4788d6bf8a5af286c9575c15e61e1 third_party/boringssl/src/fuzz/server_corpus/9981e7a43c6d35b6e5c853057ca795a848182a36 -third_party/boringssl/src/fuzz/server_corpus/9a57032e96e9cfa71c323591edc105a1d2e58ae6 +third_party/boringssl/src/fuzz/server_corpus/9b8fcdfaf0025174fbbb7e7b2491fcb4b4721633 +third_party/boringssl/src/fuzz/server_corpus/9bb39094cd40cd12d332450fb9b458cf7b048006 third_party/boringssl/src/fuzz/server_corpus/9be577c18aab8a69511c298dc2941b9b1bfbf92a third_party/boringssl/src/fuzz/server_corpus/9c61299a2c8db8b9c3b5c52b7193270e29f6ec77 third_party/boringssl/src/fuzz/server_corpus/9cb5d0216b08919b8db0cd32c969bc3e089c292b third_party/boringssl/src/fuzz/server_corpus/9cc9ed7d63b98732feb7ed2711f22de73ec28e2e third_party/boringssl/src/fuzz/server_corpus/9d39a6c74b932fa6952c4bc557ef48f3d7b01a6e +third_party/boringssl/src/fuzz/server_corpus/9d4d74d74f34bb8f0c59680cef2d2ab3ec2bc8ad +third_party/boringssl/src/fuzz/server_corpus/9e53f6d9c345ea784aa249c13e7772c0629c655f third_party/boringssl/src/fuzz/server_corpus/9e6a3a05b250d3733c35c39bd80a101374a7a33e third_party/boringssl/src/fuzz/server_corpus/9eb764534f27c0ec431288ec168cb0d1bc1dc79c third_party/boringssl/src/fuzz/server_corpus/9f032fe134e8df722ffb7935e1c04c290a4ad464 +third_party/boringssl/src/fuzz/server_corpus/9f84e77cb025b3436079ec9daae72916e7434e5b third_party/boringssl/src/fuzz/server_corpus/9fb64b2073ee0c8eb87752eff64134418d4d567e -third_party/boringssl/src/fuzz/server_corpus/9fbcc37e0b2c88f45cbf8d862fee4d521ff812ae third_party/boringssl/src/fuzz/server_corpus/a0eecfd80ca2bba0a53a43a33aa0d561a60d93a6 -third_party/boringssl/src/fuzz/server_corpus/a156493c5d1a28cbeffa83cffcb267174bda5f1f -third_party/boringssl/src/fuzz/server_corpus/a197fe558d4d730580c40438806d47f44b3853ca third_party/boringssl/src/fuzz/server_corpus/a2bfe9f3118afd8712d87d10a3d80956977a6550 -third_party/boringssl/src/fuzz/server_corpus/a35349f251678a462f82314507c8491a810a1c83 third_party/boringssl/src/fuzz/server_corpus/a4453bdbd5ce958f3d26dc05a1607aa7be0f617e third_party/boringssl/src/fuzz/server_corpus/a4596413a1bb15cbc9b05b2c339e6db2b1c272f0 -third_party/boringssl/src/fuzz/server_corpus/a4ea9e9045c74f619402f5324cf26a516e960812 +third_party/boringssl/src/fuzz/server_corpus/a4d2d8301db257e123940ed0c4cd658d4eb95c5a third_party/boringssl/src/fuzz/server_corpus/a57552d5fc0489e540e6b1bfaa34c9488c81cd7c third_party/boringssl/src/fuzz/server_corpus/a5772937b03b06bc87f196a2965f18cc61ec5c15 third_party/boringssl/src/fuzz/server_corpus/a5a17ae1765b5bd69e444cd8aee9b04fca385d1d -third_party/boringssl/src/fuzz/server_corpus/a6425d296d72f805dd1ce9d8724f69ca504f939b +third_party/boringssl/src/fuzz/server_corpus/a5ae4b73bde6b32db71bc9c3ccc0113971024a4a +third_party/boringssl/src/fuzz/server_corpus/a6226969039c4442adab3a8e1eb875c80cd847bb third_party/boringssl/src/fuzz/server_corpus/a72755909c898005e518086a497b3f9bb4251525 +third_party/boringssl/src/fuzz/server_corpus/a739e2d445d18e5f8abab7b11b3f6223971675f1 third_party/boringssl/src/fuzz/server_corpus/a74644b1ae285efb0f69a425f65975d2586400aa -third_party/boringssl/src/fuzz/server_corpus/a75abed059a85f7a34513cfb078e2d488e79cd17 -third_party/boringssl/src/fuzz/server_corpus/a7b90926847536b90e1384944310abbc6a43b185 -third_party/boringssl/src/fuzz/server_corpus/a7ca6d8c9efd686a02a094a2bdb7127609dde056 -third_party/boringssl/src/fuzz/server_corpus/a7e9e77c7795581d2f35bdd5667b8b826acfb43e -third_party/boringssl/src/fuzz/server_corpus/a88a46aaa8fada55b3dd1e9bb0731075d80138d5 +third_party/boringssl/src/fuzz/server_corpus/a884770432b51fa684eef92319cecb96be224c4c third_party/boringssl/src/fuzz/server_corpus/a88c61ac8d76739c79b34337d1ed0d319017936b -third_party/boringssl/src/fuzz/server_corpus/a8d455e017ba1e2dec5901b3c73098a20de94941 third_party/boringssl/src/fuzz/server_corpus/a8d64f8f8a222c1a962e4b9ceb0fe634219ec1ea -third_party/boringssl/src/fuzz/server_corpus/a917f66c127a0765da97337ddb9795c128ac02b6 +third_party/boringssl/src/fuzz/server_corpus/ab415418afa30c3f7d747532e9bd717566e50a1b +third_party/boringssl/src/fuzz/server_corpus/acf45dea2dea8cd806a766d396be57abb706362a third_party/boringssl/src/fuzz/server_corpus/ad40b1b1ffcb134a756c84871a9b85a5af7c957f -third_party/boringssl/src/fuzz/server_corpus/ae821adb2294874bf3375ee54fedceeb7735c5a3 -third_party/boringssl/src/fuzz/server_corpus/af10f9899272808ac5fa057efc0e9f08b0e7ea35 +third_party/boringssl/src/fuzz/server_corpus/ae14a3b13cb205c5049610f3753ed8503c8d0537 +third_party/boringssl/src/fuzz/server_corpus/aea939e3797fa88ca7fc5429fcbeb9be4975ab33 third_party/boringssl/src/fuzz/server_corpus/af3cbe6c7b1914d651684d655ac8d5310b91507e third_party/boringssl/src/fuzz/server_corpus/af3d62342a25f4375294090c7b48abd52f78c27c -third_party/boringssl/src/fuzz/server_corpus/af8188cdb70b6540f8af9bc901b02ee45ff79dfa third_party/boringssl/src/fuzz/server_corpus/afd8fc0c3d43d9960784e2500466a6b1c3923fc4 third_party/boringssl/src/fuzz/server_corpus/affe702c9b06bd544496c877702b175c1d1d850c -third_party/boringssl/src/fuzz/server_corpus/b004c0e1c28ce22d30773845cf194cd107175800 third_party/boringssl/src/fuzz/server_corpus/b069a4157fbad0770a2fa2fa6054bc37f56a5879 third_party/boringssl/src/fuzz/server_corpus/b06aa07c7c9cfd7a91e83fe5bfc280f8f02a79a8 -third_party/boringssl/src/fuzz/server_corpus/b170adf993fae8eb545109d514de5cebf8a71f68 -third_party/boringssl/src/fuzz/server_corpus/b2691594b67223e5f69a396bdb7fb03587e249f2 +third_party/boringssl/src/fuzz/server_corpus/b20dbc29785d3c73d817e7405da441f9ccf8f349 third_party/boringssl/src/fuzz/server_corpus/b30899ee66cdc1ab25fc53569f8b58a2654af65d +third_party/boringssl/src/fuzz/server_corpus/b30d82203bdce303753ace31d5ce77fdc3d2ef2b third_party/boringssl/src/fuzz/server_corpus/b3a9d2948a1b064ee6094e1e67d8defdd395f986 third_party/boringssl/src/fuzz/server_corpus/b3f25ad31c75ab3828a121c76c97c51aa0faadc2 third_party/boringssl/src/fuzz/server_corpus/b44b25311bc3616f9ca46a34c1cfe170264f2454 third_party/boringssl/src/fuzz/server_corpus/b44d8b156bda86bc45b8cd14e253b346f714ed8b -third_party/boringssl/src/fuzz/server_corpus/b49eb047226ee47a11d841c0530d5ff5d945e652 +third_party/boringssl/src/fuzz/server_corpus/b4e118750bf130774c11d8caae6bbcb152291e76 third_party/boringssl/src/fuzz/server_corpus/b5a50dc15fc08a47f0dd8dc00eabdad63d6ffb11 third_party/boringssl/src/fuzz/server_corpus/b5c2324a64ea15efbe2adeeff057f5d8bf72d7f1 +third_party/boringssl/src/fuzz/server_corpus/b5c56d65fd7e5a632beb05e1eccd2ed88cfb6013 +third_party/boringssl/src/fuzz/server_corpus/b67bef23d5d6729d166902494634091aea5eb997 third_party/boringssl/src/fuzz/server_corpus/b710e9edc2af35bea6231c3bc3d2f2805886c22a -third_party/boringssl/src/fuzz/server_corpus/b76913f9524e6a9f2fffd3da7344c6c759dfb039 third_party/boringssl/src/fuzz/server_corpus/b7abd59f85e262f3998e8d7ad014c2c89d36da2e third_party/boringssl/src/fuzz/server_corpus/b93f9b79956fb8f8329723eb8101aabe14e86e75 +third_party/boringssl/src/fuzz/server_corpus/b979b4a9858a17ef0e186ef71a6a5e8db48d1048 third_party/boringssl/src/fuzz/server_corpus/b99fe43a4ea84a207a45279f9e385353270c56e7 third_party/boringssl/src/fuzz/server_corpus/b9af2107c7cda32d32c9be15d549633cfab67c9b third_party/boringssl/src/fuzz/server_corpus/ba90e6e58fa5589ebb2b5a26e8d8dd372bb5be61 third_party/boringssl/src/fuzz/server_corpus/ba95d3aec06836bd2f168dc0db745c2ba8048c57 third_party/boringssl/src/fuzz/server_corpus/ba981e85fea1397dfe46f98d286f7ca0ccd1975a -third_party/boringssl/src/fuzz/server_corpus/baccc3d7807b04933f187bc3d4ab22783c3f5091 -third_party/boringssl/src/fuzz/server_corpus/bae264bd65d86a1c62c6f09857513967d6b66374 -third_party/boringssl/src/fuzz/server_corpus/bb00b71eb3195f39bf32599dcc6711ba31ae351d -third_party/boringssl/src/fuzz/server_corpus/bb10cb81dc5cd1fad07c6258aeed536fa384a30d third_party/boringssl/src/fuzz/server_corpus/bb7c210cf8bbf1dbdfb781af35473180354a93cf third_party/boringssl/src/fuzz/server_corpus/bb86f476625e7917d0d023526fd72b033392969a +third_party/boringssl/src/fuzz/server_corpus/bbe4a809e5f743a7519db1bc1df6617ebb19e4ed third_party/boringssl/src/fuzz/server_corpus/bc4e67a0af6c1ecc3ff2d800a70d7f98325dbf53 third_party/boringssl/src/fuzz/server_corpus/bc6bd4081663dd28da74b1691617c140e3791fed -third_party/boringssl/src/fuzz/server_corpus/bcae5f9d60bc1b48855277200dec86577e3af807 third_party/boringssl/src/fuzz/server_corpus/bcebeecf3d888d862bec44e0ffa04a4696f6799e -third_party/boringssl/src/fuzz/server_corpus/be6f69987fbda6c9fc7c7323abf1601002635862 third_party/boringssl/src/fuzz/server_corpus/bf6ba4ae326c7eaf4f4c78c1597f729f1bef8cec -third_party/boringssl/src/fuzz/server_corpus/bf9228cc521befc09788baa2f3fcbf706d23d723 +third_party/boringssl/src/fuzz/server_corpus/bf790d7bdd7abd57acc6016b4daaa84226320088 third_party/boringssl/src/fuzz/server_corpus/bf92b35f52e24b39046efa1394d609b88f05708a third_party/boringssl/src/fuzz/server_corpus/c08d9c1e6da141c68585da137592cc94d52d09a2 -third_party/boringssl/src/fuzz/server_corpus/c0994e91c8749dd6b219944950ff42720256d54e -third_party/boringssl/src/fuzz/server_corpus/c0dbadb42a4d01e428f39ddd28677d90bb4d0ac6 third_party/boringssl/src/fuzz/server_corpus/c1a7f86390db27e3ecde2a42d024a2668c604342 third_party/boringssl/src/fuzz/server_corpus/c1e894ad9156e24e9127f6567c1491369e14d5d0 third_party/boringssl/src/fuzz/server_corpus/c24d3cccfe8869149850d2037a7c8d7cfd267d74 -third_party/boringssl/src/fuzz/server_corpus/c27533daa4bd3caa3d8edca542026fcee50ed108 third_party/boringssl/src/fuzz/server_corpus/c28d2a04a1324308f280042bb4caf408fe092adb -third_party/boringssl/src/fuzz/server_corpus/c290119df92dd328e2709d42322632486c0cbda6 -third_party/boringssl/src/fuzz/server_corpus/c3f158ee3604555a9d38688fa513b8e19f8102ad third_party/boringssl/src/fuzz/server_corpus/c41298a30e9706d514f5bd08fbc163010b095d4f -third_party/boringssl/src/fuzz/server_corpus/c48dabd5cbc7a43e35713e127dfc357c61d10117 +third_party/boringssl/src/fuzz/server_corpus/c4c658055dada76b96b8ea05dac04e73e4485513 third_party/boringssl/src/fuzz/server_corpus/c57c035dea7729c87193c0390bc33391cf26bd5c -third_party/boringssl/src/fuzz/server_corpus/c5a5185740a449dad026678e6ebcfcd6ae6f7ef5 third_party/boringssl/src/fuzz/server_corpus/c75f5b3eb55b26d64b8fd27508f0cf26a6d94461 -third_party/boringssl/src/fuzz/server_corpus/c8020a4315ee464332d92983a8287efd7c6cec87 -third_party/boringssl/src/fuzz/server_corpus/c82f841aafcbbc063544ad0a76cbdde442d71e26 -third_party/boringssl/src/fuzz/server_corpus/c85331666ddc4e10cbfc8befa54602c8d99fc752 third_party/boringssl/src/fuzz/server_corpus/c8ca71e441e00e36e88e2d65acff1d0fcd066181 -third_party/boringssl/src/fuzz/server_corpus/c9452417c7bd22bf74302800344ee55984b32f15 -third_party/boringssl/src/fuzz/server_corpus/c988b08fb64d7e5e930d4c8f893bd3d19cf70b8a -third_party/boringssl/src/fuzz/server_corpus/ca25c3133af6e52e38ac289dfafc92041b5792dd +third_party/boringssl/src/fuzz/server_corpus/ca5b8e2b5dd8af534fc747243f26079efa80ecae third_party/boringssl/src/fuzz/server_corpus/ca875771027ff691b9befcfc704ee2820afe7306 -third_party/boringssl/src/fuzz/server_corpus/cab6b13beaf3ebc07b0166c612fcc9dc2ae4eaf1 third_party/boringssl/src/fuzz/server_corpus/cb2255588304ded0676f605a13689ff1545db9e5 -third_party/boringssl/src/fuzz/server_corpus/cb2c89968cc7ceb4c77a22a04483c0d5f977307d third_party/boringssl/src/fuzz/server_corpus/cb83c85aadbd96a4c32e70c58cd1e586b9c92640 third_party/boringssl/src/fuzz/server_corpus/cbaeccec3f7fd1d442363845e710184ed26cf24d third_party/boringssl/src/fuzz/server_corpus/cc50d207f8ddacd10b5d20037820173d94e9ba55 -third_party/boringssl/src/fuzz/server_corpus/ccd6435a50b32d93a96b391ec6e9143be31d7e30 -third_party/boringssl/src/fuzz/server_corpus/ccd8afde53f8dfd70a5d1ca4bf6135b5e4a74c83 third_party/boringssl/src/fuzz/server_corpus/ccf92abac46acb774570c04d9564cd7bf1b3cd14 third_party/boringssl/src/fuzz/server_corpus/cd2eb9a89db72f368a491630f62a66d3774aabf1 -third_party/boringssl/src/fuzz/server_corpus/cddc37d8153a5a4e8ebe9ed95cb5a8e06dd752f4 third_party/boringssl/src/fuzz/server_corpus/ce4e9e950397921c6a99656e5a96deee53f510df third_party/boringssl/src/fuzz/server_corpus/ce54f9effab2d5c94ea8d630d1fd7ea0446cefd4 third_party/boringssl/src/fuzz/server_corpus/ce6f478d3604b6e8674d2377c56010d6d5fa8e2e +third_party/boringssl/src/fuzz/server_corpus/cee43a9586930b50e66edb060513a681f7ea46e4 +third_party/boringssl/src/fuzz/server_corpus/cf253363022484709e3580386a11e2f9b61f8e2f third_party/boringssl/src/fuzz/server_corpus/cfcfd583541d14102cb3d04ea39f8b9f832b1f83 third_party/boringssl/src/fuzz/server_corpus/cfde569d073b9ecf0e0a4da7db51a299e4045e82 -third_party/boringssl/src/fuzz/server_corpus/cff1828341e39af1dda28943433d507705e816b6 +third_party/boringssl/src/fuzz/server_corpus/d009c6b86506fc126697deca38a513065f9ec8d8 third_party/boringssl/src/fuzz/server_corpus/d09338bb34900df890ca7e489121bee5819e3fa2 third_party/boringssl/src/fuzz/server_corpus/d14292a5b22430ac043093db568b0397efcbc3bc third_party/boringssl/src/fuzz/server_corpus/d14712c851a5f5699ecf1e95dfe9de2347c10f36 third_party/boringssl/src/fuzz/server_corpus/d1b6e3764a394b18a02aead5689cce0a3d2e5807 +third_party/boringssl/src/fuzz/server_corpus/d29a7a9e1acf30178bd5f25ef54e1ce6756bfd84 third_party/boringssl/src/fuzz/server_corpus/d2de40201797384be8b1dade0151651915f7d340 third_party/boringssl/src/fuzz/server_corpus/d2f443db467c6afce1bb8d6d2f4f62ca72a6c245 -third_party/boringssl/src/fuzz/server_corpus/d39a397b738dfa4e11a02f0360b3726bd84188ad +third_party/boringssl/src/fuzz/server_corpus/d34d9fdbdc51b40ee08818f9149d4b27a137b1ed third_party/boringssl/src/fuzz/server_corpus/d4292debd47eed78e73da03da28c5bae4b27dff2 third_party/boringssl/src/fuzz/server_corpus/d50014f4f9d15e7bc2d5230e186909ea74781cb2 -third_party/boringssl/src/fuzz/server_corpus/d582f87024b482c859bc7d1179ca022f643a15c9 -third_party/boringssl/src/fuzz/server_corpus/d66886d81726f6197636b1a42cf8561ef76f464e -third_party/boringssl/src/fuzz/server_corpus/d66c392162a64a3ae77ba74070bd416790ee5b71 +third_party/boringssl/src/fuzz/server_corpus/d58169b593ba5f03ee1422e44bedc81aaebce306 third_party/boringssl/src/fuzz/server_corpus/d6b4f65e03299671ff3ad39f2981e3f65447cde0 third_party/boringssl/src/fuzz/server_corpus/d7120f106e982db1a9d965a42a7d6800370c9966 third_party/boringssl/src/fuzz/server_corpus/d7181cdfbfd4d8296bb7252efccd2e77408808f9 third_party/boringssl/src/fuzz/server_corpus/d75e1391e52cd00852c651fa7aeaca17bf7c8aad -third_party/boringssl/src/fuzz/server_corpus/d799cd70e2e30ebd0a19071a1865794392b74aa6 +third_party/boringssl/src/fuzz/server_corpus/d76a17335a95ab7ea4f2593a2be145230de30720 third_party/boringssl/src/fuzz/server_corpus/d7df09a16cae65c64d2bbd2ef4dcdca6a4d33ba6 -third_party/boringssl/src/fuzz/server_corpus/d841866cb0362e68586d862b86170cf141345dd3 third_party/boringssl/src/fuzz/server_corpus/d8971b51391a55bc9e7b4148a0b9fcb4afc393ae third_party/boringssl/src/fuzz/server_corpus/d8975a8ab9cb6f150cd693e264b50809d7321d8d -third_party/boringssl/src/fuzz/server_corpus/d8c86d00eeab2980f95bcd04cded694f70ce3b80 third_party/boringssl/src/fuzz/server_corpus/d94a3f235821b70b992bd17b00903da283027de3 +third_party/boringssl/src/fuzz/server_corpus/d9c7749b40e6713e75fe95e4b341aa4fae759ff9 third_party/boringssl/src/fuzz/server_corpus/da27b4c7d48c40380f200b1ae505dc3069b3346a -third_party/boringssl/src/fuzz/server_corpus/da3d97e27ad1d6023638e5276c75ba3cbd99bc08 -third_party/boringssl/src/fuzz/server_corpus/dc9642f89a4a2155ca4a9dd832eab5f1adb8aa90 third_party/boringssl/src/fuzz/server_corpus/dd7914d69e864e336840594315525736d4a6d6e1 -third_party/boringssl/src/fuzz/server_corpus/deee41ebbd294f6bf3aa3e22c559740591c3bf5d -third_party/boringssl/src/fuzz/server_corpus/defbd7feee70f2221bdc54cf4257b5361a06b7e9 -third_party/boringssl/src/fuzz/server_corpus/df0423884c3de853a3263b28dbdb605c6c1686e2 -third_party/boringssl/src/fuzz/server_corpus/df86d57e8ee0b4e47803aa3e0989911fe4b1eec7 +third_party/boringssl/src/fuzz/server_corpus/de89a2353e25817fb1be09424df0f5c219931467 +third_party/boringssl/src/fuzz/server_corpus/defc6d3f0fa8ec74cbd6e845e1b871bc17a0a6f5 +third_party/boringssl/src/fuzz/server_corpus/df293fec6a1fc14eba8ebb0baaa93f9fc46d0752 third_party/boringssl/src/fuzz/server_corpus/df9c8e605cd49a6c005cf1fc16c8e4eb21df04e3 -third_party/boringssl/src/fuzz/server_corpus/e09d942084b4de501d48ce216cf9cc82166a8507 -third_party/boringssl/src/fuzz/server_corpus/e0ea37eddea3f577c63e977553c2ac4c7d507474 +third_party/boringssl/src/fuzz/server_corpus/dfa6b6a2e741bf74121c217db62cb5129e3384af +third_party/boringssl/src/fuzz/server_corpus/e0b16da929cb43696ff9d97c73e571533f3b06b8 third_party/boringssl/src/fuzz/server_corpus/e111319f587d560b0c420a54dfb785d952a9dc1f third_party/boringssl/src/fuzz/server_corpus/e1e41d2326fe0de1712b46f4a92a728a3a33142e third_party/boringssl/src/fuzz/server_corpus/e20f22acd069081dd7f58f85c6e91396090ab6fd -third_party/boringssl/src/fuzz/server_corpus/e26daf15003669859cd8019299a7daab2d7aa00a third_party/boringssl/src/fuzz/server_corpus/e26e41896f286bfb98aba3cb69f1edb4a6e6f49f -third_party/boringssl/src/fuzz/server_corpus/e27d46f5067c91b6883460cc3a3f4cbc24dc196d -third_party/boringssl/src/fuzz/server_corpus/e2c049f7522120844c7aaa5b34642b71b01dd2ce third_party/boringssl/src/fuzz/server_corpus/e37d14f9e35f103272515088a4469557fcbddfd2 -third_party/boringssl/src/fuzz/server_corpus/e56f78d7d8b9326c3af15d4773038fbf5cbcaf68 -third_party/boringssl/src/fuzz/server_corpus/e58bde090c3baec8b96afe2157568710c5ceb54d +third_party/boringssl/src/fuzz/server_corpus/e3e3df492cc9b014a621adfbc10f694c9d06ea39 +third_party/boringssl/src/fuzz/server_corpus/e4ca779155a2ac65415a30eee6a9a4aa1c07b35b +third_party/boringssl/src/fuzz/server_corpus/e73ace1647abb14054ca65e73a1fa4681281ec2b third_party/boringssl/src/fuzz/server_corpus/e78403a87254a1b5a5243f981e205c486d6585f9 -third_party/boringssl/src/fuzz/server_corpus/e7bbea874874ae787f003c50d0d8b7224684a106 +third_party/boringssl/src/fuzz/server_corpus/e78cea7f9a05fc90c211d05fd935f4e1344e0f10 third_party/boringssl/src/fuzz/server_corpus/e7c6c50fcec8ee986d9041cff7fdeb1e4d8fd4bb +third_party/boringssl/src/fuzz/server_corpus/e7ed9edf6b11bbe37fde64962396de7dcb40d840 third_party/boringssl/src/fuzz/server_corpus/e855a42f253b08e0daeb51585bbe2cb5489e4f95 -third_party/boringssl/src/fuzz/server_corpus/e88dc969752f698746204f070b1a6c8cb99b5944 -third_party/boringssl/src/fuzz/server_corpus/e8a86f4dc9b2798ab7140946099cb66aa3f7ac5f -third_party/boringssl/src/fuzz/server_corpus/e9468164373a930e9b470672ba28a14ab4bb2416 third_party/boringssl/src/fuzz/server_corpus/e9b63b2be0c99f8fff8d61d6033831544b80b034 third_party/boringssl/src/fuzz/server_corpus/ea58ac876835046ef5c0cf7fc3b5e683a7f8d039 third_party/boringssl/src/fuzz/server_corpus/ea5efcd000751127a1de0cc763c51c0b7027c375 @@ -5405,91 +5170,83 @@ third_party/boringssl/src/fuzz/server_corpus/ecb61da5ff91c73fdde0bd8627e4e41e11b third_party/boringssl/src/fuzz/server_corpus/ecd8ea0ef2684f8af1ed6b875914b12e04e173d7 third_party/boringssl/src/fuzz/server_corpus/ed41aaecc96e1de413b27f98b2981e848024396a third_party/boringssl/src/fuzz/server_corpus/eda3344b4658865e082a2339efb1555a7e382d9e -third_party/boringssl/src/fuzz/server_corpus/edbebb290cb959921bc72bf039f770849e44379e -third_party/boringssl/src/fuzz/server_corpus/ee1ac26e64b9bf714bda07fc149f59a4aa96207b third_party/boringssl/src/fuzz/server_corpus/ef2a0a2475b275254f81a6c83325c22e6a1fec92 third_party/boringssl/src/fuzz/server_corpus/ef604c1bd5f16733eb318da5edf3d5ab08cc0b66 -third_party/boringssl/src/fuzz/server_corpus/ef9e0ff4bd2aaaa9875e580fec3bdb6f79528793 third_party/boringssl/src/fuzz/server_corpus/f040ef0f3207f4b663c45d42c91605afe69284b2 -third_party/boringssl/src/fuzz/server_corpus/f0a525e9ba9281e238b84c18b14bd8ed61022059 -third_party/boringssl/src/fuzz/server_corpus/f11b72d1152856005b432a49d481130b68883439 third_party/boringssl/src/fuzz/server_corpus/f15213b8e1049fa9a327d3791fd5660932afa89b third_party/boringssl/src/fuzz/server_corpus/f191418cc7c58c111f0c5b4ca4b91d1a5b60dcbd third_party/boringssl/src/fuzz/server_corpus/f1f07a7b203a5a935bdc40c750b780663af7483e -third_party/boringssl/src/fuzz/server_corpus/f211af70d38dbc3e129b1bb6bd00bdf01c431538 third_party/boringssl/src/fuzz/server_corpus/f22cf507459734bba03b208fb9675ab47073c3a5 -third_party/boringssl/src/fuzz/server_corpus/f2eed4c59120807f2b846bf92a0c158e7f1f6cfb +third_party/boringssl/src/fuzz/server_corpus/f2c1899bbe374054a3f6c759b7958f3dd38b19d4 third_party/boringssl/src/fuzz/server_corpus/f311ba1972d80df08eb84c040e31d7e4e6b6faad +third_party/boringssl/src/fuzz/server_corpus/f316fbb397781826dc8635bd533296ec1c273369 +third_party/boringssl/src/fuzz/server_corpus/f32d0b31e0b37b48accc1686005b325df7c7cc6b third_party/boringssl/src/fuzz/server_corpus/f32d2b09eaba6e74dd1c605443af862b18e3850f third_party/boringssl/src/fuzz/server_corpus/f40f4172ec59a44082b0c57bab740ca90b2bb457 -third_party/boringssl/src/fuzz/server_corpus/f569f316652eb18f9422b2c4b9468bd0a60c5a5f +third_party/boringssl/src/fuzz/server_corpus/f4fcecd41b0af1af71f725504515d105a3e27053 third_party/boringssl/src/fuzz/server_corpus/f5842fc854d57ec46637be0816caa8ecf595e83e third_party/boringssl/src/fuzz/server_corpus/f5c28645e77a9d838e5f222e84870e478c80a6b0 -third_party/boringssl/src/fuzz/server_corpus/f623531d909acebbe37f0f54b1b92545158b1e54 third_party/boringssl/src/fuzz/server_corpus/f6764831db5a1bc8119af2f8203281db91372502 third_party/boringssl/src/fuzz/server_corpus/f6da09914ae133a89017dc2232172c9e194d8a8c third_party/boringssl/src/fuzz/server_corpus/f6fc98e74ff5dfc981e52ee8afecb0bd4f5e2e77 third_party/boringssl/src/fuzz/server_corpus/f804e850da50817af75b07194c929f1c49eb2abe -third_party/boringssl/src/fuzz/server_corpus/fa6828c35e252878bc5a5b16199e84b42d8d7151 -third_party/boringssl/src/fuzz/server_corpus/fa8cf6765a6f7f35f7b06121b00c34e61b71bf0f -third_party/boringssl/src/fuzz/server_corpus/fa9a0f58de01147fde9f434b17212a3eb53eaf45 +third_party/boringssl/src/fuzz/server_corpus/f841b5f2d360ddedb9b7d4e5c41b9d285f6c9d54 +third_party/boringssl/src/fuzz/server_corpus/f8e8bd8aa528b56d61eb577474440a432ca7f142 +third_party/boringssl/src/fuzz/server_corpus/f99ba9447996296832785087ca2016e3c0408b9a third_party/boringssl/src/fuzz/server_corpus/fb3cdc944d926c92b372f76bb93686e42f071c8a third_party/boringssl/src/fuzz/server_corpus/fb9d71db1caca5acd166c5704ad00a434542e820 -third_party/boringssl/src/fuzz/server_corpus/fbe35d601ff64cec5e12fe702017cfcbecde59a1 third_party/boringssl/src/fuzz/server_corpus/fbfd3f613f3beec7a915b95f1a2506a9014669cc third_party/boringssl/src/fuzz/server_corpus/fbffa655536dc027faf00260f0a1373a3df3056b third_party/boringssl/src/fuzz/server_corpus/fc3ad22cbf2176eca3bee53aa3d5226ee125d5e9 -third_party/boringssl/src/fuzz/server_corpus/fdd9b94701167ac1cec440f9007b3366359b4f41 third_party/boringssl/src/fuzz/server_corpus/fe134c44689bed6d44b6818bb3be2faf348d79df third_party/boringssl/src/fuzz/server_corpus/fe55c35dba128f7f155422d697382acef2e9b340 +third_party/boringssl/src/fuzz/server_corpus/fe5f32e86873260021e5029205e317a7ad1c3726 third_party/boringssl/src/fuzz/server_corpus/ff0bd5b7e18fe68699839a3d5cc1a9ff8b6b46e8 -third_party/boringssl/src/fuzz/server_corpus/ff2784b284a8814193bd282089341339ca26c92f -third_party/boringssl/src/fuzz/server_corpus/ffa8f719123e71b69381dfeecfc3ed18b4441561 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/00165d35ad7454257f838a1b584a9ae34fc07188 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/003029fb704eaf00a8d37bbb44a9ffe8eb1e9937 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/00d25fd7ea0f58eb6f4a82c851ed8a931e65dd64 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/00d91148da289b500f4f8c5bb6370a667c7e3bc1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/00eca46201fb4d32e2f4c03c57c7df1190e42ab8 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/011bafcc7b8fe7561190797295d81b5fe0e68d1b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/013005c93d2eb07b451c4b799434ada609ec9625 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/01e0cbccb0834c995ec281f2cef6bc2a74d58ad4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/035f22634e63cc269a411f33ccd2fa73b8509ece third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/03d8a3c5c91cee6f44ecf79c6b7729a9680a0489 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/048d823df4ae31da9a7eeb923bf4dce828a55d6b -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/05d44bab976a7734f025ad6ac9b32a68c98e0b64 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0615f8f9ad24b39ffa3aaee7572650080adc37d4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/06713acc57ace7f4fd70f61bb2214d7d7bddd846 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/084300d2c9db6382ac2d4fe07dfce7a00245a502 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/09331ccc9775b118d21efabcf188a22d5d5a88ae +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/06bf94598439fea7fee6bcab871b8451b934b3c3 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/07d5b3bcdcd13284acbbdc30e6052d9317c84ff5 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/08849249d3ca9a494431464a7759df0743d0b55d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/096ee834918f81d52a1377d138197c435f1e6222 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0a7a3dc72183ad078656eae0c376412b536a0db8 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0ad14ebc9369516f1887c9610a0a5bee991603ea -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0b2180982f8f8b5c12c302b72cc0770a74cc0f25 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0b7d4daa747ce6d4e04090076ed2592f33cca1f9 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0c2735e762ac33d2ad292ba4bfffebd6ca15f0a6 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0cfa43ac66de8e42efae232eca532482cf4459b0 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0ca5937df3d69bca28c17ab821698d282bebbe49 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0d3467650586d68ce881887c569b9beb26d57c48 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0dc21f7863914bf167cd2d79d42c1c7e425deb5d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0dd20a7ac3a96d3935e33ad75484255f008ad6ea third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0e18fc4efbcdfb5f38f5867f300887318e09fb6d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0e70573c236286a5ddc0353b749f94ff11860c73 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0f06699114bf00bb6cf2c63a3f5669a56367e467 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0fb8eb75e9e6754de1e5cad3a97970af9604b423 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/0fc0d891f2b05996e455fad7f8b1931dd93f3d17 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/10bda1aaab9f5500a831b5311d55e4a6fb5b22af -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/120baea5be0d469e0653bd9e4ec4d8479185c101 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/10c2fa8c6b90a3f13f203212c12839e399f10b82 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/11c91d3aa29f06d800aacbf6a388d3c02a666ff4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/12201bf41e3ab5f51e3645469cabf1e82758b488 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/123363148f8e0d45648a97caa0463986fa768cfd third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/13046cba999eb24ca290d3a51ece837488502d67 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1314921c35bcf2033155d3091e5bf87fdd7e2423 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/14a8c3a540893a052ef3dc28e28fdf6fb74a5067 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/14ab9da5432a99c56e132166b4744557987f58c7 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/14b7a10f8747f8c0b9cd3c67c9a8af64d8e52e2e +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1510a43b48f5d80f1bc3dfb9510f221933d92b07 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/15225c241c1c56fc666cd8e52ae9c666f6bc0e60 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/15615394582e333e81f95fe42ff2dc05621cedfb third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/173e637146744b65cc4acbacf9a7a67204477fa7 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1740787f54b118cf277a651512882ae3be2f588c +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/17670b2de0dcb3d630ca67072787f44fe5b7f0d6 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/179ebb3f16d124fb9338ca7ee488b01a2bcc0376 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/17bf4b6b64eb779e8575a45865dea92ea4e41087 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/189186aa5d18da887cb03d9220ee0c243edaa800 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/18c5f79500a80846e2eee71bfd69a1a89154477a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1a07d9c506d55df88ee448f743b7c2451dc3104a -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1b9cfbc3bd2d263a2132c7c84f336d3b03d06db6 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1bcbcd5bfc6648e3c940f39a60ddb925c1d7ec80 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1bf35fc7dc136793661bdeefe4388710d06c4d68 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1c1c54244d23f491016af58d563fd0b827c67fa5 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1c634714f8a6359cc53f1bc1c7a1348f39b2f9ea third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/1d08372bc0eb0ced332bd2fa03865e02b6a0f4bb @@ -5500,54 +5257,42 @@ third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2207c3136bfec2ea48f7 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2334fb59f8b4b7852c4546f36e5e3b241e5a8f04 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2600613b771d9939cef60b58d989e5d10b537ac6 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/26632c047c040ee043673c321dc7c58f7074b5b1 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2667f5e7c11c095341437f1f9fa55045bfc7e149 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2741cea11b4ef8ba9d65e97e405fbc22c1590cd7 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/281eec488f7fc04cc534e56392b69104588ace33 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/28e9dd8544f63435f3ec6ad22e50d3f8dcdfca78 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/29cd92779dde4f28241630259cc9fe5740d93bd7 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/29ecf559ee17ef8242987309b4c060d02615cea4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2a074216d0b642358b62bf76e9d26208c98b75d2 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2b6ea6d5d2e99171a71486b50a36941cdb09ad31 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2c03a22fc806bb1daa7d4d10af5e0ea1ec79c741 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2c7f972a4aabfc19d7c4ca5d5cd7ed7f2ff32009 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2de3182de7fce410c61ab8e623dfed074bc1ac6c -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2deffd9f320af740899e05a78ce2431742e91b66 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2e047b1ff15b98ac71a1b407449feedc44ddf176 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2e4ce5a4b839f68644043d885170bce69b3a4a0b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2ede02b70e97de69de384bedcec01813ca769f35 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2ef01a032ffe7ea2225a55ef60c8c82f53b30a9c third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/2fdc6d25b80e32c241c1d876ed5a92ac92c6b907 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/303c781677f4a608e65264e057afde9beede6412 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/305e89be840e6d97bfacc262b972e4fd34226803 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3087a8d6d7c20987d2f8ebbe0a19e41c56152319 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/30fde8a0b961f175c1cc83b8667d55bf5688241c third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/31b5d2a041ee564477d503248f6d537933dfcaf4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/322de7ec5c0671e0fb799996b2d7c30f7ad927bc -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/32bd1b6a8acdddaacea67adf7d803557c2d83d47 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/33ba5a975d17250f48ceaf15db26590c0602c82f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/342abffbd3a33d4b73e54c0675585fcd511f492d -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/344c11ec57fad5446ab6f3e944703711bd199eec -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3459bdcd05e1ae611d5e918b753ae7a67ca53ad4 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3489b8898ce2dfd6c128e0d0c190eda5f5c933be third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/34cb7a9f829dce65bb6dfd1b63c786e9927559b4 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/35675991b1533bca828887d2c26f26becbb4a272 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/355e40ef78a76ec023be9eda798fb668f715256b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/35ff95557bc6038f4b3866e8cf5f9529b511b51a -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/37e8466d8fad83d751ef6dc946903eaf26e53a80 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/38431c6c09453ba24df16df4321aba5ad492d7ce third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/390c601ab4fc7955cbc293bdfe06d4596a6a4d1e +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/390e069a4eb88aa19261f3c08d6dc6f34cd64b71 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3956678ffb041082462794b1fa03103d92b5cdd9 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3a120b8a4862c1bc0beb6a7d5f3fe9538af6fd80 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3a57c8638fcd0a411eea16a2393893f1bc15659b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3c5f664fd82e10a83df15830bd0ae0b66c3a3a4a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3cfac745077d5b35a20306b7370bb75a8ed81385 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3d324da734ed5f9480f251da38869f41e638d617 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3dd5219037981b2bf8fa019502c29365b1a0efa6 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3e3b173002e26fe32454cd318caffd81a8f85707 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3ebe507bd539ddcbdc3f4f184b7a5932fb3be7c1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/3ef15ff622eb48014dae41886550b46bd4a03d52 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4090bf98dca6def2fabfc03162dd432dcdca393f -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/41fb5551b0822438b42fda0a6a4ca9c777cc3bae -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/446faaa48acd8a725b8cd319b608389721261420 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4560394caa656197a2f5cb23e866836618f54102 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/45e14308164f989b1e6d3e76d7f395c3eeecbdf1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/45e6b336daa5c1b8c7576615c952e65d6141451e -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4605b71ea25bee59796e7cf30ae023264dd01bf7 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/46ff74c8d4457bf5607f1a03a66c8a6e9248d3e4 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4640f585fde74e3006d83dc5ef1fbedf3a851af3 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4739cc3bddb3c4bc835f36b9369faae530a1421a -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/483a34a61bd6e2f8295f1f95f4a1eff84f585530 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/48da54c4df6edc9191c1b8dffa5f3768ee2b4d69 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/49b45defe1fbe376e9988bf6c7eb6c1767f0425f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4b1dda0a6d4da5529a7f403ecb927a375f15ab58 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4bdf80a57a305bfd069acecd3eace0c320a40ba8 @@ -5556,35 +5301,32 @@ third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4d1562155cd8cfcfd535 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4e949b8dfd27d572f83c4776e23e4c8f71392cea third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4ead70988057a78faceb0271f1bfb8d54d7292f2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4f61f38933cdf60f77e8e5ea469322ac35dc79af +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4faea1d4439786b5b7693a147eecd098d3e32e64 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/4ff5331b2aaee6ffc04946a365e72a032dbe49ac third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/53c6bf93e6b51a489ec855c85665aa883822c0fb -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/54fd573d6dc50161bb455272220279616ef82ce3 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/55bfc18067cd2ced26a11632b1da2e4fd9c34597 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5542429dc8ed33fbdf129f49a6ec000f9fa68982 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/562d3a9f84f5304c2fe84e9cf0f522a5316ccf6c -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/57daff3af243aa9d12a507d32822eba3a8663861 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/57fcc54daeefd7daed82567feba16973cf5a49b8 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/582d68fe72bcbd8fec993d2265314e41e418a6cc third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/597dee9fac708a8ab25dc087b7b3e1033e91ef9f -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5ae65a0746e61ac1e80ce318189a12783acec9f0 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5b999164d3acd9575772ace3585b499888dffa07 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5c2e6c3c9fbf08ec43f61f7c41357ad03834c46e -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5c3305295dc774b7f398f7b690b72d8ee7033460 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5c33ebed3373526f04a1ed44bcbe67d7a170a5be third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5ca83f63ce86187b4f85ddc3354d8dcb5f55e8ca third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5d04402a860b737a6f12e8d5e86a3247f2c9444f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5d9d829821ed03338ab892d38b4479dfeeee663d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5dc2e95483cca619404397d342971162a1183a0f +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5dc8984b1217b979b44788e2492ef853c3d327ef third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5dd145b1b92c4f903e7d75b24e9b452743205e9f -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5e2b589f4a8fcb17ba34abe57119cc81d42fde44 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5e4c47195dca04f5c2e836f529fc72b14ad6da61 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5eb3f17120a852b338fc7da85f5c06df972f98ba +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5e8f892a9316fc1a7d113a4cafe2873b622553d3 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5ef8b90c3ef4ffb0e87ad987f5ce573e3650e68e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5f46dd35ce756a42da7e301b0f85df2e533cc422 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5f6cb767f1a17a7a907844b0b6d641215e75c9bc -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5fba9fb38fa47379eff05963a9f7e685d00da672 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/5fd5ddf49e27c5a198ef57ee64067cd453322c5e -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/601fc8576cab8f6e166397a67466f64650dca3b3 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/60e32d6e31df066ecf0f393014c52b788f6810ba third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/621c06cace91b7c889127922f8e97bca8af2189d -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/62d2f2782cf79c8f93d18da5ccb74c3bccca4896 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/63fc5ffb53a52285942e3cd337aa5f9d9b8a1a80 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/64282c12029323991859c7996e6d524da6471462 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6453aea20f628a3af80ef1ea907906846033f519 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6505087fb5aa7329684dddd9ade19a6eb2dfa0b2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/660d46a5e4194cd5c80bc4f5b30ca23708dc727a @@ -5592,171 +5334,162 @@ third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/66d5c49ccdbdf8858a97 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/67816ae7bf8c7c76cb2fcd60c2cea995f2f85c29 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/67f327b3644b0972cb2f27203088de22f542806d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/692d046492ca08a76883c1f23796d0171390cab6 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6951b85519614b27a3526989584ac468eba59128 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/69552170e5777c36d126f8186494d396482bc860 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/69d5bdc9600f5c0917f4bb20cabc55dbb9523006 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6a0975af8b7a281c27f1160ff66e4a05915097cf +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6a6a3bd47356e98dd2b56cec9932fcacdd9925b3 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6adf86bf945a72fcca8ef6b7bd182703c941ec58 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6ae61a26ded7a84b18cd7b86d4eaae45426979c5 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6b5967bce663d78c58d0b101713b9bf6616c5118 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6b641eec03c421c633af90cdc0b63f3f3803e40f -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6c207fd825f0d810f85cc37fc190799000316570 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6c2299722457b1c088f6e3ab34e138a089888bc8 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6c5189660ff2d76dc6207c727ab25d1bf07e299d -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6d29fc210f1c55f881e4e39f6664a3ae5f3f63be -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6d423dc7db82dae542ae3389f018ada441c4e12d -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6e90dad7682581d02e93a72431d608a5e92d84a8 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6c920e0ec78b77bb45c78827a69cab7f48a4721d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6ed5606857540bdfd8ed6451275fa53a9aad647b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/6fe8dc24d8ec42bf22760d7c8305fffb2f85b401 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/718487afa1d377f123c6756bd3251b181b0b5879 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/72bc39775c330b12b779d54e28b9b5b191ef177c -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7347c325596703800e123545a4740c885d5c57b6 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/73d4c3c6babc3f1974f789d8f8ed82f2d0d80bfb third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/74428f98f18fc8ce531931294daf291fa3c56bbf -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/747605f5fc76bebbc3e60380a666d03c34b22dcf +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/747880bf3f0c79cbbea5f60bfdc7e50b9c4fbe6b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/74a301735d3508bf71212ff82ed5e73d66321ecc +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/74f27d520c731597414a3703b398f7e184c6d787 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7589f32329e83d045c521c6ed3a70752841fb8cc -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/75d35a34e74c97e6088ecb4b948915f498546d02 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/767d2b34a313fc42e752ba13473c09c89c5b518c third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/76f8acee43cbb3c6f3b5b4cedab7aa7cd2c01215 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/77bfc78d034225c3c6b7ce851aa27570d98fa373 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/77a31aa76fb2d4ad88997e1501fe4258d7b2b2f8 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/79f12300672e99a5c9ab1babd774fc73b840ac00 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7bd0586fab95e04a78d697aafa20cd177e8a06d3 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7bee61d4d50756e29f12565f0110852d527ae850 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7c37c0063a6401aa280cc99e6b4193506ec40f09 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7d31d78d05c8bd3eb8a5f0ab654b64db5139f0be third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7e717339a399dd1ab377076e6fbd3ae53bd0533b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7f3eeea93a04a41ec32b868cfb585305a4c70b0d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/7f94ebc646e08712b492300580fd89a5cc145c0a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/80b62afd604052f368219c4ecf68cb13b5949e8e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/80cc122a9d954b130e86c0540ad4bd0d659f942e +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/813ed9703a44f82f1e78f13c7a88339d342e7753 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/81d049c54a343f18e94819709416c19c3c360a90 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/81db67833f83707bdd74ed23187daa13af539174 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/825ed8f2615a372a4284a7d7629175cd79aa938f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/82df823fc2815c79dc01a6700a7da30a2aec9f48 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/83c6f25e60fbd911ddd182dadef1b121b6be12d2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/83de936cbeff0cf860fdcfb2977d79e8475a47a1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/84db07d470de108408623e822ab8a3ac0582f61b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/850fc1e27c5289b3907ea5294c9de4b5164756cc third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/854e7723cc5226072b5b9353200431a9cca34f1c -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/857edd39345aa9bd48cd03ff86d9f32ea67528f0 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/85a132c1ac53c5886e4ccd63c2cccf90cc894eb9 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/861ea2e8344758eab9273bfe40a9c17819503143 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/86274c56c95f710d955eecf162f466e7ee48dde6 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/877acade5135a842fa32414c9de11e39e62276bd third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/879869086d669960666b14d379affcc3acedc3c7 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/87d1f49bd896d5efde039112db4ba8dd45a8bd5e -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8956976dc9691cb195edf1579660e4b7445f4f35 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/88fbadaa4011de66b7de55d7f1a5ac92f7f9ad5e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8a4a09d74a76f733d734f62d724772b3e63fde70 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8a64c67721300c82ce65b0914defd0832229add2 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8a84280f623a22d1bbc6bca4e51417acc32926b2 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8a8a2355c4cb2d786c034b69df429333616435d2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8b70c7e172fcaf65fad4f41bef000bad151bf5a4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8c34efb0d6310b86d4aac49cbe2190a4ab209f17 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8c842932b681f4386132b3a8b433d812c81423be third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8d47aab371cd044de4cbf5558500f317a89627aa -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8dc658dc5da5ef7c0415876644e45c937b215d62 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8e341d772d614812523d3e687ac3a17ceab16feb -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8e5e19635dd811fdf8944d060029497c07f9cd24 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8ed262954460184b66768cff95bce63659e4f4be +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8eb4f628da35d5bdd81e927d30d1143e9a05d35b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/8ee0afa8c0e05598dca3d95259d0b3e32cf250d0 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9066eaf6240174e8757595577bfa99d6e8b6c47b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/91187d13c0deebb8ac9a3f6f8aac183e37b74ad6 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9140e4374589f1e33ead6b412b588eaf5e8937b9 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/91429029b2a72dd8a669720e5744413e5885613f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/920eae0f62f4e7e9315ec2c04133d6f7a9b5d94b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/931b5d7f4983bab41dd902906113b3747fa5ec1c third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/93414030e49fca198d8f7260e62a469f4be07376 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/93510e2ab35de8bf1abc428322ffc6cae2c7ad71 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/93dc116eb60dae606d75755eaeea686943107395 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/93e68c7a75c9d5f77c9c91909f393a04354ef44a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9424c86bd10ed78194e92bb8edc25a8670a05627 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9489ab5adbb97ee605d3a85762347f259076616e +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/94b4484c87b0365807afe0b4bc5598c9ddb4e96a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/96888d5a94877b6d4093579bc68f3518ce678aff -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/96d93d1fb471f6d03f56ec362e19d76e429888c4 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/96cf9ac5a5329119fde7d8efa058223b41d65830 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/97b2325dabc3fbfef163ebc827fea0d503165e25 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9811a62726742b957e45b31b4ac7813b69256cde -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/993dbc187549d1bc22f56eac948758e3dce30509 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9a0f0c56e7bf5bd3421a2e670da9ef5fe154580a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9a52d6c625bd1ce6577ef0fdf5adfd51b80ef82c third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9a89f32236e1d39574b42f42194c35ba12fa30c9 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9b8fcdfaf0025174fbbb7e7b2491fcb4b4721633 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9c11aff55dbbe46980464c19ad650ad23ddbd07b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9e106697afe953d3030f4fa52e73df337456a3a9 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9e983348e6f7672786ebe551eb769e8f4da8d8f0 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9f692c31e419c3927b38c2afcfea8cce5327b7b9 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9f84e77cb025b3436079ec9daae72916e7434e5b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/9fbeef7c7535503e339599c5ea9399bfe08e6c72 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a1c0be5740d5410c8b35639b2bdd033f208168a9 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a1fbaaac6d6560a1f3c4ca79062b6ace5c67e6cd -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a426fb51b57cb4b16157f2645109917c4c312f8d +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a21008e6b93fd3b1449d7a80de0fd023bc5a1a84 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a238050293da407ac0cec2a751460de4cf79c8d7 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a43234784ebe06949d5d737653561af04293a868 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a449b4aeccf23df236436a91fed256d998f6a58d +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a4d2d8301db257e123940ed0c4cd658d4eb95c5a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a529c154f6189646316d626751bfbcba097d94db +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a57010277b9edd04d5fe767a869cb405e143b2aa third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a5772937b03b06bc87f196a2965f18cc61ec5c15 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a5a17ae1765b5bd69e444cd8aee9b04fca385d1d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a6e5bfddcb943a4bfa3b8824a9acdc259521bccf third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a74aa56414c27a2ea0e9c29932679433e91c11c4 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a884770432b51fa684eef92319cecb96be224c4c third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/a959ad16ac1f26798a4bab4fe5dcc0df9d28b431 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/aa31df42a5d6865fc19a31ddad7b5f2822ff0f5e -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/aa97847c4cbef9aee87ccccb0d2cf891ccff29d1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/aaed60237623c0fdbb3987c293349deae597ac15 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ab0f80d33745746477ab94d527af35d0b4ae03a4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ab6845efd4c4de05cb349cfd1d2ad5edd1bae8ad -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ac2c7334f02a6279ea627c7dadba5e597c78f506 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ad0d866d3258b2c3013368472171d86470621053 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/af07103d65da8aa1443747206be70d6e661c8359 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/af8d9905d8361d3d52ce3b9a7ec948c317b64950 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/afa45fd8f632fbdbeee6375d75ccc24ea2e30b18 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/afc79c287b8a0d903b27ed1e5784224c75b6b7f2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b12157b8eea1999f90129d230ce62c04e5aa3d75 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b131ca60aa864d46701aac463bd9b48ed12474db -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b1c49839dbfc56fe8f11af88659bdb1b9541a33d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b1f0922757222a821b46f1651a929f32d6d15a1d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b22f2c8c0c4af85a453b76a220bcf5e602305ba2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b30899ee66cdc1ab25fc53569f8b58a2654af65d -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b3cf1645fd110513322072ef38181bb9f1b9b919 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b44b25311bc3616f9ca46a34c1cfe170264f2454 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b5d9e59406e3389b359690a82547c069a49317b1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b659359f3cf3802af64e4eb666012e3ce7ff17bc third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b6923eb75fd44429a654733e3a38860abb7378b9 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b6cb85ea4c88df39eca9ec153ac4f1ce4d837390 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b6d09b9ab245323fd1991b3d7cc69ef3127b3b69 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b73b25c98ffd9c07a6a7452e27ec03a1a519cd47 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b753d835a4b628d39ccecf4ae5e8dcba3e145aa0 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b78510b3423dae1bbcf682361dd490278ac9868e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/b89f724afb6cad6ae38f5f27f59dfe3af65e6826 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ba3775f513ea972e0baa17c247da85706064d873 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/baab8fc4f16ae8b4cd1b0bd9939beae4f40f023c -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/baaed6a6d83db319e1f9a14989a191d14abd6e38 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bb006a592d35fa5cd5045d459584a44b25100c48 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bb221430c39a3f184aa68096523d440ffce6b9fb third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bba16c984190dfd374d3822cf8eb0904012ae388 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bc3d51b3cd2c1630bfec28e6e2010b8a0b74253c +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bd0b8cc8c1c25348ab1ad2cd7b43ea2a903ca2e9 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bd44b1a9e99f819110f901c2862527d7cb73d0d3 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/be6481546ffe3b5d5cdec66caf529cee9a341422 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bf4c2260f34e3ddbe0f4b31b8fe1785fd714b4ae third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bf9228cc521befc09788baa2f3fcbf706d23d723 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/bf97e9ff25b29fe105079e6d08b0f4586c4e6373 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c0d71cd96b38be4e46dfe4273119ee1d4579e9ce -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c21bce5fc1e08bf4019025c38c06c2db37eff877 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c1c1ef9aed717efc942fb8b33049f39c7b98d938 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c1f19dda01aaa15cf0e1abd17a7d41a0862ea3d3 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c26747e301b8c1810c0799c6344d5edf136405b1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c2c7e678c5d3fb0ea149d7bf4db7e78656cbb87e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c3431a06f4342fe5ad23f4b45c4ddaa59c18ad4f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c349dbdf689b7afda2cef864284a189e350372d2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c36cb7e24270125a95ef26167b03817d1ac03ab4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c3f7e0f839ae87c47ca5c5cc4d887f17a5775785 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c41298a30e9706d514f5bd08fbc163010b095d4f +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c49a5c3a0245dcae4cb95badcd9e984e69f58e47 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c57c035dea7729c87193c0390bc33391cf26bd5c third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c59a81a30227ab9d800e7b6372433a03b58198d4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c6c48658dbe7d3aa286c31684309396127239acd third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c6db3531bc1a3f337177c7b9c8956c2caa149f63 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/c8de4fd53ddf5ffd09cee29fb0341b9ca8dc103a +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ca0b25a5a3d3a0835acbb3ee88c8e506ed49e116 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ca5b8e2b5dd8af534fc747243f26079efa80ecae third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ca825493197ebb172424e187c732773d652bb96b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/cae2e0f7d7bc254a7a48a4dade13884a886b3efc -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ccd8afde53f8dfd70a5d1ca4bf6135b5e4a74c83 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/cce1732fc201c9bc22d69b5fc1c7507390262d6a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/cd2eb9a89db72f368a491630f62a66d3774aabf1 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/cd5bf407f8f9f51006ea76520a5d0c7bddf02a6d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/cde474147ce39d8247b84cf20d5b0aa18b1c4ef3 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/cee89d890cefd0ac9c2c014c0de0bb7f5863b702 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d00010705f1f63139f3af7e57edeaa94b4d68c83 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d009c6b86506fc126697deca38a513065f9ec8d8 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d04c33eea05174efbd1dedba904fc5a486c628fb third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d174b16da23fd30f9a003a64af4a0f07166acbca third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d1da94319844855e0789d79a18d18a31123da0d7 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d1e86e2137abc7e4723bd645cbd28998c1eb1bc0 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d2a0dcad18e0f8b3e2bf66d614d07e055305fba1 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d3859b5bedafee92bbd14acaf35204e50f125e61 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d40842964ab295b98848ea91e6074d8284f2a661 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d47821a1fc5b59adaff1f06ec66a23be3bc94ec5 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d4a69d26ac0d4456ca3ee7857d01f78637e02871 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d4c66bce1427e265b105df961578e342721dd53b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d682ef4e378c6f4a3b10410e695f8cdb199742fa third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d7c0581e009c8e4bb05263c28081918aede18f36 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d84b68c6fce1c78b0dfe377d7e51fc4787857186 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d84c09e68396d1571fce8fbdc264b911c5018bd5 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/d85d8f50b15e8c3c899046c75c20549fe8d52d9f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/da27b4c7d48c40380f200b1ae505dc3069b3346a +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/da61943bd6e78349cdb23b955ac1e812eb39c76f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/dae415bc802a59b1910dd2652ef247ca5d87a0e2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/db75957591552de7dcd25ae217a2fa24ae012d51 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/de0e4097027d9a20b4fe006acc44fe2c8c8513d3 @@ -5765,40 +5498,37 @@ third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/df3848834e2826cc08e9 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e07dc003c37f086542adc752f8a07b32add64a18 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e08ffba2acb6f49749a55cdd8c093d8024cd6aeb third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e137420a3852beb3754d0d053a4a859de25119b8 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e1535e7015abbff6da3c1c504a6cf8e5e42d2171 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e1783eb61119697f09eaf763a6576e4711d0dcd6 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e19e9f04138208911b52c01517c5a7b88e0b8085 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e1b6797ed1dde219decff215c042fd2f78529b55 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e26daf15003669859cd8019299a7daab2d7aa00a -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e2f6420aa4b6852de17cb57ffb066a5eef4664f1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e37dcb9edb9406613ab058b52109cff6e5eb7373 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e41dffeb2b4bafbd82eecdf8cea3362456540f44 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e4ca779155a2ac65415a30eee6a9a4aa1c07b35b +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e56adb4213ea3ee9361fc7af2ab4923ea197fded third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e5b1d6a4dbd2161a4fe4d9a7454ddbaae0aae52a -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e64b0c540be42d73edb5a0ae430056cd8bfca0e5 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e683adfc8c40fbf571a673a994250a2a7296ae8a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e76be9c711fa5b138c206996715add2cca9dac8a +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e7edc8d389fe21d8edb5b0ad4ae42237c4f49ec6 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e841dee2ac5ce35147ecd19ffaca010ca2b2b0b5 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e8780773e285e40054cb78d5d87f120abf449655 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/e958885558605789e1d5b2ebb389ea8595d8ae9f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ea5efcd000751127a1de0cc763c51c0b7027c375 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ead4e8fe1678d8d680b5c9155e16db92e307564e +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/eb137aa941679b8b3359adea8ebab8dae55e7a53 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ec8c7f4b7156a184596c73c9d1c2c2a736456cb2 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ed41aaecc96e1de413b27f98b2981e848024396a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ed54e9249f4d5f4a8716a7b178c145eade55894f third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ed615131eb5f3bdd5ab1fe267aae1f84cdf6f3d5 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ee3014bf3c8462c2afaf070c996b01fce85f387d third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/eec97495ec0176d661aae751faefe3e29c970bf3 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/eef9e360034ed9208181a22c89d4b9c3cc118a0f -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ef8c9407c69cc038f2537aa2dc25edc8749dad69 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/efa6af54385372681392bdea349b3fb27e5cb73a third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/effcd530adf2223f4fd4da352362c43183244b4e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f19ef6e84a6b96431e1cf7652c2048de0dd082ef -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f1b219b3c39a0af90b5d30e793a385d5857563d7 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f1e2cc634a6ba6db2c3a826f337b635ef340f17d -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f1ee4b163f4cda7ee92271f4706945ae7490bc76 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f1f9319fec8b3854cebe6886a03ead6a67ad082e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f264bb99f06b4483193a3b1e3732a1e9744849b4 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f264f07f3e1b8e20f775abc608c9cede7a963790 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f2b71830b304c28e14b328c50346632a88b1d5d3 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f2f182586d348e96056b33e3db7d55bc0ee8623c +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f32d0b31e0b37b48accc1686005b325df7c7cc6b third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f3cc3b99b786ede838daeabff95985a7f2c9d6a1 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f5372f40f3b8d3f06a154cd51aeeda548e32e975 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f618e090ad5c914a567d94a8bebd732b5d55d3fb @@ -5806,13 +5536,14 @@ third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f7e33ab5847e0e3c2080 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f8380e0bf1588af906304e73ff26d665cac8592e third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/f9a05c27de0afe3d33df6787ae5b067527e35345 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fa09064fd3c2de1133d2b2146c857b6b35995f69 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fa09797b618c241858ea0a3455e50f2248c8bdaa third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fbe8018dbcea38eabdaa9a74b5de86b74ea121bb third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fc84fd6e18c99133de1b445215c42b46f1a93788 -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fe9c5a9239b28b280d9c160fb00c3e3f6f7fa2ca +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fd736f8f0b60f668453d14c69c454f8497367005 +third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fe5f32e86873260021e5029205e317a7ad1c3726 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/fef16e82b7e99a4a4f59cdca3506702c04ab5355 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ff6cac25958fbb4bc39ac312e94cf883e835c576 third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ffa80e2c9aee0b05dfa2ce0c2111862b8d34badc -third_party/boringssl/src/fuzz/server_corpus_no_fuzzer_mode/ffeed7f10dbb9d7ac2c9ccf766cab5c39c39c592 third_party/boringssl/src/fuzz/session_corpus/00bff688b187a70181ffbc2f3e4b8bfad5a2fa67 third_party/boringssl/src/fuzz/session_corpus/177ed9c6a351c40e51c711a9d741446818135ba5 third_party/boringssl/src/fuzz/session_corpus/30d9e05c398a2b4f4e365c9d1ab9ecccb14b45c5 @@ -6265,8 +5996,6 @@ third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/key. third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/key.p12.enc third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/privatekey.p12 third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/data/user-key.json.enc -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/appstats/protorpc_appstats/appstats.descriptor -third_party/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/client/music_service.descriptor third_party/catapult/third_party/vinn/third_party/parse5/test/data/tree_construction/domjs-unsafe.dat third_party/catapult/third_party/vinn/third_party/parse5/test/data/tree_construction/pending-spec-changes-plain-text-unsafe.dat third_party/catapult/third_party/vinn/third_party/parse5/test/data/tree_construction/plain-text-unsafe.dat @@ -6522,8 +6251,6 @@ third_party/deqp/src/data/gles3/data/etc1/skybox_pos_z_mip_3.pkm third_party/deqp/src/data/gles3/data/etc1/skybox_pos_z_mip_4.pkm third_party/deqp/src/data/gles3/data/etc1/skybox_pos_z_mip_5.pkm third_party/deqp/src/data/gles3/data/etc1/skybox_pos_z_mip_6.pkm -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/semver/semver.browser.js.gz -third_party/devtools-node-modules/third_party/node_modules/gulp/node_modules/semver/semver.min.js.gz third_party/eu-strip/bin/eu-strip third_party/ffmpeg/tests/ref/fate/sub-microdvd-remux third_party/ffmpeg/tests/reference.pnm @@ -6535,6 +6262,8 @@ third_party/fontconfig/src/test/4x6.pcf third_party/fontconfig/src/test/8x16.pcf third_party/gestures/gestures/data/non_linearity_data/testing_non_linearity_data.dat third_party/glslang-angle/src/Test/badChars.frag +third_party/glslang-angle/src/Test/remap.invalid-spirv-1.spv +third_party/glslang-angle/src/Test/remap.invalid-spirv-2.spv third_party/glslang-angle/src/Test/remap.literal64.everything.spv third_party/glslang-angle/src/Test/remap.literal64.none.spv third_party/glslang/src/Test/badChars.frag @@ -6561,6 +6290,9 @@ third_party/icu/source/data/region/pool.res third_party/icu/source/data/unit/pool.res third_party/icu/source/data/zone/pool.res third_party/icu/windows/icudt.dll +third_party/ink/prebuilt/_platform_specific/arm/ink_arm.nexe +third_party/ink/prebuilt/_platform_specific/x86-32/ink_x86_32.nexe +third_party/ink/prebuilt/_platform_specific/x86-64/ink_x86_64.nexe third_party/libdrm/src/intel/tests/gen4-3d.batch third_party/libdrm/src/intel/tests/gen5-3d.batch third_party/libdrm/src/intel/tests/gen6-3d.batch @@ -7866,6 +7598,11 @@ third_party/libwebm/source/testing/testdata/invalid/blockgroup_block_ends_beyond third_party/libwebm/source/testing/testdata/invalid/chapters_truncated_chapter_string.mkv third_party/libwebm/source/testing/testdata/invalid/chapters_truncated_chapter_string_2.mkv third_party/libwebm/source/testing/testdata/invalid/fixed_lacing_bad_lace_size.mkv +third_party/libwebm/source/testing/testdata/invalid/invalid_vp9_bitstream-bug_1416.webm +third_party/libwebm/source/testing/testdata/invalid/invalid_vp9_bitstream-bug_1417.webm +third_party/libwebm/source/testing/testdata/invalid/primarychromaticity_fieldtoolarge.webm +third_party/libwebm/source/testing/testdata/invalid/projection_float_overflow.webm +third_party/libwebm/source/testing/testdata/long_tag_string.webm third_party/libwebm/source/testing/testdata/matroska_doctype.mkv third_party/libwebm/source/testing/testdata/max_cluster_duration.webm third_party/libwebm/source/testing/testdata/max_cluster_size.webm @@ -8443,6 +8180,1077 @@ third_party/libwebm/source/webm_parser/fuzzing/corpus/fe7ef7c0e835873b7b1cd780f2 third_party/libwebm/source/webm_parser/fuzzing/corpus/ff5274cad94d590347d6cdba7637078f82e3d44a third_party/libwebm/source/webm_parser/fuzzing/corpus/ffff6a92363e0e55a9688d9bc025cd8dea3b50d4 third_party/libyuv/tools_libyuv/autoroller/unittests/.DS_Store +third_party/llvm/bindings/python/llvm/tests/test.bc +third_party/llvm/bindings/python/llvm/tests/test_file +third_party/llvm/test/Assembler/2007-05-21-Escape.ll +third_party/llvm/test/Assembler/invalid-inline-constraint.ll +third_party/llvm/test/Assembler/invalid-name.ll +third_party/llvm/test/Assembler/invalid-name2.ll +third_party/llvm/test/Bindings/llvm-c/Inputs/invalid.ll.bc +third_party/llvm/test/Bitcode/DICompileUnit-no-DWOId.ll.bc +third_party/llvm/test/Bitcode/DIExpression-4.0.ll.bc +third_party/llvm/test/Bitcode/DIExpression-aggresult.ll.bc +third_party/llvm/test/Bitcode/DIExpression-deref.ll.bc +third_party/llvm/test/Bitcode/DIExpression-minus-upgrade.ll.bc +third_party/llvm/test/Bitcode/DIGlobalVariableExpression.ll.bc +third_party/llvm/test/Bitcode/DIGlobalVariableExpression2.ll.bc +third_party/llvm/test/Bitcode/DILocalVariable-explicit-tags.ll.bc +third_party/llvm/test/Bitcode/DINamespace.ll.bc +third_party/llvm/test/Bitcode/DISubprogram-distinct-definitions.ll.bc +third_party/llvm/test/Bitcode/Inputs/PR23310.bc +third_party/llvm/test/Bitcode/Inputs/invalid-GCTable-overflow.bc +third_party/llvm/test/Bitcode/Inputs/invalid-abbrev-fixed-size-too-big.bc +third_party/llvm/test/Bitcode/Inputs/invalid-abbrev-no-operands.bc +third_party/llvm/test/Bitcode/Inputs/invalid-abbrev-vbr-size-too-big.bc +third_party/llvm/test/Bitcode/Inputs/invalid-abbrev.bc +third_party/llvm/test/Bitcode/Inputs/invalid-alias-type-mismatch.bc +third_party/llvm/test/Bitcode/Inputs/invalid-align.bc +third_party/llvm/test/Bitcode/Inputs/invalid-array-element-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-array-op-not-2nd-to-last.bc +third_party/llvm/test/Bitcode/Inputs/invalid-array-operand-encoding.bc +third_party/llvm/test/Bitcode/Inputs/invalid-array-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-bad-abbrev-number.bc +third_party/llvm/test/Bitcode/Inputs/invalid-bitwidth.bc +third_party/llvm/test/Bitcode/Inputs/invalid-call-mismatched-explicit-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-call-non-function-explicit-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-cast.bc +third_party/llvm/test/Bitcode/Inputs/invalid-code-len-width.bc +third_party/llvm/test/Bitcode/Inputs/invalid-extract-0-indices.bc +third_party/llvm/test/Bitcode/Inputs/invalid-extractval-array-idx.bc +third_party/llvm/test/Bitcode/Inputs/invalid-extractval-struct-idx.bc +third_party/llvm/test/Bitcode/Inputs/invalid-extractval-too-many-idxs.bc +third_party/llvm/test/Bitcode/Inputs/invalid-fp-shift.bc +third_party/llvm/test/Bitcode/Inputs/invalid-function-argument-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-function-comdat-id.bc +third_party/llvm/test/Bitcode/Inputs/invalid-fwdref-type-mismatch-2.bc +third_party/llvm/test/Bitcode/Inputs/invalid-fwdref-type-mismatch.bc +third_party/llvm/test/Bitcode/Inputs/invalid-gep-mismatched-explicit-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-gep-no-operands.bc +third_party/llvm/test/Bitcode/Inputs/invalid-gep-operator-mismatched-explicit-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-global-var-comdat-id.bc +third_party/llvm/test/Bitcode/Inputs/invalid-insert-0-indices.bc +third_party/llvm/test/Bitcode/Inputs/invalid-inserted-value-type-mismatch.bc +third_party/llvm/test/Bitcode/Inputs/invalid-insertval-array-idx.bc +third_party/llvm/test/Bitcode/Inputs/invalid-insertval-struct-idx.bc +third_party/llvm/test/Bitcode/Inputs/invalid-insertval-too-many-idxs.bc +third_party/llvm/test/Bitcode/Inputs/invalid-invoke-mismatched-explicit-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-invoke-non-function-explicit-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-load-mismatched-explicit-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-load-pointer-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-load-ptr-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-metadata-not-followed-named-node.bc +third_party/llvm/test/Bitcode/Inputs/invalid-name-with-0-byte.bc +third_party/llvm/test/Bitcode/Inputs/invalid-no-function-block.bc +third_party/llvm/test/Bitcode/Inputs/invalid-no-proper-module.bc +third_party/llvm/test/Bitcode/Inputs/invalid-non-vector-extractelement.bc +third_party/llvm/test/Bitcode/Inputs/invalid-non-vector-insertelement.bc +third_party/llvm/test/Bitcode/Inputs/invalid-non-vector-shufflevector.bc +third_party/llvm/test/Bitcode/Inputs/invalid-nonpointer-atomicrmw.bc +third_party/llvm/test/Bitcode/Inputs/invalid-nonpointer-storeatomic.bc +third_party/llvm/test/Bitcode/Inputs/invalid-pointer-element-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-pr20485.bc +third_party/llvm/test/Bitcode/Inputs/invalid-too-big-fwdref.bc +third_party/llvm/test/Bitcode/Inputs/invalid-type-table-forward-ref.bc +third_party/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc +third_party/llvm/test/Bitcode/Inputs/invalid-vector-element-type.bc +third_party/llvm/test/Bitcode/Inputs/invalid-vector-length.bc +third_party/llvm/test/Bitcode/Inputs/invalid-void-constant.bc +third_party/llvm/test/Bitcode/Inputs/padding-garbage.bc +third_party/llvm/test/Bitcode/Inputs/padding.bc +third_party/llvm/test/Bitcode/Inputs/source-filename.bc +third_party/llvm/test/Bitcode/Inputs/thinlto-function-summary-callgraph-combined.1.bc +third_party/llvm/test/Bitcode/Inputs/thinlto-function-summary-callgraph-pgo-combined.1.bc +third_party/llvm/test/Bitcode/Inputs/thinlto-function-summary-callgraph-pgo.1.bc +third_party/llvm/test/Bitcode/Inputs/thinlto-function-summary-callgraph.1.bc +third_party/llvm/test/Bitcode/aggregateInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/atomic-no-syncscope.ll.bc +third_party/llvm/test/Bitcode/attributes-3.3.ll.bc +third_party/llvm/test/Bitcode/auto_upgrade_intrinsics.bc +third_party/llvm/test/Bitcode/avr-calling-conventions.ll.bc +third_party/llvm/test/Bitcode/binaryFloatInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/binaryIntInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/bitwiseInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/calling-conventions.3.2.ll.bc +third_party/llvm/test/Bitcode/case-ranges-3.3.ll.bc +third_party/llvm/test/Bitcode/cmpxchg-upgrade.ll.bc +third_party/llvm/test/Bitcode/cmpxchg.3.6.ll.bc +third_party/llvm/test/Bitcode/compatibility-3.6.ll.bc +third_party/llvm/test/Bitcode/compatibility-3.7.ll.bc +third_party/llvm/test/Bitcode/compatibility-3.8.ll.bc +third_party/llvm/test/Bitcode/compatibility-3.9.ll.bc +third_party/llvm/test/Bitcode/compatibility-4.0.ll.bc +third_party/llvm/test/Bitcode/compatibility-5.0.ll.bc +third_party/llvm/test/Bitcode/constantsTest.3.2.ll.bc +third_party/llvm/test/Bitcode/conversionInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/diglobalvariable-3.8.ll.bc +third_party/llvm/test/Bitcode/dilocalvariable-3.9.ll.bc +third_party/llvm/test/Bitcode/dityperefs-3.8.ll.bc +third_party/llvm/test/Bitcode/drop-debug-info.3.5.ll.bc +third_party/llvm/test/Bitcode/function-local-metadata.3.5.ll.bc +third_party/llvm/test/Bitcode/global-variables.3.2.ll.bc +third_party/llvm/test/Bitcode/highLevelStructure.3.2.ll.bc +third_party/llvm/test/Bitcode/invalid.ll.bc +third_party/llvm/test/Bitcode/linkage-types-3.2.ll.bc +third_party/llvm/test/Bitcode/local-linkage-default-visibility.3.4.ll.bc +third_party/llvm/test/Bitcode/memInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/metadata.3.5.ll.bc +third_party/llvm/test/Bitcode/miscInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/null-type.ll.bc +third_party/llvm/test/Bitcode/old-aliases.ll.bc +third_party/llvm/test/Bitcode/pr18704.ll.bc +third_party/llvm/test/Bitcode/standardCIntrinsic.3.2.ll.bc +third_party/llvm/test/Bitcode/terminatorInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/thinlto-summary-local-5.0.ll.bc +third_party/llvm/test/Bitcode/upgrade-dbg-value.ll.bc +third_party/llvm/test/Bitcode/upgrade-debug-info-for-profiling.ll.bc +third_party/llvm/test/Bitcode/upgrade-global-ctors.ll.bc +third_party/llvm/test/Bitcode/upgrade-importedentity.ll.bc +third_party/llvm/test/Bitcode/upgrade-loop-metadata.ll.bc +third_party/llvm/test/Bitcode/upgrade-pointer-address-space.ll.bc +third_party/llvm/test/Bitcode/upgrade-subprogram-this.ll.bc +third_party/llvm/test/Bitcode/upgrade-subprogram.ll.bc +third_party/llvm/test/Bitcode/variableArgumentIntrinsic.3.2.ll.bc +third_party/llvm/test/Bitcode/vectorInstructions.3.2.ll.bc +third_party/llvm/test/Bitcode/visibility-styles.3.2.ll.bc +third_party/llvm/test/Bitcode/weak-cmpxchg-upgrade.ll.bc +third_party/llvm/test/Bitcode/weak-macho-3.5.ll.bc +third_party/llvm/test/DebugInfo/Inputs/arange-overlap.elf-x86_64 +third_party/llvm/test/DebugInfo/Inputs/arm-relocs.elf-arm +third_party/llvm/test/DebugInfo/Inputs/cross-cu-inlining.x86_64-macho.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-decompression-corrupt.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-decompression-error.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-gdbindex-v7.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-inl-test.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-inl-test.high_pc.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-macho-relocs.macho.x86_64.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-macro.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-objc.x86_64.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-pubnames.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-ranges-baseaddr-exe.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test-32bit.elf.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.o.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test.elf-x86-64.debuglink +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test.macho-i386.o +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test2.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test3.elf-x86-64-space +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-test4.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump-type-units.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/dwarfdump.elf-mips64-64-bit-dwarf +third_party/llvm/test/DebugInfo/Inputs/fat-test.o +third_party/llvm/test/DebugInfo/Inputs/fission-ranges.elf-x86_64 +third_party/llvm/test/DebugInfo/Inputs/implicit-const-test.o +third_party/llvm/test/DebugInfo/Inputs/invalid.elf +third_party/llvm/test/DebugInfo/Inputs/invalid.elf.2 +third_party/llvm/test/DebugInfo/Inputs/invalid.elf.3 +third_party/llvm/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test +third_party/llvm/test/DebugInfo/Inputs/llvm-symbolizer-test.elf-x86-64 +third_party/llvm/test/DebugInfo/Inputs/macho-universal +third_party/llvm/test/DebugInfo/Inputs/shared-object-stripped.elf-i386 +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-empty.dwo +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-empty.o +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-test +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt +third_party/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo +third_party/llvm/test/DebugInfo/Inputs/test-inline.o +third_party/llvm/test/DebugInfo/Inputs/test-multiple-macho.o +third_party/llvm/test/DebugInfo/Inputs/test-parameters.o +third_party/llvm/test/DebugInfo/Inputs/test-simple-macho.o +third_party/llvm/test/DebugInfo/Inputs/typeunit-header.elf-x86-64 +third_party/llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb +third_party/llvm/test/DebugInfo/PDB/Inputs/big-read.pdb +third_party/llvm/test/DebugInfo/PDB/Inputs/empty.pdb +third_party/llvm/test/DebugInfo/PDB/Inputs/every-type.pdb +third_party/llvm/test/DebugInfo/PDB/Inputs/pdbdump-globals-empty.pdb +third_party/llvm/test/DebugInfo/PDB/Inputs/symbolformat.pdb +third_party/llvm/test/LTO/X86/Inputs/invalid.ll.bc +third_party/llvm/test/Linker/Inputs/drop-debug.bc +third_party/llvm/test/Linker/Inputs/old_global_ctors.3.4.bc +third_party/llvm/test/Object/Inputs/GNU.a +third_party/llvm/test/Object/Inputs/IsNAN.o +third_party/llvm/test/Object/Inputs/MacOSX.a +third_party/llvm/test/Object/Inputs/SVR4.a +third_party/llvm/test/Object/Inputs/WASM/missing-version.wasm +third_party/llvm/test/Object/Inputs/absolute.elf-x86-64 +third_party/llvm/test/Object/Inputs/archive-test.a-coff-i386 +third_party/llvm/test/Object/Inputs/archive-test.a-corrupt-symbol-table +third_party/llvm/test/Object/Inputs/archive-test.a-irix6-mips64el +third_party/llvm/test/Object/Inputs/coff-short-import-code +third_party/llvm/test/Object/Inputs/coff-short-import-data +third_party/llvm/test/Object/Inputs/coff_archive.lib +third_party/llvm/test/Object/Inputs/coff_archive_short.lib +third_party/llvm/test/Object/Inputs/common.coff-i386 +third_party/llvm/test/Object/Inputs/corrupt-archive.a +third_party/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-offset.elf.x86-64 +third_party/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-size.elf.x86-64 +third_party/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-too-large.elf.x86-64 +third_party/llvm/test/Object/Inputs/corrupt-invalid-phentsize.elf.x86-64 +third_party/llvm/test/Object/Inputs/corrupt-invalid-relocation-size.elf.x86-64 +third_party/llvm/test/Object/Inputs/corrupt-invalid-strtab.elf.x86-64 +third_party/llvm/test/Object/Inputs/corrupt-invalid-virtual-addr.elf.x86-64 +third_party/llvm/test/Object/Inputs/corrupt-version.elf-x86_64 +third_party/llvm/test/Object/Inputs/corrupt.elf-x86-64 +third_party/llvm/test/Object/Inputs/darwin-m-test1.mach0-armv7 +third_party/llvm/test/Object/Inputs/darwin-m-test2.macho-i386 +third_party/llvm/test/Object/Inputs/darwin-m-test3.macho-x86-64 +third_party/llvm/test/Object/Inputs/dext-test.elf-mips64r2 +third_party/llvm/test/Object/Inputs/dyn-rel.so.elf-mips +third_party/llvm/test/Object/Inputs/dynamic-reloc.so +third_party/llvm/test/Object/Inputs/elf-mip64-reloc.o +third_party/llvm/test/Object/Inputs/elf-reloc-no-sym.x86_64 +third_party/llvm/test/Object/Inputs/elf-versioning-test.i386 +third_party/llvm/test/Object/Inputs/elf-versioning-test.x86_64 +third_party/llvm/test/Object/Inputs/hello-world.elf-x86-64 +third_party/llvm/test/Object/Inputs/hello-world.macho-x86_64 +third_party/llvm/test/Object/Inputs/invalid-bad-rel-type.elf +third_party/llvm/test/Object/Inputs/invalid-bad-section-address.coff +third_party/llvm/test/Object/Inputs/invalid-buffer.elf +third_party/llvm/test/Object/Inputs/invalid-coff-header-too-small +third_party/llvm/test/Object/Inputs/invalid-e_shnum.elf +third_party/llvm/test/Object/Inputs/invalid-ext-symtab-index.elf-x86-64 +third_party/llvm/test/Object/Inputs/invalid-phdr.elf +third_party/llvm/test/Object/Inputs/invalid-rel-sym.elf +third_party/llvm/test/Object/Inputs/invalid-reloc.elf-x86-64 +third_party/llvm/test/Object/Inputs/invalid-relocation-sec-sh_offset.elf-i386 +third_party/llvm/test/Object/Inputs/invalid-relocation-sec-sh_offset.elf-x86-64 +third_party/llvm/test/Object/Inputs/invalid-section-index.elf +third_party/llvm/test/Object/Inputs/invalid-section-size.elf +third_party/llvm/test/Object/Inputs/invalid-section-size2.elf +third_party/llvm/test/Object/Inputs/invalid-sections-address-alignment.x86-64 +third_party/llvm/test/Object/Inputs/invalid-sections-num.elf +third_party/llvm/test/Object/Inputs/invalid-sh_entsize.elf +third_party/llvm/test/Object/Inputs/invalid-strtab-non-null.elf +third_party/llvm/test/Object/Inputs/invalid-strtab-size.elf +third_party/llvm/test/Object/Inputs/invalid-strtab-type.elf +third_party/llvm/test/Object/Inputs/invalid-strtab-zero-size.elf +third_party/llvm/test/Object/Inputs/invalid-symbol-table-size.elf +third_party/llvm/test/Object/Inputs/invalid-xindex-size.elf +third_party/llvm/test/Object/Inputs/liblong_filenames.a +third_party/llvm/test/Object/Inputs/libsimple_archive.a +third_party/llvm/test/Object/Inputs/macho-archive-unsorted-x86_64.a +third_party/llvm/test/Object/Inputs/macho-archive-x86_64.a +third_party/llvm/test/Object/Inputs/macho-bad-archive1.a +third_party/llvm/test/Object/Inputs/macho-bad-archive2.a +third_party/llvm/test/Object/Inputs/macho-data-in-code.macho-thumbv7 +third_party/llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64 +third_party/llvm/test/Object/Inputs/macho-hello-g.macho-x86_64 +third_party/llvm/test/Object/Inputs/macho-invalid-bad-symbol-index +third_party/llvm/test/Object/Inputs/macho-invalid-bind-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-codesig-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-codesign-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-dataincode-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-dataincode-dataoff-datasize +third_party/llvm/test/Object/Inputs/macho-invalid-dataincode-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-dyld-name_offset-toobig +third_party/llvm/test/Object/Inputs/macho-invalid-dyld-name_toobig +third_party/llvm/test/Object/Inputs/macho-invalid-dyld-small +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-bind_off-bind_size +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-export_off-export_size +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-lazy_bind_off-lazy_bind_size +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-rebase_off +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-rebase_off-rebase_size +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-small +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfo-weak_bind_off-weak_bind_size +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfoonly-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfoonly-bind_off +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfoonly-export_off +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfoonly-lazy_bind_off +third_party/llvm/test/Object/Inputs/macho-invalid-dyldinfoonly-weak_bind_off +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-cmdsize-past-eof +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-id-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-name_offset-toobig +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-name_offset-toosmall +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-name_toobig +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-no-id +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-small +third_party/llvm/test/Object/Inputs/macho-invalid-dylib-wrong-filetype +third_party/llvm/test/Object/Inputs/macho-invalid-dylib_code_sign_drs-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-extrefsymoff +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-extrefsymoff-nextrefsyms +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-extreloff +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-extreloff-nextrel +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-indirectsymoff +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-indirectsymoff-nindirectsyms +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-locreloff +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-locreloff-nlocrel +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-modtaboff +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-modtaboff-nmodtab +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-small +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-tocoff +third_party/llvm/test/Object/Inputs/macho-invalid-dysymtab-tocoff-ntoc +third_party/llvm/test/Object/Inputs/macho-invalid-encrypt-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-encrypt-cryptoff +third_party/llvm/test/Object/Inputs/macho-invalid-encrypt-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-encrypt64-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-encrypt64-cryptoff-cryptsize +third_party/llvm/test/Object/Inputs/macho-invalid-entry-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-entry-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-export-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-extrefsyms-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-extreloff-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-fat +third_party/llvm/test/Object/Inputs/macho-invalid-fat-arch-badalign +third_party/llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign +third_party/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders +third_party/llvm/test/Object/Inputs/macho-invalid-fat-arch-size +third_party/llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame +third_party/llvm/test/Object/Inputs/macho-invalid-fat-header +third_party/llvm/test/Object/Inputs/macho-invalid-fat.obj.elf-x86_64 +third_party/llvm/test/Object/Inputs/macho-invalid-fat_cputype +third_party/llvm/test/Object/Inputs/macho-invalid-function_starts-dataoff +third_party/llvm/test/Object/Inputs/macho-invalid-fvmfile-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-header +third_party/llvm/test/Object/Inputs/macho-invalid-hints-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-ident-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-idfvmlib-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-indirectsyms-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-lazy_bind-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-linkopt-bad-count +third_party/llvm/test/Object/Inputs/macho-invalid-linkopt-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-linkopthint-dataoff +third_party/llvm/test/Object/Inputs/macho-invalid-linkopthint-small +third_party/llvm/test/Object/Inputs/macho-invalid-loadfvmlib-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-locreloff-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-modtab-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-no-size-for-sections +third_party/llvm/test/Object/Inputs/macho-invalid-note +third_party/llvm/test/Object/Inputs/macho-invalid-prebind_cksum-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-prebound_dylib-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-prepage-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-rebase-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-reloc-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-routines-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-routines64-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-rpath-name_offset-toobig +third_party/llvm/test/Object/Inputs/macho-invalid-rpath-name_toobig +third_party/llvm/test/Object/Inputs/macho-invalid-rpath-small +third_party/llvm/test/Object/Inputs/macho-invalid-section-addr +third_party/llvm/test/Object/Inputs/macho-invalid-section-addr-size +third_party/llvm/test/Object/Inputs/macho-invalid-section-index-getSectionRawName +third_party/llvm/test/Object/Inputs/macho-invalid-section-offset +third_party/llvm/test/Object/Inputs/macho-invalid-section-offset-in-headers +third_party/llvm/test/Object/Inputs/macho-invalid-section-offset-size +third_party/llvm/test/Object/Inputs/macho-invalid-section-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-section-reloff +third_party/llvm/test/Object/Inputs/macho-invalid-section-reloff-nrelocs +third_party/llvm/test/Object/Inputs/macho-invalid-section-size-filesize +third_party/llvm/test/Object/Inputs/macho-invalid-segment-fileoff +third_party/llvm/test/Object/Inputs/macho-invalid-segment-filesize +third_party/llvm/test/Object/Inputs/macho-invalid-segment-vmsize +third_party/llvm/test/Object/Inputs/macho-invalid-source-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-source-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-splitinfo-dataoff-datasize +third_party/llvm/test/Object/Inputs/macho-invalid-strtab-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-subclient-name_toobig +third_party/llvm/test/Object/Inputs/macho-invalid-subframe-small +third_party/llvm/test/Object/Inputs/macho-invalid-sublibrary-name_offset-toobig +third_party/llvm/test/Object/Inputs/macho-invalid-subumbrella-offset-small +third_party/llvm/test/Object/Inputs/macho-invalid-symbol-name-past-eof +third_party/llvm/test/Object/Inputs/macho-invalid-symseg-obsolete +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-small +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-stroff +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-stroff-strsize +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-symoff +third_party/llvm/test/Object/Inputs/macho-invalid-symtab-symoff-nsyms +third_party/llvm/test/Object/Inputs/macho-invalid-thread-count-pastend +third_party/llvm/test/Object/Inputs/macho-invalid-thread-count-wrong +third_party/llvm/test/Object/Inputs/macho-invalid-thread-flavor-unknown +third_party/llvm/test/Object/Inputs/macho-invalid-thread-state-pastend +third_party/llvm/test/Object/Inputs/macho-invalid-thread-unknown-cputype +third_party/llvm/test/Object/Inputs/macho-invalid-toc-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-too-small-load-command +third_party/llvm/test/Object/Inputs/macho-invalid-too-small-segment-load-command +third_party/llvm/test/Object/Inputs/macho-invalid-too-small-segment-load-command.1 +third_party/llvm/test/Object/Inputs/macho-invalid-twolevelhints-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-twolevelhints-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-twolevelhints-offset +third_party/llvm/test/Object/Inputs/macho-invalid-twolevelhints-offset-nhints +third_party/llvm/test/Object/Inputs/macho-invalid-unixthread-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-uuid-bad-size +third_party/llvm/test/Object/Inputs/macho-invalid-uuid-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-vers-more-than-one +third_party/llvm/test/Object/Inputs/macho-invalid-vers-small +third_party/llvm/test/Object/Inputs/macho-invalid-weak_bind-overlap +third_party/llvm/test/Object/Inputs/macho-invalid-zero-ncmds +third_party/llvm/test/Object/Inputs/macho-no-exports.dylib +third_party/llvm/test/Object/Inputs/macho-rpath-x86_64 +third_party/llvm/test/Object/Inputs/macho-text-data-bss.macho-x86_64 +third_party/llvm/test/Object/Inputs/macho-text-sections.macho-x86_64 +third_party/llvm/test/Object/Inputs/macho-text.thumb +third_party/llvm/test/Object/Inputs/macho-toc64-archive-x86_64.a +third_party/llvm/test/Object/Inputs/macho-universal-archive-bad1.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-universal-archive-bad2.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-universal-archive.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-universal-bad1.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-universal-bad2.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-universal.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-universal64-archive.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-universal64.x86_64.i386 +third_party/llvm/test/Object/Inputs/macho-valid-0-nsyms +third_party/llvm/test/Object/Inputs/macho64-invalid-incomplete-load-command +third_party/llvm/test/Object/Inputs/macho64-invalid-incomplete-load-command.1 +third_party/llvm/test/Object/Inputs/macho64-invalid-incomplete-segment-load-command +third_party/llvm/test/Object/Inputs/macho64-invalid-no-size-for-sections +third_party/llvm/test/Object/Inputs/macho64-invalid-too-small-load-command +third_party/llvm/test/Object/Inputs/macho64-invalid-too-small-load-command.1 +third_party/llvm/test/Object/Inputs/macho64-invalid-too-small-segment-load-command +third_party/llvm/test/Object/Inputs/main-ret-zero-pe-i386.dll +third_party/llvm/test/Object/Inputs/main-ret-zero-pe-i386.exe +third_party/llvm/test/Object/Inputs/micro-mips.elf-mipsel +third_party/llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64 +third_party/llvm/test/Object/Inputs/no-section-table.so +third_party/llvm/test/Object/Inputs/no-sections.elf-x86-64 +third_party/llvm/test/Object/Inputs/no-start-symbol.elf-x86_64 +third_party/llvm/test/Object/Inputs/openbsd-phdrs.elf-x86-64 +third_party/llvm/test/Object/Inputs/phdr-note.elf-x86-64 +third_party/llvm/test/Object/Inputs/phdrs.elf-x86-64 +third_party/llvm/test/Object/Inputs/pr25877.lib +third_party/llvm/test/Object/Inputs/program-headers.elf-i386 +third_party/llvm/test/Object/Inputs/program-headers.elf-x86-64 +third_party/llvm/test/Object/Inputs/program-headers.mips +third_party/llvm/test/Object/Inputs/program-headers.mips64 +third_party/llvm/test/Object/Inputs/rel-no-sec-table.elf-x86-64 +third_party/llvm/test/Object/Inputs/relocatable-with-section-address.elf-x86-64 +third_party/llvm/test/Object/Inputs/relocation-dynamic.elf-i386 +third_party/llvm/test/Object/Inputs/relocation-relocatable.elf-i386 +third_party/llvm/test/Object/Inputs/relocations.elf-x86-64 +third_party/llvm/test/Object/Inputs/sectionGroup.elf.x86-64 +third_party/llvm/test/Object/Inputs/shared-object-test.elf-i386 +third_party/llvm/test/Object/Inputs/shared-object-test.elf-x86-64 +third_party/llvm/test/Object/Inputs/shndx.elf +third_party/llvm/test/Object/Inputs/stackmap-test.macho-x86-64 +third_party/llvm/test/Object/Inputs/symtab-only.a +third_party/llvm/test/Object/Inputs/thin-path.a +third_party/llvm/test/Object/Inputs/thin.a +third_party/llvm/test/Object/Inputs/thumb-symbols.elf.arm +third_party/llvm/test/Object/Inputs/trivial-executable-test.macho-x86-64 +third_party/llvm/test/Object/Inputs/trivial-label-test.elf-x86-64 +third_party/llvm/test/Object/Inputs/trivial-object-test.coff-arm64 +third_party/llvm/test/Object/Inputs/trivial-object-test.coff-armnt +third_party/llvm/test/Object/Inputs/trivial-object-test.coff-i386 +third_party/llvm/test/Object/Inputs/trivial-object-test.coff-x86-64 +third_party/llvm/test/Object/Inputs/trivial-object-test.elf-avr +third_party/llvm/test/Object/Inputs/trivial-object-test.elf-hexagon +third_party/llvm/test/Object/Inputs/trivial-object-test.elf-i386 +third_party/llvm/test/Object/Inputs/trivial-object-test.elf-mips64el +third_party/llvm/test/Object/Inputs/trivial-object-test.elf-mipsel +third_party/llvm/test/Object/Inputs/trivial-object-test.elf-x86-64 +third_party/llvm/test/Object/Inputs/trivial-object-test.macho-i386 +third_party/llvm/test/Object/Inputs/trivial-object-test.macho-x86-64 +third_party/llvm/test/Object/Inputs/trivial-object-test.wasm +third_party/llvm/test/Object/Inputs/trivial-object-test2.elf-x86-64 +third_party/llvm/test/Object/Inputs/trivial-object-test2.macho-x86-64 +third_party/llvm/test/Object/Inputs/unwind-section.elf-x86-64 +third_party/llvm/test/Object/Inputs/very_long_bytecode_file_name.bc +third_party/llvm/test/Object/Inputs/weak-global-symbol.macho-i386 +third_party/llvm/test/Object/Inputs/weak.elf-x86-64 +third_party/llvm/test/Object/Inputs/xpg4.a +third_party/llvm/test/Other/Inputs/block-info-only.bc +third_party/llvm/test/Other/Inputs/has-block-info.bc +third_party/llvm/test/Other/Inputs/no-block-info.bc +third_party/llvm/test/ThinLTO/X86/Inputs/autoupgrade.bc +third_party/llvm/test/ThinLTO/X86/Inputs/drop-debug-info.bc +third_party/llvm/test/Transforms/GlobalOpt/2007-04-05-Crash.ll +third_party/llvm/test/Transforms/SampleProfile/Inputs/fnptr.binprof +third_party/llvm/test/Transforms/SampleProfile/Inputs/gcc-simple.afdo +third_party/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.afdo +third_party/llvm/test/Verifier/non-integer-gep-index.ll.bc +third_party/llvm/test/tools/dsymutil/Inputs/absolute_sym.macho.i386 +third_party/llvm/test/tools/dsymutil/Inputs/absolute_sym.macho.i386.o +third_party/llvm/test/tools/dsymutil/Inputs/alias/bar.o +third_party/llvm/test/tools/dsymutil/Inputs/alias/foo.o +third_party/llvm/test/tools/dsymutil/Inputs/alias/foobar +third_party/llvm/test/tools/dsymutil/Inputs/basic-archive.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/basic-lto.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/basic-lto.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/basic-with-libfat-test.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/basic.macho.i386 +third_party/llvm/test/tools/dsymutil/Inputs/basic.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/basic1.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/basic2-custom-linetable.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/basic2.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/basic3.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/common.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/common.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/dead-stripped/1.o +third_party/llvm/test/tools/dsymutil/Inputs/dwarf4.o +third_party/llvm/test/tools/dsymutil/Inputs/dwarf5.o +third_party/llvm/test/tools/dsymutil/Inputs/empty_range/1.o +third_party/llvm/test/tools/dsymutil/Inputs/fat-test.arm.dylib +third_party/llvm/test/tools/dsymutil/Inputs/fat-test.arm.o +third_party/llvm/test/tools/dsymutil/Inputs/fat-test.dylib +third_party/llvm/test/tools/dsymutil/Inputs/fat-test.o +third_party/llvm/test/tools/dsymutil/Inputs/inlined-low_pc/1.o +third_party/llvm/test/tools/dsymutil/Inputs/libbasic.a +third_party/llvm/test/tools/dsymutil/Inputs/libfat-test.a +third_party/llvm/test/tools/dsymutil/Inputs/mismatch/1.o +third_party/llvm/test/tools/dsymutil/Inputs/mismatch/mismatch.pcm +third_party/llvm/test/tools/dsymutil/Inputs/module-warnings/1.o +third_party/llvm/test/tools/dsymutil/Inputs/module-warnings/Bar.pcm +third_party/llvm/test/tools/dsymutil/Inputs/module-warnings/Foo.pcm +third_party/llvm/test/tools/dsymutil/Inputs/module-warnings/libstatic.a +third_party/llvm/test/tools/dsymutil/Inputs/modules-dwarf-version/1.o +third_party/llvm/test/tools/dsymutil/Inputs/modules-empty/1.o +third_party/llvm/test/tools/dsymutil/Inputs/modules-empty/Empty.pcm +third_party/llvm/test/tools/dsymutil/Inputs/modules/1.o +third_party/llvm/test/tools/dsymutil/Inputs/modules/2.o +third_party/llvm/test/tools/dsymutil/Inputs/modules/Bar.pcm +third_party/llvm/test/tools/dsymutil/Inputs/modules/Foo.pcm +third_party/llvm/test/tools/dsymutil/Inputs/null_die.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-anon-namespace/1.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-anon-namespace/2.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-fwd-declaration/1.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-fwd-declaration/2.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-fwd-declaration/3.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-fwd-declaration2/1.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-fwd-declaration2/2.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-fwd-declaration2/3.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-member-functions/1.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-member-functions/2.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-member-functions/3.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-uniquing/1.o +third_party/llvm/test/tools/dsymutil/Inputs/odr-uniquing/2.o +third_party/llvm/test/tools/dsymutil/Inputs/scattered-reloc/1.o +third_party/llvm/test/tools/dsymutil/Inputs/submodules/1.o +third_party/llvm/test/tools/dsymutil/Inputs/submodules/Parent.pcm +third_party/llvm/test/tools/dsymutil/Inputs/swift-ast.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/swift-dwarf-loc.macho.x86_64 +third_party/llvm/test/tools/dsymutil/Inputs/swift-dwarf-loc.macho.x86_64.o +third_party/llvm/test/tools/dsymutil/Inputs/thumb.armv7m +third_party/llvm/test/tools/dsymutil/Inputs/thumb.o +third_party/llvm/test/tools/gold/X86/Inputs/drop-debug.bc +third_party/llvm/test/tools/gold/X86/Inputs/invalid.bc +third_party/llvm/test/tools/llvm-ar/Inputs/absolute-paths.lib +third_party/llvm/test/tools/llvm-cov/Inputs/binary-formats.macho32b +third_party/llvm/test/tools/llvm-cov/Inputs/binary-formats.macho32l +third_party/llvm/test/tools/llvm-cov/Inputs/binary-formats.macho64l +third_party/llvm/test/tools/llvm-cov/Inputs/binary-formats.v1.linux64l +third_party/llvm/test/tools/llvm-cov/Inputs/binary-formats.v2.linux32l +third_party/llvm/test/tools/llvm-cov/Inputs/binary-formats.v2.linux64l +third_party/llvm/test/tools/llvm-cov/Inputs/combine_expansions.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/copy_block_helper.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/copy_block_helper.gcno +third_party/llvm/test/tools/llvm-cov/Inputs/deferred-regions.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/deferred-regions.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/double_dots.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcno +third_party/llvm/test/tools/llvm-cov/Inputs/highlightedRanges.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/highlightedRanges.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/ifdef.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/ifdef.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/malformedRegions.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/multiple-files.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/multiple-files2.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/multiple_objects/merged.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/multiple_objects/use_1.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/multiple_objects/use_2.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/name_whitelist.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/native_separators.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/path_equivalence.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/prefer_used_to_unused.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/prevent_false_instantiations.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/range_based_for.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/range_based_for.gcno +third_party/llvm/test/tools/llvm-cov/Inputs/regionMarkers.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/report.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/report.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/showExpansions.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/showExpansions.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/showProjectSummary.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/showTabsHTML.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/sources_specified/main.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/sources_specified/main.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/templateInstantiations.covmapping +third_party/llvm/test/tools/llvm-cov/Inputs/templateInstantiations.profdata +third_party/llvm/test/tools/llvm-cov/Inputs/test.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/test.gcno +third_party/llvm/test/tools/llvm-cov/Inputs/test_exit_block_arcs.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/test_exit_block_arcs.gcno +third_party/llvm/test/tools/llvm-cov/Inputs/test_file_checksum_fail.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/test_func_checksum_fail.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/test_paths.gcda +third_party/llvm/test/tools/llvm-cov/Inputs/test_paths.gcno +third_party/llvm/test/tools/llvm-cov/Inputs/test_read_fail.gcno +third_party/llvm/test/tools/llvm-cov/Inputs/universal-binary +third_party/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.covmapping +third_party/llvm/test/tools/llvm-cvtres/Inputs/combined.obj.coff +third_party/llvm/test/tools/llvm-cvtres/Inputs/languages.res +third_party/llvm/test/tools/llvm-cvtres/Inputs/test_resource.obj.coff +third_party/llvm/test/tools/llvm-cvtres/Inputs/test_resource.obj.coff.arm +third_party/llvm/test/tools/llvm-cvtres/Inputs/test_resource.obj.coff.x64 +third_party/llvm/test/tools/llvm-cvtres/Inputs/test_resource.res +third_party/llvm/test/tools/llvm-cxxdump/Inputs/eh.obj.coff-i386 +third_party/llvm/test/tools/llvm-cxxdump/Inputs/mixed-archive.coff-i386 +third_party/llvm/test/tools/llvm-cxxdump/Inputs/trivial.obj.coff-i386 +third_party/llvm/test/tools/llvm-cxxdump/Inputs/trivial.obj.elf-i386 +third_party/llvm/test/tools/llvm-dwarfdump/X86/Inputs/empty.dSYM +third_party/llvm/test/tools/llvm-dwp/Inputs/compress/a.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/compressfail/a.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/compressfail/compress.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/compressfail/compress.o +third_party/llvm/test/tools/llvm-dwp/Inputs/duplicate/ac.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/duplicate/bc.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/duplicate/c.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/duplicate_dwo_name/ac.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/duplicate_dwo_name/bc.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/duplicate_dwo_name/c.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/dwos_list_from_exec/a.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/dwos_list_from_exec/b.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/dwos_list_from_exec/c.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/dwos_list_from_exec/d.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/dwos_list_from_exec/e.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/dwos_list_from_exec/libd.so +third_party/llvm/test/tools/llvm-dwp/Inputs/dwos_list_from_exec/main +third_party/llvm/test/tools/llvm-dwp/Inputs/empty.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/empty_compressed_section.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/gcc_type/a.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/invalid_compressed.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/invalid_cu_index/x.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/invalid_string_form.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/merge/notypes/ab.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/merge/notypes/c.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/missing_tu_index/x.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/multiple_type_sections.dwp +third_party/llvm/test/tools/llvm-dwp/Inputs/non_cu_top_level.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/simple/notypes/a.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/simple/notypes/b.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/simple/types/a.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/simple/types/b.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/type_dedup/a.dwo +third_party/llvm/test/tools/llvm-dwp/Inputs/type_dedup/b.dwo +third_party/llvm/test/tools/llvm-lib/Inputs/cl-gl.obj +third_party/llvm/test/tools/llvm-lib/Inputs/resource.res +third_party/llvm/test/tools/llvm-mt/Inputs/bad.manifest +third_party/llvm/test/tools/llvm-nm/ARM/Inputs/print-size.macho-armv7m +third_party/llvm/test/tools/llvm-nm/X86/Inputs/Strip-ST.dylib.macho-x86_64 +third_party/llvm/test/tools/llvm-nm/X86/Inputs/example.lib +third_party/llvm/test/tools/llvm-nm/X86/Inputs/hello.obj.elf-i386 +third_party/llvm/test/tools/llvm-nm/X86/Inputs/hello.obj.elf-x86_64 +third_party/llvm/test/tools/llvm-nm/X86/Inputs/hello.obj.macho-x86_64 +third_party/llvm/test/tools/llvm-nm/X86/Inputs/init-fini.out.elf-x86_64 +third_party/llvm/test/tools/llvm-nm/X86/Inputs/libExample.a.macho-x86_64 +third_party/llvm/test/tools/llvm-nm/X86/Inputs/macho-bad-zero-nsect-for-N_SECT +third_party/llvm/test/tools/llvm-nm/X86/Inputs/test.IRobj-x86_64 +third_party/llvm/test/tools/llvm-nm/X86/Inputs/weak.obj.elf-x86_64 +third_party/llvm/test/tools/llvm-objcopy/Inputs/dwarf.dwo +third_party/llvm/test/tools/llvm-objcopy/Inputs/dynamic.so +third_party/llvm/test/tools/llvm-objcopy/Inputs/dynrel.elf +third_party/llvm/test/tools/llvm-objcopy/Inputs/dynsym.so +third_party/llvm/test/tools/llvm-objcopy/Inputs/pt-phdr.elf +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/ObjC.exe.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/ObjC.obj.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/fat.macho-armv7s-arm64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/hello.exe.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/hello.obj.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/kextbundle.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/link-opt-hints.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/print-armv8crypto.obj.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/print-mrs.obj.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/reloc-addend.obj.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/AArch64/Inputs/thread.macho-aarch64 +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/data-in-code.macho-arm +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/divs.macho-armv7s +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/fat-armv7m.o +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/hello.exe.macho-arm +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/hello.obj.macho-arm +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/mh_dylib_header.macho-arm +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/reloc-half.obj.macho-arm +third_party/llvm/test/tools/llvm-objdump/ARM/Inputs/thumb.armv7m +third_party/llvm/test/tools/llvm-objdump/Inputs/LLVM-bundle.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/bad-ordinal.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/bind.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/bind2.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/common-symbol-elf +third_party/llvm/test/tools/llvm-objdump/Inputs/compact-unwind.macho-i386 +third_party/llvm/test/tools/llvm-objdump/Inputs/compact-unwind.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/corrupt-section.wasm +third_party/llvm/test/tools/llvm-objdump/Inputs/eh_frame.elf-mipsel +third_party/llvm/test/tools/llvm-objdump/Inputs/eh_frame.macho-arm64 +third_party/llvm/test/tools/llvm-objdump/Inputs/eh_frame_zero_cie.o +third_party/llvm/test/tools/llvm-objdump/Inputs/empty.macho-armv7 +third_party/llvm/test/tools/llvm-objdump/Inputs/export.dll.coff-i386 +third_party/llvm/test/tools/llvm-objdump/Inputs/exports-trie.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/file.obj.coff-arm +third_party/llvm/test/tools/llvm-objdump/Inputs/large-bss.obj.coff-i386 +third_party/llvm/test/tools/llvm-objdump/Inputs/lazy-bind.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/libbogus6.a +third_party/llvm/test/tools/llvm-objdump/Inputs/library.lib +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-add-addr-imm-scaled +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-add_addr_uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-bad-opcode-value +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-bind-add-addr-uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-do-bind-no-segIndex +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-dylib-ordinal-uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-dylib-ordinal-uleb-malformed-uleb128 +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-dylib-ordinal-uleb-too-big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-dylib-special-imm +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-seg-too-big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-segoff-too-big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-set-addend-sleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-set-symbol +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-set-type-imm +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-bind-uleb-times-skipping-uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-do-bind-no-dylib-ordinal +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-do-bind-no-symbol +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-inconsistant-export +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-lazy-do-bind-add-addr-imm-scaled +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-lazy-do-bind-uleb-times-skipping-uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-lazy-do_bind_add_addr_uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-add-addr-imm-scaled +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-add-addr-uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-add-addr-uleb-too-big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-bad-opcode-value +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-imm-times +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-seg-too-big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-segoff-too-big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-set-type-imm +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-uleb-malformed-uleb128 +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-uleb-times +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-rebase-uleb-times-skipping-uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128 +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128_too_big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-kind +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-library-ordinal +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-children-count-byte +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-edge-string-end +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-export-info-size-too-big +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-end +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-start +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-node-loop +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-trie-not-export-node +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-weak-bind-set-dylib-ordinal-imm +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-weak-bind-set-dylib-ordinal-uleb +third_party/llvm/test/tools/llvm-objdump/Inputs/macho-weak-bind-set-dylib-special-imm +third_party/llvm/test/tools/llvm-objdump/Inputs/malformed-macho.bin +third_party/llvm/test/tools/llvm-objdump/Inputs/malformed-unwind.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/many-relocs.obj-i386 +third_party/llvm/test/tools/llvm-objdump/Inputs/nop.exe.coff-i386 +third_party/llvm/test/tools/llvm-objdump/Inputs/proc-specific-section-elf +third_party/llvm/test/tools/llvm-objdump/Inputs/rebase.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/section-filter.obj +third_party/llvm/test/tools/llvm-objdump/Inputs/section.macho-armv7 +third_party/llvm/test/tools/llvm-objdump/Inputs/tls.exe.coff-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/trivial.obj.wasm +third_party/llvm/test/tools/llvm-objdump/Inputs/unwind-info-no-relocs.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/unwind-info.macho-arm64 +third_party/llvm/test/tools/llvm-objdump/Inputs/unwind-info.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/weak-bind.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/Inputs/win64-unwind.exe.coff-x86_64.exe +third_party/llvm/test/tools/llvm-objdump/Inputs/win64-unwind.exe.coff-x86_64.obj +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/ObjC.exe.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/ObjC.obj.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/Objc1.32bit.exe.macho-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/Objc1.32bit.obj.macho-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/Objc2.32bit.exe.macho-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/Objc2.32bit.obj.macho-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/Objc2.64bit.exe.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/Objc2.64bit.obj.dylib-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/Objc2.64bit.obj.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/codesig.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/debug-info-fileinfo.exe.elf-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/disassemble-data.obj +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/disassemble.dll.coff-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/dylibLoadKinds.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/dylibModInit.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/dylibRoutines.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubClient.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubFramework.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubLibrary.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubUmbrella.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/exeThread.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/hello.exe.macho-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/hello.exe.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/hello.exe.stripped.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/hello.obj.macho-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/hello.obj.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/hello_cpp.exe.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/internal.exe.coff-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/kextbundle.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/linkerOption.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-bind-entry +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-reloc-section-index +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-symbol-indr +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-symbol-indr-archive-universal +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-symbol-lib_ordinal +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-symbol-nsect +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-symbol-nsect-archive +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-symbol-strx +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-invalid-symbol-strx-universal +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-preload-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-universal-archive.x86_64.i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-universal.x86_64.i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/macho-universal64.x86_64.i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/00000031.a +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/mem-crup-0001.macho +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/mem-crup-0006.macho +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/mem-crup-0010.macho +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/mem-crup-0040.macho +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/mem-crup-0080.macho +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/mem-crup-0261.macho +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/malformed-machos/mem-crup-0337.macho +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/nofirst-symbol.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/note.macho-x86 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/openbsd-phdrs.elf-x86-64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/out-of-section-sym.elf-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/phdr-note.elf-x86-64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/phdrs.elf-x86-64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/stripped-elf.so +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/stub-nosyms.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/stubbed.dylib.macho-x86_64 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/thread.macho-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/trivial.obj.elf-i386 +third_party/llvm/test/tools/llvm-objdump/X86/Inputs/truncated-section.dylib.macho-x86_64 +third_party/llvm/test/tools/llvm-pdbdump/Inputs/ClassLayoutTest.pdb +third_party/llvm/test/tools/llvm-pdbdump/Inputs/ComplexPaddingTest.pdb +third_party/llvm/test/tools/llvm-pdbdump/Inputs/FilterTest.pdb +third_party/llvm/test/tools/llvm-pdbdump/Inputs/LoadAddressTest.pdb +third_party/llvm/test/tools/llvm-pdbdump/Inputs/SimplePaddingTest.pdb +third_party/llvm/test/tools/llvm-profdata/Inputs/c-general.profraw +third_party/llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v1 +third_party/llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v2 +third_party/llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v4 +third_party/llvm/test/tools/llvm-profdata/Inputs/compressed.profraw +third_party/llvm/test/tools/llvm-profdata/Inputs/gcc-sample-profile.gcov +third_party/llvm/test/tools/llvm-profdata/Inputs/weight-instr-bar.profdata +third_party/llvm/test/tools/llvm-profdata/Inputs/weight-instr-foo.profdata +third_party/llvm/test/tools/llvm-readobj/Inputs/abiflags.obj.elf-mips +third_party/llvm/test/tools/llvm-readobj/Inputs/abiflags.obj.elf-mipsel +third_party/llvm/test/tools/llvm-readobj/Inputs/bad-relocs.obj.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/basereloc.obj.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/bigobj.coff-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-cycle.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-inlinees.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-inlining.obj.coff +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-label.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-1.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-2.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-anon.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-types.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-unsorted.obj +third_party/llvm/test/tools/llvm-readobj/Inputs/codeview-vftable.obj.coff +third_party/llvm/test/tools/llvm-readobj/Inputs/coff-load-config-data-end.exe +third_party/llvm/test/tools/llvm-readobj/Inputs/coff-load-config-x64.dll +third_party/llvm/test/tools/llvm-readobj/Inputs/coff-load-config-x86.dll +third_party/llvm/test/tools/llvm-readobj/Inputs/coff-no-load-config.exe +third_party/llvm/test/tools/llvm-readobj/Inputs/comdat-function-linetables.obj.coff-2012-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/comdat-function-linetables.obj.coff-2013-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/compression.zlib.style.elf-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/const-import.lib +third_party/llvm/test/tools/llvm-readobj/Inputs/cxx-cli-aux.obj.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/directives.obj.coff-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/dtflags.elf-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/dynamic-table-exe.mips +third_party/llvm/test/tools/llvm-readobj/Inputs/dynamic-table-exe.x86 +third_party/llvm/test/tools/llvm-readobj/Inputs/dynamic-table-so.aarch64 +third_party/llvm/test/tools/llvm-readobj/Inputs/dynamic-table-so.mips +third_party/llvm/test/tools/llvm-readobj/Inputs/dynamic-table-so.x86 +third_party/llvm/test/tools/llvm-readobj/Inputs/elf-groups.x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/export-arm.dll +third_party/llvm/test/tools/llvm-readobj/Inputs/export-x64.dll +third_party/llvm/test/tools/llvm-readobj/Inputs/export-x86.dll +third_party/llvm/test/tools/llvm-readobj/Inputs/gnuhash.so.elf-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/gnuhash.so.elf-ppc +third_party/llvm/test/tools/llvm-readobj/Inputs/gnuhash.so.elf-ppc64 +third_party/llvm/test/tools/llvm-readobj/Inputs/gnuhash.so.elf-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/got-empty.exe.mipsel +third_party/llvm/test/tools/llvm-readobj/Inputs/got-over.exe.elf-mips +third_party/llvm/test/tools/llvm-readobj/Inputs/got-plt.exe.elf-mipsel +third_party/llvm/test/tools/llvm-readobj/Inputs/got-static.exe.mips +third_party/llvm/test/tools/llvm-readobj/Inputs/got-tls.so.elf-mips64el +third_party/llvm/test/tools/llvm-readobj/Inputs/has_pdb.exe +third_party/llvm/test/tools/llvm-readobj/Inputs/imports.exe.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/imports.exe.coff-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/library.lib +third_party/llvm/test/tools/llvm-readobj/Inputs/macho-universal-archive.x86_64.i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/macho-universal.x86_64.i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/magic.coff-importlib +third_party/llvm/test/tools/llvm-readobj/Inputs/magic.coff-unknown +third_party/llvm/test/tools/llvm-readobj/Inputs/mips-options.elf-mips64el +third_party/llvm/test/tools/llvm-readobj/Inputs/mips-rld-map-rel.elf-mipsel +third_party/llvm/test/tools/llvm-readobj/Inputs/multifile-linetables.obj.coff-2012-i368 +third_party/llvm/test/tools/llvm-readobj/Inputs/multifile-linetables.obj.coff-2012-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/multifile-linetables.obj.coff-2013-i368 +third_party/llvm/test/tools/llvm-readobj/Inputs/multifile-linetables.obj.coff-2013-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/multifunction-linetables.obj.coff-2012-i368 +third_party/llvm/test/tools/llvm-readobj/Inputs/multifunction-linetables.obj.coff-2012-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/multifunction-linetables.obj.coff-2013-i368 +third_party/llvm/test/tools/llvm-readobj/Inputs/multifunction-linetables.obj.coff-2013-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/needed-libs.obj.coff-am64 +third_party/llvm/test/tools/llvm-readobj/Inputs/nop.exe.coff-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/options.obj.elf-mipsel +third_party/llvm/test/tools/llvm-readobj/Inputs/phdrs-elf.exe-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/phdrs-elf.exe-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/reginfo.obj.elf-mipsel +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs-no-symtab.obj.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.coff-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-aarch64 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-arm +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-lanai +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-mips +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-mips64el +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-ppc64 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.macho-arm +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.macho-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/relocs.obj.macho-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/resources/test_resource.obj.coff +third_party/llvm/test/tools/llvm-readobj/Inputs/resources/test_resource.res +third_party/llvm/test/tools/llvm-readobj/Inputs/rpath.exe.elf-x86_64 +third_party/llvm/test/tools/llvm-readobj/Inputs/st-other.obj.elf-mips +third_party/llvm/test/tools/llvm-readobj/Inputs/st-other.obj.elf-mips16 +third_party/llvm/test/tools/llvm-readobj/Inputs/symbols-proc-specific.elf-hexagon +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.exe.coff-arm +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.exe.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.coff-arm +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.coff-arm64 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.coff-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.coff-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.elf-amdhsa-gfx803 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.elf-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.elf-lanai +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.elf-mipsel +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.elf-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.macho-arm +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.macho-i386 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.macho-ppc +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.macho-ppc64 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.macho-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/trivial.obj.wasm +third_party/llvm/test/tools/llvm-readobj/Inputs/verdef.elf-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/verneed.elf-x86-64 +third_party/llvm/test/tools/llvm-readobj/Inputs/zero-string-table.obj.coff-i386 +third_party/llvm/test/tools/llvm-size/Inputs/darwin-m.o +third_party/llvm/test/tools/llvm-size/Inputs/darwin-m1.o +third_party/llvm/test/tools/llvm-symbolizer/Inputs/addr.exe +third_party/llvm/test/tools/llvm-symbolizer/Inputs/coff-dwarf.exe +third_party/llvm/test/tools/llvm-symbolizer/Inputs/coff-exports.exe +third_party/llvm/test/tools/llvm-symbolizer/Inputs/discrim +third_party/llvm/test/tools/llvm-symbolizer/Inputs/dsym-test-exe +third_party/llvm/test/tools/llvm-symbolizer/Inputs/dsym-test-exe-differentname.dSYM/Contents/Resources/DWARF/dsym-test-exe-second +third_party/llvm/test/tools/llvm-symbolizer/Inputs/dsym-test-exe-second +third_party/llvm/test/tools/llvm-symbolizer/Inputs/dsym-test-exe.dSYM/Contents/Resources/DWARF/dsym-test-exe +third_party/llvm/test/tools/llvm-symbolizer/Inputs/fat.o +third_party/llvm/test/tools/llvm-symbolizer/Inputs/ppc64 +third_party/llvm/test/tools/llvm-symbolizer/Inputs/print_context.o +third_party/llvm/test/tools/llvm-symbolizer/pdb/Inputs/missing_pdb.exe +third_party/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.exe +third_party/llvm/test/tools/llvm-symbolizer/pdb/Inputs/test.pdb +third_party/llvm/test/tools/llvm-xray/X86/Inputs/all-sleds.o +third_party/llvm/test/tools/llvm-xray/X86/Inputs/elf32-noxray.bin +third_party/llvm/test/tools/llvm-xray/X86/Inputs/elf64-badentrysizes.bin +third_party/llvm/test/tools/llvm-xray/X86/Inputs/elf64-example.bin +third_party/llvm/test/tools/llvm-xray/X86/Inputs/elf64-noinstr-map.bin +third_party/llvm/test/tools/llvm-xray/X86/Inputs/elf64-objcopied-instrmap.bin +third_party/llvm/test/tools/llvm-xray/X86/Inputs/elf64-sample-o2.bin +third_party/llvm/test/tools/llvm-xray/X86/Inputs/fdr-log-arg1.xray +third_party/llvm/test/tools/llvm-xray/X86/Inputs/fdr-log-version-1.xray +third_party/llvm/test/tools/llvm-xray/X86/Inputs/naive-log-simple.xray +third_party/llvm/test/tools/llvm-xray/X86/Inputs/naive-with-arg1-entries.xray +third_party/llvm/test/tools/obj2yaml/Inputs/crt1.o +third_party/llvm/test/tools/sancov/Inputs/test-darwin_x86_64 +third_party/llvm/test/tools/sancov/Inputs/test-linux_android_aarch64 +third_party/llvm/test/tools/sancov/Inputs/test-linux_x86_64 +third_party/llvm/test/tools/sancov/Inputs/test-linux_x86_64.0.sancov +third_party/llvm/test/tools/sancov/Inputs/test-linux_x86_64.1.sancov +third_party/llvm/test/tools/sancov/Inputs/test-windows_x86_64 +third_party/llvm/tools/clang/test/Driver/at_file.c.args.utf16le +third_party/llvm/tools/clang/test/Driver/clang-offload-bundler.c.o +third_party/llvm/tools/clang/test/Misc/Inputs/serialized-diags-stable.dia +third_party/llvm/tools/clang/test/Modules/modules.idx +third_party/llvm/tools/clang/test/Preprocessor/Inputs/headermap-rel/foo.hmap +third_party/llvm/tools/clang/test/Preprocessor/Inputs/headermap-rel2/project-headers.hmap +third_party/llvm/tools/clang/test/Preprocessor/Inputs/nonportable-hmaps/foo.hmap +third_party/llvm/tools/clang/test/Profile/Inputs/c-general.profdata.v1 +third_party/llvm/tools/clang/test/Profile/Inputs/c-general.profdata.v3 +third_party/llvm/tools/clang/test/Profile/Inputs/cxx-hash-v2.profdata.v5 +third_party/llvm/tools/clang/tools/scan-view/share/FileRadar.scpt +third_party/llvm/tools/lld/test/COFF/Inputs/cl-gl.obj +third_party/llvm/tools/lld/test/COFF/Inputs/combined-resources-2.res +third_party/llvm/tools/lld/test/COFF/Inputs/combined-resources.res +third_party/llvm/tools/lld/test/COFF/Inputs/except_handler3.lib +third_party/llvm/tools/lld/test/COFF/Inputs/hello64.obj +third_party/llvm/tools/lld/test/COFF/Inputs/imports-mangle.lib +third_party/llvm/tools/lld/test/COFF/Inputs/library-arm64.lib +third_party/llvm/tools/lld/test/COFF/Inputs/library.lib +third_party/llvm/tools/lld/test/COFF/Inputs/library2-arm64.lib +third_party/llvm/tools/lld/test/COFF/Inputs/pdb-diff-cl.pdb +third_party/llvm/tools/lld/test/COFF/Inputs/pdb-diff.obj +third_party/llvm/tools/lld/test/COFF/Inputs/pdb-import-gc.lib +third_party/llvm/tools/lld/test/COFF/Inputs/resource.res +third_party/llvm/tools/lld/test/COFF/Inputs/ret42.lib +third_party/llvm/tools/lld/test/COFF/Inputs/ret42.obj +third_party/llvm/tools/lld/test/COFF/Inputs/std32.lib +third_party/llvm/tools/lld/test/COFF/Inputs/std64.lib +third_party/llvm/tools/lld/test/ELF/Inputs/amdgpu-kernel-2.o +third_party/llvm/tools/lld/test/ELF/Inputs/arm-thumb-narrow-branch.o +third_party/llvm/tools/lld/test/ELF/Inputs/corrupt-version-reference.so +third_party/llvm/tools/lld/test/ELF/Inputs/discard-merge-unnamed.o +third_party/llvm/tools/lld/test/ELF/Inputs/dtrace-r.o +third_party/llvm/tools/lld/test/ELF/Inputs/i386-got32x-baseless.elf +third_party/llvm/tools/lld/test/ELF/Inputs/llvm33-rela-outside-group.o +third_party/llvm/tools/lld/test/ELF/Inputs/local-symbol-in-dso.so +third_party/llvm/tools/lld/test/ELF/Inputs/mips-concatenated-abiflags.o +third_party/llvm/tools/lld/test/ELF/Inputs/mips-gp-disp.so +third_party/llvm/tools/lld/test/ELF/Inputs/mips-gp0-non-zero.o +third_party/llvm/tools/lld/test/ELF/Inputs/mips-n32-rels.o +third_party/llvm/tools/lld/test/ELF/Inputs/mips-options.o +third_party/llvm/tools/lld/test/ELF/Inputs/no-symtab.o +third_party/llvm/tools/lld/test/ELF/Inputs/sht-group-gold-r.elf +third_party/llvm/tools/lld/test/ELF/Inputs/version-undef-sym.so +third_party/llvm/tools/lld/test/ELF/Inputs/version-use.so +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/binding.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/broken-relaxation-x64.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/cie-version2.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/common-symbol-alignment.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/common-symbol-alignment2.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/data-encoding.a +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/dynamic-section-sh_size.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/file-class.a +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/invalid-e_shnum.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/mips-invalid-options-descriptor.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/multiple-eh-relocs.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/section-alignment-notpow2.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/section-index.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/shentsize-zero.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/sht-group.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/symbol-index.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/symbol-name-offset.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/symtab-sh_info.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/symtab-sh_info2.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/symtab-sh_info3.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/tls-symbol.elf +third_party/llvm/tools/lld/test/ELF/invalid/Inputs/too-short.elf +third_party/llvm/tools/lld/test/ELF/lto/Inputs/drop-debug-info.bc +third_party/llvm/tools/lld/test/mach-o/Inputs/lib-search-paths/usr/lib/libmyshared.dylib +third_party/llvm/tools/lld/test/mach-o/Inputs/lib-search-paths/usr/lib/libmystatic.a +third_party/llvm/tools/lld/test/mach-o/Inputs/lib-search-paths/usr/local/lib/file.o +third_party/llvm/tools/lld/test/mach-o/Inputs/libbar.a +third_party/llvm/tools/lld/test/mach-o/Inputs/libfoo.a third_party/lzma_sdk/7zr.exe third_party/lzma_sdk/Executable/7zS2.sfx third_party/lzma_sdk/Executable/7za.exe @@ -8558,17 +9366,16 @@ third_party/sfntly/src/java/lib/icu4j-4_8_1_1.jar third_party/sfntly/src/java/lib/icu4j-charset-4_8_1_1.jar third_party/sfntly/src/java/lib/jcommander-1.27.jar third_party/sfntly/src/java/lib/junit-4.10.jar -third_party/skia/docs/SkPaint_Reference.bmh third_party/skia/platform_tools/android/apps/gradle/wrapper/gradle-wrapper.jar third_party/skia/platform_tools/android/bin/linux/perfhost third_party/skia/platform_tools/android/bin/mac/perfhost third_party/skia/resources/crbug769134.fil -third_party/skia/resources/dng_with_preview.dng third_party/skia/resources/empty_images/zero-height.wbmp third_party/skia/resources/empty_images/zero-width.wbmp third_party/skia/resources/empty_images/zero_height.tiff third_party/skia/resources/fonts/Roboto2-Regular.pfb third_party/skia/resources/fonts/test.ttc +third_party/skia/resources/icc_profiles/AdobeRGB1998.icc third_party/skia/resources/icc_profiles/HP_Z32x.icc third_party/skia/resources/icc_profiles/HP_ZR30w.icc third_party/skia/resources/icc_profiles/SM2333SW.icc @@ -8576,9 +9383,21 @@ third_party/skia/resources/icc_profiles/invalid_color_lut.icc third_party/skia/resources/icc_profiles/srgb_lab_pcs.icc third_party/skia/resources/icc_profiles/upperLeft.icc third_party/skia/resources/icc_profiles/upperRight.icc -third_party/skia/resources/mandrill.wbmp -third_party/skia/resources/sample_1mp.dng -third_party/skia/resources/sample_1mp_rotated.dng +third_party/skia/resources/images/dng_with_preview.dng +third_party/skia/resources/images/mandrill.wbmp +third_party/skia/resources/images/sample_1mp.dng +third_party/skia/resources/images/sample_1mp_rotated.dng +third_party/skia/site/dev/design/conical/corollary2.2.1.ggb +third_party/skia/site/dev/design/conical/corollary2.2.2.ggb +third_party/skia/site/dev/design/conical/corollary2.2.ggb +third_party/skia/site/dev/design/conical/corollary2.3.1.ggb +third_party/skia/site/dev/design/conical/corollary2.3.2.ggb +third_party/skia/site/dev/design/conical/corollary2.3.3.ggb +third_party/skia/site/dev/design/conical/lemma1.ggb +third_party/skia/site/dev/design/conical/lemma3.1.ggb +third_party/skia/site/dev/design/conical/lemma3.2.ggb +third_party/skia/site/dev/design/conical/lemma3.ggb +third_party/skia/site/dev/design/conical/lemma4.ggb third_party/snappy/src/testdata/baddata1.snappy third_party/snappy/src/testdata/baddata2.snappy third_party/snappy/src/testdata/baddata3.snappy @@ -8645,9 +9464,9 @@ third_party/swiftshader/third_party/PowerVR_SDK/Examples/Intermediate/Displaceme third_party/swiftshader/third_party/PowerVR_SDK/Utilities/Filewrap/Windows_x86_32/Filewrap.exe third_party/tlslite/tests/verifierDB third_party/visualmetrics/src/tests/data/lemons/video.mp4 -third_party/vulkan-validation-layers/src/build-android/gradle-templates/gradle/wrapper/gradle-wrapper.jar third_party/vulkan-validation-layers/src/demos/lunarg.ppm third_party/vulkan-validation-layers/src/demos/smoke/android/gradle/wrapper/gradle-wrapper.jar +third_party/vulkan-validation-layers/src/layers/linux/libVkLayer_device_simulation.so third_party/vulkan-validation-layers/src/windowsRuntimeInstaller/VULKANRT_LICENSE.rtf third_party/wayland/src/cursor/cursor.pcf third_party/wds/src/datadumps/information-elements.pcapng @@ -8897,13 +9716,14 @@ third_party/zlib/google/test/data/evil_via_invalid_utf8.zip third_party/zlib/google/test/data/test.zip third_party/zlib/google/test/data/test_mismatch_size.zip third_party/zlib/google/test/data/test_nocompress.zip -tools/binary_size/libsupersize/testdata/mock_output_directory/elf +tools/binary_size/libsupersize/testdata/mock_output_directory/elf.begin tools/binary_size/libsupersize/testdata/mock_output_directory/en-US.pak tools/binary_size/libsupersize/testdata/mock_output_directory/obj/base/base/page_allocator.o tools/binary_size/libsupersize/testdata/mock_output_directory/obj/third_party/icu/icuuc/ucnv_ext.o tools/grit/grit/testdata/klonk-alternate-skeleton.rc tools/grit/grit/testdata/klonk.rc tools/origin_trials/eftest.key +tools/perf/contrib/leak_detection/data/leak_detection_003.wprgo tools/swarming_client/tests/archive.tar tools/win/ChromeDebug/ChromeDebug/Key.snk tools/win/ChromeDebug/LowLevel/Key.snk diff --git a/resources/config_bundles/common/version.ini b/resources/config_bundles/common/version.ini index 02d8a2cd..f6364d10 100644 --- a/resources/config_bundles/common/version.ini +++ b/resources/config_bundles/common/version.ini @@ -1,3 +1,3 @@ [version] -chromium_version = 64.0.3282.186 +chromium_version = 65.0.3325.162 release_revision = 1 diff --git a/resources/config_bundles/linux_rooted/gn_flags.map b/resources/config_bundles/linux_rooted/gn_flags.map index 99c0b35c..532ce999 100644 --- a/resources/config_bundles/linux_rooted/gn_flags.map +++ b/resources/config_bundles/linux_rooted/gn_flags.map @@ -10,7 +10,6 @@ optimize_for_size=false use_allocator="none" use_cups=true use_custom_libcxx=false -use_gconf=false use_gold=true use_gtk3=true use_jumbo_build=true diff --git a/resources/config_bundles/linux_rooted/patch_order.list b/resources/config_bundles/linux_rooted/patch_order.list index 596b44c6..47ca3a7b 100644 --- a/resources/config_bundles/linux_rooted/patch_order.list +++ b/resources/config_bundles/linux_rooted/patch_order.list @@ -1,6 +1,4 @@ -inox-patchset/chromium-vaapi-move.patch -inox-patchset/chromium-vaapi-init.patch -inox-patchset/chromium-vaapi-rgbx.patch +inox-patchset/chromium-vaapi-init-r16.patch inox-patchset/chromium-vaapi-r16.patch debian/master-preferences.patch diff --git a/resources/config_bundles/opensuse/gn_flags.map b/resources/config_bundles/opensuse/gn_flags.map index 9a7a3ed4..ef47700a 100644 --- a/resources/config_bundles/opensuse/gn_flags.map +++ b/resources/config_bundles/opensuse/gn_flags.map @@ -1,4 +1,5 @@ -is_clang=false +clang_base_path=getenv("CLANG_BASE_PATH") +clang_use_chrome_plugins=false is_component_build=false is_component_ffmpeg=true link_pulseaudio=true @@ -7,7 +8,6 @@ use_allocator="tcmalloc" use_aura=true use_cups=true use_custom_libcxx=false -use_gconf=true use_gold=true use_gtk3=true use_kerberos=false diff --git a/resources/config_bundles/opensuse/patch_order.list b/resources/config_bundles/opensuse/patch_order.list index e7268552..ba0c6a9d 100644 --- a/resources/config_bundles/opensuse/patch_order.list +++ b/resources/config_bundles/opensuse/patch_order.list @@ -1,11 +1,7 @@ -inox-patchset/chromium-vaapi-move.patch -inox-patchset/chromium-vaapi-init.patch -inox-patchset/chromium-vaapi-rgbx.patch +inox-patchset/chromium-vaapi-init-r16.patch inox-patchset/chromium-vaapi-r16.patch opensuse/fix-network-api-crash.patch -opensuse/gcc60-fixes.patch opensuse/master-preferences.patch -opensuse/bootstrap-gcc-fix.patch opensuse/fix-kernel-user-namespace-crash.patch opensuse/chromium-dma-buf.patch diff --git a/resources/packaging/opensuse/README b/resources/packaging/opensuse/README new file mode 100644 index 00000000..75e5d51a --- /dev/null +++ b/resources/packaging/opensuse/README @@ -0,0 +1,17 @@ +Thanks for using ungoogled-chromium! You have downloaded a Linux build. + +Before you run, you must setup your system so the browser's sandboxing will work. There are two options: +* Use the user namespace sandbox. This is the preferred option. +* Use the SUID sandbox. This should be used on systems that do not have support for user namespaces. + +How to setup the SUID sandbox: +1. Rename "chrome_sandbox" to "chrome-sandbox" +2. Set the file mode to 4755 +3. Set the group to root + +How to setup the user namespace sandbox: +The kernel needs to be configured to allow user namespaces. The method to enable it varies per system. Sometimes it's enabled by default. If it's not, sometimes sysctl can be used to set kernel.unprivileged_userns_clone to 1. There may also be a way to set it via the /sys partition. Specific instructions should be found online. + +Running the browser: + +Once the sandbox is setup, the browser can be run by using the chrome-wrapper script. diff --git a/resources/packaging/opensuse/build.sh.in b/resources/packaging/opensuse/build.sh.in new file mode 100755 index 00000000..a631c9d3 --- /dev/null +++ b/resources/packaging/opensuse/build.sh.in @@ -0,0 +1,17 @@ +#!/bin/bash + +set -eux + +# Simple build script for Linux + +# Generally, utilikit configuration types using Clang read CLANG_BASE_PATH to determine the Clang installation path. +# If it needs to be changed, add "export CLANG_BASE_PATH=..." below or set it from outside the script. +true ${CLANG_BASE_PATH:=/usr} # http://www.tldp.org/LDP/abs/html/parameter-substitution.html + +rm -rf out || true +mkdir out +mkdir $ungoog{build_output} +env QUILT_PATCHES=./ungoogled_packaging/patches quilt push -a +./tools/gn/bootstrap/bootstrap.py -o $ungoog{build_output}/gn -s -j 4 +./$ungoog{build_output}/gn gen $ungoog{build_output} --args='$ungoog{gn_args_string}' --fail-on-unused-args +ninja -C $ungoog{build_output} chrome chrome_sandbox chromedriver diff --git a/resources/packaging/opensuse/package.sh.in b/resources/packaging/opensuse/package.sh.in new file mode 100755 index 00000000..45156324 --- /dev/null +++ b/resources/packaging/opensuse/package.sh.in @@ -0,0 +1,22 @@ +#!/bin/bash + +set -eux + +TARPREFIX=ungoogled-chromium_$ungoog{version_string}_linux +CURRENTDIR=$(dirname $(readlink -f $0)) +# Assume buildspace tree is outside this script's directory +BUILDSPACE_TREE=$(dirname "$CURRENTDIR") +ARCHIVE_OUTPUT=$(dirname "$BUILDSPACE_TREE")/$TARPREFIX.tar + +# Include main build outputs +pushd "$BUILDSPACE_TREE/$ungoog{build_output}" +"$CURRENTDIR/scripts/list_build_outputs.py" --platform linux --tree "$BUILDSPACE_TREE" --build-outputs '$ungoog{build_output}' | tar --transform "s,^,$TARPREFIX/," -c -v -f "$ARCHIVE_OUTPUT" --verbatim-files-from -T - +popd + +# Include additional packaging files +pushd "$CURRENTDIR/archive_include" +find -type f -printf '%P\0' | tar --transform "s,^,$TARPREFIX/," -r -v -f "$ARCHIVE_OUTPUT" --null -T - +popd + +rm -f "$ARCHIVE_OUTPUT".xz +xz -z "$ARCHIVE_OUTPUT" diff --git a/resources/patches/debian/disable/device-notifications.patch b/resources/patches/debian/disable/device-notifications.patch index 07b3b3f8..c1fc5e10 100644 --- a/resources/patches/debian/disable/device-notifications.patch +++ b/resources/patches/debian/disable/device-notifications.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/856571 --- a/chrome/browser/printing/cloud_print/privet_notifications.cc +++ b/chrome/browser/printing/cloud_print/privet_notifications.cc -@@ -227,8 +227,7 @@ void PrivetNotificationService::DeviceCa +@@ -228,8 +228,7 @@ // static bool PrivetNotificationService::IsEnabled() { base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); diff --git a/resources/patches/debian/disable/fonts.patch b/resources/patches/debian/disable/fonts.patch index 763cd03b..67b9b5fc 100644 --- a/resources/patches/debian/disable/fonts.patch +++ b/resources/patches/debian/disable/fonts.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/content/shell/BUILD.gn +++ b/content/shell/BUILD.gn -@@ -590,7 +590,7 @@ if (is_android) { +@@ -589,7 +589,7 @@ [ "//third_party/crashpad/crashpad/handler:crashpad_handler" ] } diff --git a/resources/patches/debian/disable/fuzzers.patch b/resources/patches/debian/disable/fuzzers.patch index fbc123b9..38f3df04 100644 --- a/resources/patches/debian/disable/fuzzers.patch +++ b/resources/patches/debian/disable/fuzzers.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/BUILD.gn +++ b/BUILD.gn -@@ -698,8 +698,7 @@ group("gn_all") { +@@ -697,8 +697,7 @@ } } diff --git a/resources/patches/debian/disable/google-api-warning.patch b/resources/patches/debian/disable/google-api-warning.patch index 649008c2..7ee5a5c9 100644 --- a/resources/patches/debian/disable/google-api-warning.patch +++ b/resources/patches/debian/disable/google-api-warning.patch @@ -3,12 +3,12 @@ author: Michael Gilbert --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -791,8 +791,6 @@ void StartupBrowserCreatorImpl::AddInfoB - !command_line_.HasSwitch(switches::kTestType) && - !command_line_.HasSwitch(switches::kEnableAutomation)) { +@@ -797,8 +797,6 @@ chrome::ShowBadFlagsPrompt(browser); -- GoogleApiKeysInfoBarDelegate::Create(InfoBarService::FromWebContents( -- browser->tab_strip_model()->GetActiveWebContents())); - ObsoleteSystemInfoBarDelegate::Create(InfoBarService::FromWebContents( - browser->tab_strip_model()->GetActiveWebContents())); - + InfoBarService* infobar_service = InfoBarService::FromWebContents( + browser->tab_strip_model()->GetActiveWebContents()); +- if (!google_apis::HasKeysConfigured()) +- GoogleApiKeysInfoBarDelegate::Create(infobar_service); + if (ObsoleteSystem::IsObsoleteNowOrSoon()) { + PrefService* local_state = g_browser_process->local_state(); + if (!local_state || diff --git a/resources/patches/debian/disable/welcome-page.patch b/resources/patches/debian/disable/welcome-page.patch index 26418ff7..8e05eebc 100644 --- a/resources/patches/debian/disable/welcome-page.patch +++ b/resources/patches/debian/disable/welcome-page.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/857767 --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc -@@ -1023,7 +1023,7 @@ void ProfileManager::InitProfileUserPref +@@ -1028,7 +1028,7 @@ profile->GetPrefs()->SetString(prefs::kSupervisedUserId, supervised_user_id); } diff --git a/resources/patches/debian/fixes/gpu-timeout.patch b/resources/patches/debian/fixes/gpu-timeout.patch index bff34f32..c92eaef1 100644 --- a/resources/patches/debian/fixes/gpu-timeout.patch +++ b/resources/patches/debian/fixes/gpu-timeout.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/781940 --- a/gpu/ipc/service/gpu_watchdog_thread.cc +++ b/gpu/ipc/service/gpu_watchdog_thread.cc -@@ -43,7 +43,7 @@ const int kGpuTimeout = 30000; +@@ -42,7 +42,7 @@ // infected machines. const int kGpuTimeout = 15000; #else diff --git a/resources/patches/debian/fixes/mojo.patch b/resources/patches/debian/fixes/mojo.patch index 97d1714d..8081543d 100644 --- a/resources/patches/debian/fixes/mojo.patch +++ b/resources/patches/debian/fixes/mojo.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/content/shell/BUILD.gn +++ b/content/shell/BUILD.gn -@@ -93,8 +93,6 @@ static_library("content_shell_lib") { +@@ -93,8 +93,6 @@ "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h", "browser/layout_test/layout_test_url_request_context_getter.cc", "browser/layout_test/layout_test_url_request_context_getter.h", @@ -12,7 +12,7 @@ author: Michael Gilbert "browser/layout_test/secondary_test_window_observer.cc", "browser/layout_test/secondary_test_window_observer.h", "browser/layout_test/test_info_extractor.cc", -@@ -244,9 +242,7 @@ static_library("content_shell_lib") { +@@ -244,9 +242,7 @@ "//content/public/common", "//content/public/common:service_names", "//content/shell/test_runner:test_runner", @@ -32,7 +32,7 @@ author: Michael Gilbert #include "content/shell/browser/shell_browser_context.h" #include "content/shell/common/layout_test/layout_test_switches.h" #include "content/shell/common/shell_messages.h" -@@ -32,11 +31,6 @@ namespace { +@@ -32,11 +31,6 @@ LayoutTestContentBrowserClient* g_layout_test_browser_client; @@ -44,7 +44,7 @@ author: Michael Gilbert } // namespace LayoutTestContentBrowserClient::LayoutTestContentBrowserClient() { -@@ -98,7 +92,6 @@ void LayoutTestContentBrowserClient::Exp +@@ -98,7 +92,6 @@ registry->AddInterface(base::Bind(&bluetooth::FakeBluetooth::Create), ui_task_runner); @@ -52,7 +52,7 @@ author: Michael Gilbert } void LayoutTestContentBrowserClient::OverrideWebkitPrefs( -@@ -192,7 +185,6 @@ bool LayoutTestContentBrowserClient::Can +@@ -193,7 +186,6 @@ void LayoutTestContentBrowserClient::ExposeInterfacesToFrame( service_manager::BinderRegistryWithArgs* registry) { diff --git a/resources/patches/debian/gn/narrowing.patch b/resources/patches/debian/gn/narrowing.patch index 744a91f0..6936f9ff 100644 --- a/resources/patches/debian/gn/narrowing.patch +++ b/resources/patches/debian/gn/narrowing.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py -@@ -365,7 +365,7 @@ def write_gn_ninja(path, root_gen_dir, o +@@ -378,7 +378,7 @@ '-pipe', '-fno-exceptions' ]) diff --git a/resources/patches/debian/gn/parallel.patch b/resources/patches/debian/gn/parallel.patch index 5c4ff573..e1df6386 100644 --- a/resources/patches/debian/gn/parallel.patch +++ b/resources/patches/debian/gn/parallel.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py -@@ -115,6 +115,7 @@ def main(argv): +@@ -115,6 +115,7 @@ 'relative to the src directory. (eg. out/Release)') parser.add_option('-v', '--verbose', action='store_true', help='Log more details') @@ -11,7 +11,7 @@ author: Michael Gilbert options, args = parser.parse_args(argv) if args: -@@ -221,6 +222,8 @@ def build_gn_with_ninja_manually(tempdir +@@ -234,6 +235,8 @@ cmd = ['ninja', '-C', tempdir, '-w', 'dupbuild=err'] if options.verbose: cmd.append('-v') diff --git a/resources/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch b/resources/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch index 0273505a..3c0fbb3a 100644 --- a/resources/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch +++ b/resources/patches/inox-patchset/0001-fix-building-without-safebrowsing.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -639,6 +639,7 @@ void SetApplicationLocaleOnIOThread(cons +@@ -645,6 +645,7 @@ void SetApplicationLocaleOnIOThread(cons g_io_thread_application_locale.Get() = locale; } @@ -8,7 +8,7 @@ // An implementation of the SSLCertReporter interface used by // SSLErrorHandler. Uses CertificateReportingService to send reports. The // service handles queueing and re-sending of failed reports. Each certificate -@@ -654,7 +655,6 @@ class CertificateReportingServiceCertRep +@@ -660,7 +661,6 @@ class CertificateReportingServiceCertRep // SSLCertReporter implementation void ReportInvalidCertificateChain( const std::string& serialized_report) override { @@ -16,7 +16,7 @@ } private: -@@ -662,6 +662,7 @@ class CertificateReportingServiceCertRep +@@ -668,6 +668,7 @@ class CertificateReportingServiceCertRep DISALLOW_COPY_AND_ASSIGN(CertificateReportingServiceCertReporter); }; @@ -24,7 +24,7 @@ #if defined(OS_ANDROID) float GetDeviceScaleAdjustment() { -@@ -1752,7 +1753,7 @@ void ChromeContentBrowserClient::AppendE +@@ -1707,7 +1708,7 @@ void ChromeContentBrowserClient::AppendE // Disable client-side phishing detection in the renderer if it is // disabled in the Profile preferences or the browser process. if (!prefs->GetBoolean(prefs::kSafeBrowsingEnabled) || @@ -33,16 +33,16 @@ command_line->AppendSwitch( switches::kDisableClientSidePhishingDetection); } -@@ -2361,7 +2362,7 @@ void ChromeContentBrowserClient::AllowCe +@@ -2304,7 +2305,7 @@ void ChromeContentBrowserClient::AllowCe SSLErrorHandler::HandleSSLError( - web_contents, cert_error, ssl_info, request_url, strict_enforcement, + web_contents, cert_error, ssl_info, request_url, expired_previous_decision, - std::make_unique(web_contents), + nullptr, callback, SSLErrorHandler::BlockingPageReadyCallback()); } -@@ -2551,8 +2552,6 @@ bool ChromeContentBrowserClient::CanCrea +@@ -2535,8 +2536,6 @@ bool ChromeContentBrowserClient::CanCrea void ChromeContentBrowserClient::ResourceDispatcherHostCreated() { DCHECK_CURRENTLY_ON(BrowserThread::UI); @@ -69,7 +69,7 @@ #if defined(OS_WIN) if (base::FeatureList::IsEnabled(features::kModuleDatabase)) { // Add the ModuleEventSink interface. This is the interface used by renderer -@@ -3508,7 +3496,7 @@ ChromeContentBrowserClient::CreateThrott +@@ -3491,7 +3479,7 @@ ChromeContentBrowserClient::CreateThrott switches::kCommittedInterstitials)) { throttles.push_back(std::make_unique( handle, @@ -78,7 +78,7 @@ base::Bind(&SSLErrorHandler::HandleSSLError))); } -@@ -3697,12 +3685,6 @@ ChromeContentBrowserClient::CreateURLLoa +@@ -3684,12 +3672,6 @@ ChromeContentBrowserClient::CreateURLLoa std::vector> result; @@ -88,10 +88,10 @@ - if (safe_browsing_throttle) - result.push_back(std::move(safe_browsing_throttle)); - - return result; - } - -@@ -3781,18 +3763,3 @@ void ChromeContentBrowserClient::SetDefa + ChromeNavigationUIData* chrome_navigation_ui_data = + static_cast(navigation_ui_data); + if (chrome_navigation_ui_data && +@@ -3872,18 +3854,3 @@ void ChromeContentBrowserClient::SetDefa const storage::QuotaSettings* settings) { g_default_quota_settings = settings; } @@ -112,7 +112,7 @@ -} --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc -@@ -494,18 +494,6 @@ ProfileImpl::ProfileImpl( +@@ -480,18 +480,6 @@ ProfileImpl::ProfileImpl( create_mode == CREATE_MODE_SYNCHRONOUS); #endif @@ -131,7 +131,7 @@ content::BrowserContext::Initialize(this, path_); { -@@ -514,7 +502,7 @@ ProfileImpl::ProfileImpl( +@@ -500,7 +488,7 @@ ProfileImpl::ProfileImpl( ->CreateDelegate(); delegate->InitPrefRegistry(pref_registry_.get()); prefs_ = chrome_prefs::CreateProfilePrefs( @@ -142,7 +142,7 @@ GetIOTaskRunner(), std::move(delegate)); --- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc +++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc -@@ -406,8 +406,7 @@ void NotifyUIThreadOfRequestComplete( +@@ -417,8 +417,7 @@ void NotifyUIThreadOfRequestComplete( } // namespace ChromeResourceDispatcherHostDelegate::ChromeResourceDispatcherHostDelegate() @@ -152,7 +152,7 @@ #if BUILDFLAG(ENABLE_EXTENSIONS) , user_script_listener_(new extensions::UserScriptListener()) #endif -@@ -457,8 +456,6 @@ void ChromeResourceDispatcherHostDelegat +@@ -468,8 +467,6 @@ void ChromeResourceDispatcherHostDelegat content::AppCacheService* appcache_service, ResourceType resource_type, std::vector>* throttles) { @@ -161,7 +161,7 @@ ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); client_hints::RequestBeginning(request, io_data->GetCookieSettings()); -@@ -644,13 +641,13 @@ void ChromeResourceDispatcherHostDelegat +@@ -642,13 +639,13 @@ void ChromeResourceDispatcherHostDelegat content::ResourceThrottle* first_throttle = NULL; #if defined(OS_ANDROID) first_throttle = DataReductionProxyResourceThrottle::MaybeCreate( @@ -179,7 +179,7 @@ --- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc +++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc -@@ -248,6 +248,7 @@ BadClockBlockingPage* CreateBadClockBloc +@@ -250,6 +250,7 @@ BadClockBlockingPage* CreateBadClockBloc base::Callback()); } @@ -187,7 +187,7 @@ safe_browsing::SafeBrowsingBlockingPage* CreateSafeBrowsingBlockingPage( content::WebContents* web_contents) { safe_browsing::SBThreatType threat_type = -@@ -303,7 +304,9 @@ safe_browsing::SafeBrowsingBlockingPage* +@@ -305,7 +306,9 @@ safe_browsing::SafeBrowsingBlockingPage* g_browser_process->safe_browsing_service()->ui_manager().get(), web_contents, main_frame_url, resource); } @@ -197,7 +197,7 @@ TestSafeBrowsingBlockingPageQuiet* CreateSafeBrowsingQuietBlockingPage( content::WebContents* web_contents) { safe_browsing::SBThreatType threat_type = -@@ -351,6 +354,7 @@ TestSafeBrowsingBlockingPageQuiet* Creat +@@ -353,6 +356,7 @@ TestSafeBrowsingBlockingPageQuiet* Creat g_browser_process->safe_browsing_service()->ui_manager().get(), web_contents, main_frame_url, resource, is_giant_webview); } @@ -205,7 +205,7 @@ #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) CaptivePortalBlockingPage* CreateCaptivePortalBlockingPage( -@@ -455,8 +459,6 @@ void InterstitialHTMLSource::StartDataRe +@@ -457,8 +461,6 @@ void InterstitialHTMLSource::StartDataRe CreateSSLBlockingPage(web_contents, true /* is superfish */)); } else if (path_without_query == "/mitm-software-ssl") { interstitial_delegate.reset(CreateMITMSoftwareBlockingPage(web_contents)); @@ -214,7 +214,7 @@ } else if (path_without_query == "/clock") { interstitial_delegate.reset(CreateBadClockBlockingPage(web_contents)); #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) -@@ -467,11 +469,6 @@ void InterstitialHTMLSource::StartDataRe +@@ -469,11 +471,6 @@ void InterstitialHTMLSource::StartDataRe if (path_without_query == "/supervised_user") { html = GetSupervisedUserInterstitialHTML(path); @@ -334,7 +334,7 @@ } void ChromeDownloadManagerDelegate::Shutdown() { -@@ -556,16 +549,6 @@ download::InProgressCache* ChromeDownloa +@@ -555,16 +548,6 @@ download::InProgressCache* ChromeDownloa void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName( base::FilePath* filename) { @@ -353,7 +353,7 @@ void ChromeDownloadManagerDelegate::OpenDownloadUsingPlatformHandler( --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc -@@ -71,7 +71,6 @@ +@@ -70,7 +70,6 @@ #include "chrome/browser/printing/print_job_manager.h" #include "chrome/browser/printing/print_preview_dialog_controller.h" #include "chrome/browser/profiles/profile_manager.h" @@ -361,15 +361,7 @@ #include "chrome/browser/shell_integration.h" #include "chrome/browser/status_icons/status_tray.h" #include "chrome/browser/ui/browser_dialogs.h" -@@ -220,7 +219,6 @@ BrowserProcessImpl::BrowserProcessImpl( - created_icon_manager_(false), - created_notification_ui_manager_(false), - created_notification_bridge_(false), -- created_safe_browsing_service_(false), - created_subresource_filter_ruleset_service_(false), - created_optimization_guide_service_(false), - shutting_down_(false), -@@ -309,8 +307,6 @@ void BrowserProcessImpl::StartTearDown() +@@ -295,8 +294,6 @@ void BrowserProcessImpl::StartTearDown() // that URLFetcher operation before going away.) metrics_services_manager_.reset(); intranet_redirect_detector_.reset(); @@ -378,7 +370,7 @@ network_time_tracker_.reset(); #if BUILDFLAG(ENABLE_PLUGINS) plugins_resource_service_.reset(); -@@ -922,22 +918,6 @@ StatusTray* BrowserProcessImpl::status_t +@@ -911,22 +908,6 @@ StatusTray* BrowserProcessImpl::status_t return status_tray_.get(); } @@ -401,7 +393,7 @@ subresource_filter::ContentRulesetService* BrowserProcessImpl::subresource_filter_ruleset_service() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -1230,16 +1210,6 @@ void BrowserProcessImpl::CreateBackgroun +@@ -1219,16 +1200,6 @@ void BrowserProcessImpl::CreateBackgroun #endif } @@ -420,7 +412,7 @@ created_subresource_filter_ruleset_service_ = true; --- a/chrome/browser/browser_process_impl.h +++ b/chrome/browser/browser_process_impl.h -@@ -134,9 +134,6 @@ class BrowserProcessImpl : public Browse +@@ -136,9 +136,6 @@ class BrowserProcessImpl : public Browse void set_background_mode_manager_for_test( std::unique_ptr manager) override; StatusTray* status_tray() override; @@ -430,19 +422,19 @@ subresource_filter::ContentRulesetService* subresource_filter_ruleset_service() override; optimization_guide::OptimizationGuideService* optimization_guide_service() -@@ -269,9 +266,6 @@ class BrowserProcessImpl : public Browse +@@ -274,9 +271,6 @@ class BrowserProcessImpl : public Browse std::unique_ptr background_mode_manager_; #endif -- bool created_safe_browsing_service_; +- bool created_safe_browsing_service_ = false; - scoped_refptr safe_browsing_service_; - - bool created_subresource_filter_ruleset_service_; + bool created_subresource_filter_ruleset_service_ = false; std::unique_ptr subresource_filter_ruleset_service_; --- a/chrome/browser/browser_process.h +++ b/chrome/browser/browser_process.h -@@ -46,10 +46,6 @@ namespace content { +@@ -48,10 +48,6 @@ namespace content { class NetworkConnectionTracker; } @@ -453,7 +445,7 @@ namespace subresource_filter { class ContentRulesetService; } -@@ -126,10 +122,6 @@ namespace resource_coordinator { +@@ -128,10 +124,6 @@ namespace resource_coordinator { class TabManager; } @@ -464,7 +456,7 @@ // NOT THREAD SAFE, call only from the main thread. // These functions shouldn't return NULL unless otherwise noted. class BrowserProcess { -@@ -250,14 +242,6 @@ class BrowserProcess { +@@ -254,14 +246,6 @@ class BrowserProcess { // on this platform (or this is a unit test). virtual StatusTray* status_tray() = 0; @@ -529,7 +521,7 @@ #include "chrome/browser/download/download_history.h" #include "chrome/browser/download/download_item_model.h" #include "chrome/browser/download/download_prefs.h" -@@ -194,34 +193,6 @@ void MdDownloadsDOMHandler::HandleDrag(c +@@ -195,34 +194,6 @@ void MdDownloadsDOMHandler::HandleDrag(c void MdDownloadsDOMHandler::HandleSaveDangerous(const base::ListValue* args) { CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS); @@ -564,7 +556,7 @@ } void MdDownloadsDOMHandler::HandleDiscardDangerous( -@@ -323,12 +294,6 @@ void MdDownloadsDOMHandler::RemoveDownlo +@@ -324,12 +295,6 @@ void MdDownloadsDOMHandler::RemoveDownlo IdSet ids; for (auto* download : to_remove) { @@ -577,7 +569,7 @@ DownloadItemModel item_model(download); if (!item_model.ShouldShowInShelf() || download->GetState() == content::DownloadItem::IN_PROGRESS) { -@@ -381,33 +346,6 @@ void MdDownloadsDOMHandler::FinalizeRemo +@@ -382,33 +347,6 @@ void MdDownloadsDOMHandler::FinalizeRemo } } @@ -740,7 +732,7 @@ extension.erase(0, 1); --- a/chrome/browser/component_updater/file_type_policies_component_installer.cc +++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc -@@ -38,20 +38,6 @@ const uint8_t kPublicKeySHA256[32] = { +@@ -38,20 +38,6 @@ const uint8_t kFileTypePoliciesPublicKey const char kFileTypePoliciesManifestName[] = "File Type Policies"; void LoadFileTypesFromDisk(const base::FilePath& pb_path) { @@ -796,7 +788,7 @@ void DownloadTargetDeterminer::OnDownloadDestroyed( --- a/chrome/browser/permissions/permission_uma_util.cc +++ b/chrome/browser/permissions/permission_uma_util.cc -@@ -498,8 +498,6 @@ void PermissionUmaUtil::RecordPermission +@@ -423,8 +423,6 @@ void PermissionUmaUtil::RecordPermission requesting_origin, permission, action, source_ui, gesture_type, autoblocker->GetDismissCount(requesting_origin, permission), autoblocker->GetIgnoreCount(requesting_origin, permission)); @@ -819,7 +811,7 @@ return !download_item_->IsDone(); --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -2349,8 +2349,6 @@ split_static_library("browser") { +@@ -2388,8 +2388,6 @@ split_static_library("browser") { "download/download_commands.h", "download/download_crx_util.cc", "download/download_crx_util.h", @@ -830,7 +822,7 @@ "download/download_dir_util.cc", --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -2047,7 +2047,6 @@ split_static_library("ui") { +@@ -2070,7 +2070,6 @@ split_static_library("ui") { "cocoa/dialog_text_field_editor.mm", "cocoa/download/background_theme.h", "cocoa/download/background_theme.mm", @@ -838,7 +830,7 @@ "cocoa/download/download_item_button.h", "cocoa/download/download_item_button.mm", "cocoa/download/download_item_cell.h", -@@ -2707,7 +2706,6 @@ split_static_library("ui") { +@@ -2723,7 +2722,6 @@ split_static_library("ui") { "views/cookie_info_view.h", "views/device_chooser_content_view.cc", "views/device_chooser_content_view.h", @@ -848,7 +840,7 @@ "views/exclusive_access_bubble_views.cc", --- a/chrome/browser/ssl/security_state_tab_helper.cc +++ b/chrome/browser/ssl/security_state_tab_helper.cc -@@ -180,6 +180,7 @@ bool SecurityStateTabHelper::UsedPolicyI +@@ -208,6 +208,7 @@ bool SecurityStateTabHelper::UsedPolicyI security_state::MaliciousContentStatus SecurityStateTabHelper::GetMaliciousContentStatus() const { @@ -856,7 +848,7 @@ content::NavigationEntry* entry = web_contents()->GetController().GetVisibleEntry(); if (!entry) -@@ -235,6 +236,7 @@ SecurityStateTabHelper::GetMaliciousCont +@@ -263,6 +264,7 @@ SecurityStateTabHelper::GetMaliciousCont break; } } @@ -866,7 +858,19 @@ --- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc +++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc -@@ -720,40 +720,6 @@ void ChromeBrowsingDataRemoverDelegate:: +@@ -265,11 +265,6 @@ void ClearNetworkErrorLoggingOnIOThread( + net::URLRequestContextGetter* context, + const base::RepeatingCallback& origin_filter) { + DCHECK_CURRENTLY_ON(BrowserThread::IO); +- +- net::NetworkErrorLoggingDelegate* delegate = +- context->GetURLRequestContext()->network_error_logging_delegate(); +- if (delegate) +- delegate->RemoveBrowsingData(origin_filter); + } + + #if defined(OS_ANDROID) +@@ -745,40 +740,6 @@ void ChromeBrowsingDataRemoverDelegate:: CONTENT_SETTINGS_TYPE_CLIENT_HINTS, base::Time(), base::Bind(&WebsiteSettingsFilterAdapter, filter)); @@ -934,7 +938,7 @@ // Whether a web notification should be displayed when chrome is in full // screen mode. -@@ -516,13 +516,6 @@ PlatformNotificationServiceImpl::CreateN +@@ -512,13 +512,6 @@ PlatformNotificationServiceImpl::CreateN notification.set_type(message_center::NOTIFICATION_TYPE_IMAGE); notification.set_image( gfx::Image::CreateFrom1xBitmap(notification_resources.image)); @@ -1012,7 +1016,7 @@ #include "chrome/browser/sync/chrome_sync_client.h" #include "chrome/browser/sync/profile_sync_service_factory.h" #include "chrome/browser/translate/translate_ranker_metrics_provider.h" -@@ -699,9 +698,6 @@ void ChromeMetricsServiceClient::Registe +@@ -685,9 +684,6 @@ void ChromeMetricsServiceClient::Registe metrics_service_->RegisterMetricsProvider( base::MakeUnique()); @@ -1038,7 +1042,7 @@ // WebContentsObserver implementation. Sets a flag so that when the database --- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc +++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -214,7 +214,6 @@ EnsureBrowserContextKeyedServiceFactorie +@@ -217,7 +217,6 @@ EnsureBrowserContextKeyedServiceFactorie #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) CaptivePortalServiceFactory::GetInstance(); #endif @@ -1048,48 +1052,30 @@ #endif --- a/chrome/browser/ssl/captive_portal_blocking_page.cc +++ b/chrome/browser/ssl/captive_portal_blocking_page.cc -@@ -85,13 +85,6 @@ CaptivePortalBlockingPage::CaptivePortal - login_url_(login_url), - ssl_info_(ssl_info), - callback_(callback) { -- if (ssl_cert_reporter) { -- cert_report_helper_.reset(new CertReportHelper( -- std::move(ssl_cert_reporter), web_contents, request_url, ssl_info, -- certificate_reporting::ErrorReport::INTERSTITIAL_CAPTIVE_PORTAL, false, -- base::Time::Now(), nullptr)); -- } -- - captive_portal::CaptivePortalMetrics::LogCaptivePortalBlockingPageEvent( - captive_portal::CaptivePortalMetrics::SHOW_ALL); - } -@@ -209,10 +202,7 @@ void CaptivePortalBlockingPage::Populate +@@ -206,10 +206,7 @@ void CaptivePortalBlockingPage::Populate load_time_data->SetString("explanationParagraph", base::string16()); load_time_data->SetString("finalParagraph", base::string16()); -- if (cert_report_helper_) -- cert_report_helper_->PopulateExtendedReportingOption(load_time_data); +- if (cert_report_helper()) +- cert_report_helper()->PopulateExtendedReportingOption(load_time_data); - else - load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false); + load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false); } void CaptivePortalBlockingPage::CommandReceived(const std::string& command) { -@@ -287,12 +277,6 @@ void CaptivePortalBlockingPage::OnProcee - - void CaptivePortalBlockingPage::OnDontProceed() { - UpdateMetricsAfterSecurityInterstitial(); -- if (cert_report_helper_) { -- // Finish collecting information about invalid certificates, if the -- // user opted in to. -- cert_report_helper_->FinishCertCollection( -- certificate_reporting::ErrorReport::USER_DID_NOT_PROCEED); -- } - - // Need to explicity deny the certificate via the callback, otherwise memory - // is leaked. +@@ -224,8 +221,6 @@ void CaptivePortalBlockingPage::CommandR + security_interstitials::SecurityInterstitialCommand cmd = + static_cast( + command_num); +- cert_report_helper()->HandleReportingCommands(cmd, +- controller()->GetPrefService()); + switch (cmd) { + case security_interstitials::CMD_OPEN_LOGIN: + captive_portal::CaptivePortalMetrics::LogCaptivePortalBlockingPageEvent( --- a/chrome/browser/ssl/cert_report_helper.cc +++ b/chrome/browser/ssl/cert_report_helper.cc -@@ -153,8 +153,6 @@ void CertReportHelper::FinishCertCollect +@@ -183,8 +183,6 @@ void CertReportHelper::FinishCertCollect LOG(ERROR) << "Failed to serialize certificate report."; return; } @@ -1097,10 +1083,10 @@ - ssl_cert_reporter_->ReportInvalidCertificateChain(serialized_report); } - void CertReportHelper::SetSSLCertReporterForTesting( + bool CertReportHelper::ShouldShowCertificateReporterCheckbox() { --- a/chrome/browser/ui/tab_helpers.cc +++ b/chrome/browser/ui/tab_helpers.cc -@@ -288,11 +288,6 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -292,11 +292,6 @@ void TabHelpers::AttachTabHelpers(WebCon new ChromePDFWebContentsHelperClient())); PluginObserver::CreateForWebContents(web_contents); SadTabHelper::CreateForWebContents(web_contents); @@ -1111,7 +1097,7 @@ - profile, web_contents); SearchTabHelper::CreateForWebContents(web_contents); if (base::FeatureList::IsEnabled(features::kTabMetricsLogging)) - TabActivityWatcher::WatchWebContents(web_contents); + resource_coordinator::TabActivityWatcher::WatchWebContents(web_contents); --- a/chrome/browser/permissions/permission_decision_auto_blocker.cc +++ b/chrome/browser/permissions/permission_decision_auto_blocker.cc @@ -18,7 +18,6 @@ @@ -1175,7 +1161,7 @@ void ChromeSubresourceFilterClient::OnReloadRequested() { --- a/chrome/browser/extensions/webstore_inline_installer.cc +++ b/chrome/browser/extensions/webstore_inline_installer.cc -@@ -115,85 +115,10 @@ bool WebstoreInlineInstaller::IsRequesto +@@ -116,7 +116,7 @@ bool WebstoreInlineInstaller::IsRequesto } bool WebstoreInlineInstaller::SafeBrowsingNavigationEventsEnabled() const { @@ -1183,85 +1169,39 @@ + return false; } + std::string WebstoreInlineInstaller::GetPostData( +@@ -248,6 +248,7 @@ void WebstoreInlineInstaller::WebContent + } + std::string WebstoreInlineInstaller::GetJsonPostData() { -- // web_contents() might return null during tab destruction. This object would -- // also be destroyed shortly thereafter but check to be on the safe side. -- if (!web_contents()) -- return std::string(); -- -- // Report extra data only when SafeBrowsing is enabled for the current -- // profile. -- if (!profile()->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled)) -- return std::string(); -- -- auto redirect_chain = base::MakeUnique(); -- -- if (SafeBrowsingNavigationEventsEnabled()) { -- // If we have it, use the new referrer checker. -- safe_browsing::SafeBrowsingService* safe_browsing_service = -- g_browser_process->safe_browsing_service(); -- // May be null in some tests. -- if (!safe_browsing_service) -- return std::string(); -- -- scoped_refptr -- navigation_observer_manager = -- safe_browsing_service->navigation_observer_manager(); -- // This may be null if the navigation observer manager feature is -- // disabled by experiment. -- if (!navigation_observer_manager) -- return std::string(); -- -- ReferrerChain referrer_chain; -- SafeBrowsingNavigationObserverManager::AttributionResult result = -- navigation_observer_manager->IdentifyReferrerChainByWebContents( -- web_contents(), kExtensionReferrerUserGestureLimit, -- &referrer_chain); -- if (result != -- SafeBrowsingNavigationObserverManager::NAVIGATION_EVENT_NOT_FOUND) { -- // For now the CWS post data is JSON encoded. Consider moving it to a -- // proto. -- for (const auto& referrer_chain_entry : referrer_chain) { -- // Referrer chain entries are a list of URLs in reverse chronological -- // order, so the final URL is the last thing in the list and the initial -- // landing page is the first thing in the list. -- // Furthermore each entry may contain a series of server redirects -- // stored in the same order. -- redirect_chain->AppendString(referrer_chain_entry.url()); -- for (const auto& server_side_redirect : -- referrer_chain_entry.server_redirect_chain()) { -- redirect_chain->AppendString(server_side_redirect.url()); -- } -- } -- } -- } else { -- content::NavigationController& navigation_controller = -- web_contents()->GetController(); -- content::NavigationEntry* navigation_entry = -- navigation_controller.GetLastCommittedEntry(); -- if (navigation_entry) { -- const std::vector& redirect_urls = -- navigation_entry->GetRedirectChain(); -- for (const GURL& url : redirect_urls) { -- redirect_chain->AppendString(url.spec()); -- } -- } -- } -- -- if (!redirect_chain->empty()) { -- base::DictionaryValue dictionary; -- dictionary.SetString("id", id()); -- dictionary.SetString("referrer", requestor_url_.spec()); -- dictionary.Set("redirect_chain", std::move(redirect_chain)); -- -- std::string json; -- base::JSONWriter::Write(dictionary, &json); -- return json; -- } -- ++#if 0 + auto redirect_chain = base::MakeUnique(); + + if (SafeBrowsingNavigationEventsEnabled()) { +@@ -299,11 +300,13 @@ std::string WebstoreInlineInstaller::Get + base::JSONWriter::Write(dictionary, &json); + return json; + } ++#endif + return std::string(); } + std::string WebstoreInlineInstaller::GetProtoPostData() { ++#if 0 + if (!SafeBrowsingNavigationEventsEnabled()) + return std::string(); + +@@ -330,6 +333,9 @@ std::string WebstoreInlineInstaller::Get + recent_navigations_to_collect); + + return request.SerializeAsString(); ++#endif ++ ++ return std::string(); + } + + // static --- a/chrome/browser/safe_browsing/BUILD.gn +++ b/chrome/browser/safe_browsing/BUILD.gn @@ -12,6 +12,11 @@ proto_library("chunk_proto") { @@ -1286,7 +1226,7 @@ # "Safe Browsing Basic" files used for safe browsing in full mode --- a/chrome/browser/net/system_network_context_manager.cc +++ b/chrome/browser/net/system_network_context_manager.cc -@@ -50,17 +50,11 @@ content::mojom::NetworkContextParamsPtr +@@ -32,18 +32,12 @@ namespace { // Called on IOThread to disable QUIC for HttpNetworkSessions not using the // network service. Note that re-enabling QUIC dynamically is not supported for // simpliciy and requires a browser restart. @@ -1296,7 +1236,8 @@ +void DisableQuicOnIOThread(IOThread* io_thread) { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); - // Disable QUIC for HttpNetworkSessions using IOThread's NetworkService. + if (!base::FeatureList::IsEnabled(features::kNetworkService)) + content::GetNetworkServiceImpl()->DisableQuic(); io_thread->DisableQuic(); - - // Safebrowsing isn't yet using the IOThread's NetworkService, so must be @@ -1305,7 +1246,7 @@ } } // namespace -@@ -132,11 +126,7 @@ void SystemNetworkContextManager::Disabl +@@ -122,13 +116,9 @@ void SystemNetworkContextManager::Disabl if (!io_thread) return; @@ -1318,9 +1259,11 @@ - base::Unretained(safe_browsing_service))); + base::BindOnce(&DisableQuicOnIOThread, io_thread)); } + + void SystemNetworkContextManager::FlushProxyConfigMonitorForTesting() { --- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc +++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc -@@ -405,9 +405,8 @@ void AddBluetoothStrings(content::WebUID +@@ -427,9 +427,8 @@ void AddBluetoothStrings(content::WebUID #endif void AddChangePasswordStrings(content::WebUIDataSource* html_source) { @@ -1340,18 +1283,17 @@ #include "chrome/renderer/prerender/prerenderer_client.h" -#include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" #include "chrome/renderer/tts_dispatcher.h" + #include "chrome/renderer/url_loader_throttle_provider_impl.h" #include "chrome/renderer/worker_content_settings_client.h" - #include "components/autofill/content/renderer/autofill_agent.h" -@@ -79,8 +78,6 @@ +@@ -79,7 +78,6 @@ + #include "components/error_page/common/localized_error.h" #include "components/network_hints/renderer/prescient_networking_dispatcher.h" - #include "components/password_manager/content/renderer/credential_manager_client.h" #include "components/pdf/renderer/pepper_pdf_host.h" --#include "components/safe_browsing/renderer/renderer_url_loader_throttle.h" -#include "components/safe_browsing/renderer/threat_dom_details.h" #include "components/safe_browsing/renderer/websocket_sb_handshake_throttle.h" #include "components/spellcheck/spellcheck_build_features.h" #include "components/startup_metric_utils/common/startup_metric.mojom.h" -@@ -449,9 +446,6 @@ void ChromeContentRendererClient::Render +@@ -448,9 +446,6 @@ void ChromeContentRendererClient::Render thread->AddObserver(spellcheck_.get()); } #endif @@ -1361,7 +1303,7 @@ prerender_dispatcher_.reset(new prerender::PrerenderDispatcher()); subresource_filter_ruleset_dealer_.reset( new subresource_filter::UnverifiedRulesetDealer()); -@@ -566,10 +560,6 @@ void ChromeContentRendererClient::Render +@@ -564,10 +559,6 @@ void ChromeContentRendererClient::Render new nacl::NaClHelper(render_frame); #endif @@ -1372,24 +1314,7 @@ #if BUILDFLAG(ENABLE_PRINTING) new printing::PrintRenderFrameHelper( render_frame, base::MakeUnique()); -@@ -1316,16 +1306,6 @@ bool ChromeContentRendererClient::WillSe - const blink::WebURL& url, - std::vector>* throttles, - GURL* new_url) { -- if (base::FeatureList::IsEnabled(features::kNetworkService)) { -- InitSafeBrowsingIfNecessary(); -- RenderFrame* render_frame = content::RenderFrame::FromWebFrame(frame); -- int render_frame_id = -- render_frame ? render_frame->GetRoutingID() : MSG_ROUTING_NONE; -- throttles->push_back( -- base::MakeUnique( -- safe_browsing_.get(), render_frame_id)); -- } -- - // Check whether the request should be allowed. If not allowed, we reset the - // URL to something invalid to prevent the request and cause an error. - #if BUILDFLAG(ENABLE_EXTENSIONS) -@@ -1423,9 +1403,7 @@ bool ChromeContentRendererClient::IsExte +@@ -1394,9 +1385,7 @@ bool ChromeContentRendererClient::IsExte std::unique_ptr ChromeContentRendererClient::CreateWebSocketHandshakeThrottle() { @@ -1400,7 +1325,7 @@ } std::unique_ptr -@@ -1717,13 +1695,6 @@ ChromeContentRendererClient::GetTaskSche +@@ -1688,13 +1677,6 @@ ChromeContentRendererClient::GetTaskSche GetRendererTaskSchedulerInitParamsFromCommandLine(); } @@ -1435,17 +1360,17 @@ namespace subresource_filter { class UnverifiedRulesetDealer; } -@@ -255,9 +250,6 @@ class ChromeContentRendererClient +@@ -263,9 +258,6 @@ class ChromeContentRendererClient void GetInterface(const std::string& name, mojo::ScopedMessagePipeHandle request_handle) override; - // Initialises |safe_browsing_| if it is not already initialised. - void InitSafeBrowsingIfNecessary(); - - void GetNavigationErrorStringsInternal( - content::RenderFrame* render_frame, - const blink::WebURLRequest& failed_request, -@@ -289,12 +281,9 @@ class ChromeContentRendererClient + void PrepareErrorPageInternal(content::RenderFrame* render_frame, + const blink::WebURLRequest& failed_request, + const error_page::Error& error, +@@ -296,12 +288,9 @@ class ChromeContentRendererClient ChromeKeySystemsProvider key_systems_provider_; diff --git a/resources/patches/inox-patchset/0002-fix-building-without-reporting.patch b/resources/patches/inox-patchset/0002-fix-building-without-reporting.patch index 2e3ead3e..4e8bd63d 100644 --- a/resources/patches/inox-patchset/0002-fix-building-without-reporting.patch +++ b/resources/patches/inox-patchset/0002-fix-building-without-reporting.patch @@ -14,7 +14,7 @@ #include "chrome/browser/ui/webui/print_preview/privet_printer_handler.h" --- a/content/browser/net/reporting_service_proxy.cc +++ b/content/browser/net/reporting_service_proxy.cc -@@ -97,6 +97,7 @@ class ReportingServiceProxyImpl : public +@@ -102,6 +102,7 @@ class ReportingServiceProxyImpl : public const std::string& group, const std::string& type, std::unique_ptr body) { @@ -22,7 +22,7 @@ net::URLRequestContext* request_context = request_context_getter_->GetURLRequestContext(); if (!request_context) { -@@ -112,6 +113,7 @@ class ReportingServiceProxyImpl : public +@@ -117,6 +118,7 @@ class ReportingServiceProxyImpl : public } reporting_service->QueueReport(url, group, type, std::move(body)); @@ -32,7 +32,7 @@ scoped_refptr request_context_getter_; --- a/chrome/browser/profiles/profile_impl_io_data.h +++ b/chrome/browser/profiles/profile_impl_io_data.h -@@ -182,6 +182,7 @@ class ProfileImplIOData : public Profile +@@ -177,6 +177,7 @@ class ProfileImplIOData : public Profile const StoragePartitionDescriptor& partition_descriptor) const override; chrome_browser_net::Predictor* GetPredictor() override; @@ -40,7 +40,7 @@ // Returns a net::ReportingService, if reporting should be enabled. Otherwise, // returns nullptr. // TODO(mmenke): Remove once URLRequestContextBuilders are always used to -@@ -192,6 +193,7 @@ class ProfileImplIOData : public Profile +@@ -187,6 +188,7 @@ class ProfileImplIOData : public Profile // Returns a net::ReportingPolicy, if reporting should be enabled. Otherwise, // returns nullptr. static std::unique_ptr MaybeCreateReportingPolicy(); @@ -50,7 +50,7 @@ mutable std::unique_ptr lazy_params_; --- a/chrome/browser/profiles/profile_impl_io_data.cc +++ b/chrome/browser/profiles/profile_impl_io_data.cc -@@ -472,7 +472,9 @@ void ProfileImplIOData::InitializeIntern +@@ -480,7 +480,9 @@ void ProfileImplIOData::InitializeIntern builder, std::move(request_interceptors), std::move(profile_params->protocol_handler_interceptor)); @@ -60,7 +60,7 @@ } void ProfileImplIOData::OnMainRequestContextCreated( -@@ -608,7 +610,9 @@ net::URLRequestContext* ProfileImplIODat +@@ -615,7 +617,9 @@ net::URLRequestContext* ProfileImplIODat context->host_resolver())); context->SetJobFactory(std::move(top_job_factory)); @@ -70,7 +70,7 @@ return context; } -@@ -698,6 +702,7 @@ chrome_browser_net::Predictor* ProfileIm +@@ -705,6 +709,7 @@ chrome_browser_net::Predictor* ProfileIm return predictor_.get(); } @@ -78,14 +78,14 @@ std::unique_ptr ProfileImplIOData::MaybeCreateReportingService( net::URLRequestContext* url_request_context) const { -@@ -716,3 +721,4 @@ ProfileImplIOData::MaybeCreateReportingP +@@ -723,3 +728,4 @@ ProfileImplIOData::MaybeCreateReportingP return base::MakeUnique(); } +#endif --- a/chrome/browser/profiles/profile_io_data.cc +++ b/chrome/browser/profiles/profile_io_data.cc -@@ -638,7 +638,9 @@ +@@ -637,7 +637,9 @@ void ProfileIOData::AppRequestContext::S void ProfileIOData::AppRequestContext::SetReportingService( std::unique_ptr reporting_service) { reporting_service_ = std::move(reporting_service); @@ -97,7 +97,7 @@ ProfileIOData::AppRequestContext::~AppRequestContext() { --- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc +++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc -@@ -252,10 +252,12 @@ +@@ -255,10 +255,12 @@ void ClearReportingCacheOnIOThread( const base::Callback& origin_filter) { DCHECK_CURRENTLY_ON(BrowserThread::IO); @@ -109,4 +109,4 @@ +#endif } - #if defined(OS_ANDROID) + void ClearNetworkErrorLoggingOnIOThread( diff --git a/resources/patches/inox-patchset/0003-disable-autofill-download-manager.patch b/resources/patches/inox-patchset/0003-disable-autofill-download-manager.patch index 6fddd30a..30b051f2 100644 --- a/resources/patches/inox-patchset/0003-disable-autofill-download-manager.patch +++ b/resources/patches/inox-patchset/0003-disable-autofill-download-manager.patch @@ -10,41 +10,19 @@ } std::ostream& operator<<(std::ostream& out, -@@ -299,37 +298,6 @@ bool AutofillDownloadManager::StartUploa +@@ -299,6 +298,7 @@ bool AutofillDownloadManager::StartUploa bool AutofillDownloadManager::StartRequest( const FormRequestData& request_data) { -- net::URLRequestContextGetter* request_context = -- driver_->GetURLRequestContext(); -- DCHECK(request_context); -- GURL request_url = GetRequestUrl(request_data.request_type); -- -- // Id is ignored for regular chrome, in unit test id's for fake fetcher -- // factory will be 0, 1, 2, ... -- std::unique_ptr owned_fetcher = net::URLFetcher::Create( -- fetcher_id_for_unittest_++, request_url, net::URLFetcher::POST, this, -- GetNetworkTrafficAnnotation(request_data.request_type)); -- net::URLFetcher* fetcher = owned_fetcher.get(); -- data_use_measurement::DataUseUserData::AttachToFetcher( -- fetcher, data_use_measurement::DataUseUserData::AUTOFILL); -- url_fetchers_[fetcher] = -- std::make_pair(std::move(owned_fetcher), request_data); -- fetcher->SetAutomaticallyRetryOn5xx(false); -- fetcher->SetRequestContext(request_context); -- fetcher->SetUploadData("text/proto", request_data.payload); -- fetcher->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES | -- net::LOAD_DO_NOT_SEND_COOKIES); -- // Add Chrome experiment state to the request headers. -- net::HttpRequestHeaders headers; -- // Note: It's OK to pass |is_signed_in| false if it's unknown, as it does -- // not affect transmission of experiments coming from the variations server. -- bool is_signed_in = false; -- variations::AppendVariationHeaders(fetcher->GetOriginalURL(), -- driver_->IsIncognito(), false, -- is_signed_in, &headers); -- fetcher->SetExtraRequestHeaders(headers.ToString()); -- fetcher->Start(); -- ++#if 0 + net::URLRequestContextGetter* request_context = + driver_->GetURLRequestContext(); + DCHECK(request_context); +@@ -330,6 +330,7 @@ bool AutofillDownloadManager::StartReque + variations::SignedIn::kNo, &headers); + fetcher->SetExtraRequestHeaders(headers.ToString()); + fetcher->Start(); ++#endif + return true; } - diff --git a/resources/patches/inox-patchset/0005-disable-default-extensions.patch b/resources/patches/inox-patchset/0005-disable-default-extensions.patch index 8a738983..c67de547 100644 --- a/resources/patches/inox-patchset/0005-disable-default-extensions.patch +++ b/resources/patches/inox-patchset/0005-disable-default-extensions.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/extensions/component_loader.cc +++ b/chrome/browser/extensions/component_loader.cc -@@ -422,11 +422,6 @@ void ComponentLoader::AddWebStoreApp() { +@@ -421,11 +421,6 @@ void ComponentLoader::AddWebStoreApp() { if (!IsNormalSession()) return; #endif @@ -12,7 +12,7 @@ } scoped_refptr ComponentLoader::CreateExtension( -@@ -481,11 +476,6 @@ void ComponentLoader::AddDefaultComponen +@@ -480,11 +475,6 @@ void ComponentLoader::AddDefaultComponen Add(IDR_BOOKMARKS_MANIFEST, base::FilePath(FILE_PATH_LITERAL("bookmark_manager"))); } @@ -24,7 +24,7 @@ #endif // defined(OS_CHROMEOS) if (!skip_session_components) { -@@ -561,13 +551,6 @@ void ComponentLoader::AddDefaultComponen +@@ -560,13 +550,6 @@ void ComponentLoader::AddDefaultComponen AddHangoutServicesExtension(); AddImageLoaderExtension(); diff --git a/resources/patches/inox-patchset/0006-modify-default-prefs.patch b/resources/patches/inox-patchset/0006-modify-default-prefs.patch index 57610f4c..14071b22 100644 --- a/resources/patches/inox-patchset/0006-modify-default-prefs.patch +++ b/resources/patches/inox-patchset/0006-modify-default-prefs.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -879,7 +879,7 @@ void ChromeContentBrowserClient::Registe +@@ -859,7 +859,7 @@ void ChromeContentBrowserClient::Registe void ChromeContentBrowserClient::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false); @@ -82,7 +82,7 @@ --- a/components/autofill/core/browser/autofill_manager.cc +++ b/components/autofill/core/browser/autofill_manager.cc -@@ -217,7 +217,7 @@ void AutofillManager::RegisterProfilePre +@@ -216,7 +216,7 @@ void AutofillManager::RegisterProfilePre registry->RegisterIntegerPref( prefs::kAutofillCreditCardSigninPromoImpressionCount, 0); registry->RegisterBooleanPref( @@ -104,7 +104,7 @@ --- a/chrome/browser/io_thread.cc +++ b/chrome/browser/io_thread.cc -@@ -612,7 +612,7 @@ void IOThread::RegisterPrefs(PrefRegistr +@@ -620,7 +620,7 @@ void IOThread::RegisterPrefs(PrefRegistr std::string()); registry->RegisterBooleanPref(prefs::kEnableReferrers, true); data_reduction_proxy::RegisterPrefs(registry); @@ -145,7 +145,7 @@ prefs::kShowManagedBookmarksInBookmarkBar, --- a/chrome/browser/profiles/profile.cc +++ b/chrome/browser/profiles/profile.cc -@@ -136,7 +136,7 @@ const char Profile::kNoHostedDomainFound +@@ -138,7 +138,7 @@ const char Profile::kNoHostedDomainFound void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( prefs::kSearchSuggestEnabled, @@ -167,7 +167,7 @@ prefs::kCloudPrintXmppPingEnabled, false); --- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc +++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc -@@ -143,10 +143,6 @@ void LocalDiscoveryUI::RegisterProfilePr +@@ -144,10 +144,6 @@ void LocalDiscoveryUI::RegisterProfilePr user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( prefs::kLocalDiscoveryNotificationsEnabled, @@ -211,7 +211,7 @@ false); --- a/components/password_manager/core/browser/password_manager.cc +++ b/components/password_manager/core/browser/password_manager.cc -@@ -235,10 +235,10 @@ PasswordFormManager* FindMatchedManager( +@@ -236,10 +236,10 @@ PasswordFormManager* FindMatchedManager( void PasswordManager::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( diff --git a/resources/patches/inox-patchset/0008-restore-classic-ntp.patch b/resources/patches/inox-patchset/0008-restore-classic-ntp.patch index cefdb67d..624f2d9a 100644 --- a/resources/patches/inox-patchset/0008-restore-classic-ntp.patch +++ b/resources/patches/inox-patchset/0008-restore-classic-ntp.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/search/search.cc +++ b/chrome/browser/search/search.cc -@@ -147,29 +147,7 @@ struct NewTabURLDetails { +@@ -187,29 +187,7 @@ struct NewTabURLDetails { const GURL local_url(chrome::kChromeSearchLocalNtpUrl); @@ -33,7 +33,7 @@ const GURL url; --- a/components/ntp_snippets/features.cc +++ b/components/ntp_snippets/features.cc -@@ -38,16 +38,16 @@ const base::Feature* const kAllFeatures[ +@@ -37,16 +37,16 @@ const base::Feature* const kAllFeatures[ nullptr}; const base::Feature kArticleSuggestionsFeature{ diff --git a/resources/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch b/resources/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch index 4dff65d6..f246b548 100644 --- a/resources/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch +++ b/resources/patches/inox-patchset/0011-add-duckduckgo-search-engine.patch @@ -30,7 +30,7 @@ --- a/components/search_engines/template_url_prepopulate_data.cc +++ b/components/search_engines/template_url_prepopulate_data.cc -@@ -50,548 +50,548 @@ namespace { +@@ -51,548 +51,548 @@ namespace { // Default (for countries with no better engine set) const PrepopulatedEngine* const engines_default[] = { diff --git a/resources/patches/inox-patchset/0013-disable-missing-key-warning.patch b/resources/patches/inox-patchset/0013-disable-missing-key-warning.patch index cdf7e191..bec3f052 100644 --- a/resources/patches/inox-patchset/0013-disable-missing-key-warning.patch +++ b/resources/patches/inox-patchset/0013-disable-missing-key-warning.patch @@ -1,10 +1,10 @@ --- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc +++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc -@@ -15,6 +15,7 @@ +@@ -14,6 +14,7 @@ // static void GoogleApiKeysInfoBarDelegate::Create(InfoBarService* infobar_service) { + return; - if (google_apis::HasKeysConfigured()) - return; - + infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar( + std::unique_ptr( + new GoogleApiKeysInfoBarDelegate()))); diff --git a/resources/patches/inox-patchset/0017-disable-new-avatar-menu.patch b/resources/patches/inox-patchset/0017-disable-new-avatar-menu.patch index 52f6bf9b..fe059498 100644 --- a/resources/patches/inox-patchset/0017-disable-new-avatar-menu.patch +++ b/resources/patches/inox-patchset/0017-disable-new-avatar-menu.patch @@ -1,6 +1,6 @@ --- a/components/signin/core/browser/signin_manager.cc +++ b/components/signin/core/browser/signin_manager.cc -@@ -299,7 +299,7 @@ void SigninManager::OnGoogleServicesUser +@@ -302,7 +302,7 @@ void SigninManager::OnGoogleServicesUser } bool SigninManager::IsSigninAllowed() const { diff --git a/resources/patches/inox-patchset/9000-disable-metrics.patch b/resources/patches/inox-patchset/9000-disable-metrics.patch index b3adcfd3..c27a1fc3 100644 --- a/resources/patches/inox-patchset/9000-disable-metrics.patch +++ b/resources/patches/inox-patchset/9000-disable-metrics.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1211,6 +1211,11 @@ const FeatureEntry::FeatureVariation kSp +@@ -1221,6 +1221,11 @@ const FeatureEntry::FeatureVariation kWe // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -52,7 +52,7 @@ HistogramBase::HistogramBase(const char* name) --- a/base/metrics/histogram.cc +++ b/base/metrics/histogram.cc -@@ -124,7 +124,8 @@ class Histogram::Factory { +@@ -123,7 +123,8 @@ class Histogram::Factory { minimum_(minimum), maximum_(maximum), bucket_count_(bucket_count), @@ -62,7 +62,7 @@ // Create a BucketRanges structure appropriate for this histogram. virtual BucketRanges* CreateRanges() { -@@ -154,13 +155,18 @@ class Histogram::Factory { +@@ -153,13 +154,18 @@ class Histogram::Factory { HistogramBase::Sample maximum_; uint32_t bucket_count_; int32_t flags_; @@ -82,7 +82,7 @@ if (!histogram) { // To avoid racy destruction at shutdown, the following will be leaked. const BucketRanges* created_ranges = CreateRanges(); -@@ -191,7 +197,7 @@ HistogramBase* Histogram::Factory::Build +@@ -190,7 +196,7 @@ HistogramBase* Histogram::Factory::Build if (allocator) { tentative_histogram = allocator->AllocateHistogram( histogram_type_, @@ -91,7 +91,7 @@ minimum_, maximum_, registered_ranges, -@@ -226,6 +232,10 @@ HistogramBase* Histogram::Factory::Build +@@ -225,6 +231,10 @@ HistogramBase* Histogram::Factory::Build } } @@ -102,7 +102,7 @@ CHECK_EQ(histogram_type_, histogram->GetHistogramType()) << name_; if (bucket_count_ != 0 && !histogram->HasConstructionArguments(minimum_, maximum_, bucket_count_)) { -@@ -462,10 +472,16 @@ bool Histogram::HasConstructionArguments +@@ -461,10 +471,16 @@ bool Histogram::HasConstructionArguments } void Histogram::Add(int value) { @@ -119,7 +119,7 @@ DCHECK_EQ(0, ranges(0)); DCHECK_EQ(kSampleType_MAX, ranges(bucket_count())); -@@ -520,10 +536,16 @@ std::unique_ptr Histog +@@ -519,10 +535,16 @@ std::unique_ptr Histog } void Histogram::AddSamples(const HistogramSamples& samples) { @@ -279,7 +279,7 @@ --- a/chrome/browser/ui/tab_helpers.cc +++ b/chrome/browser/ui/tab_helpers.cc -@@ -204,8 +204,10 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -207,8 +207,10 @@ void TabHelpers::AttachTabHelpers(WebCon ChromeTranslateClient::CreateForWebContents(web_contents); ClientHintsObserver::CreateForWebContents(web_contents); CoreTabHelper::CreateForWebContents(web_contents); @@ -292,7 +292,7 @@ ExternalProtocolObserver::CreateForWebContents(web_contents); favicon::CreateContentFaviconDriverForWebContents(web_contents); FindTabHelper::CreateForWebContents(web_contents); -@@ -220,14 +222,20 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -223,14 +225,20 @@ void TabHelpers::AttachTabHelpers(WebCon HistoryTabHelper::CreateForWebContents(web_contents); InfoBarService::CreateForWebContents(web_contents); InstallableManager::CreateForWebContents(web_contents); @@ -317,7 +317,7 @@ PDFPluginPlaceholderObserver::CreateForWebContents(web_contents); PermissionRequestManager::CreateForWebContents(web_contents); // The PopupBlockerTabHelper has an implicit dependency on -@@ -252,7 +260,9 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -255,7 +263,9 @@ void TabHelpers::AttachTabHelpers(WebCon // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 TabSpecificContentSettings::CreateForWebContents(web_contents); TabUIHelper::CreateForWebContents(web_contents); @@ -328,7 +328,7 @@ vr::VrTabHelper::CreateForWebContents(web_contents); // NO! Do not just add your tab helper here. This is a large alphabetized -@@ -302,7 +312,8 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -306,7 +316,8 @@ void TabHelpers::AttachTabHelpers(WebCon #if defined(OS_WIN) || defined(OS_MACOSX) || \ (defined(OS_LINUX) && !defined(OS_CHROMEOS)) diff --git a/resources/patches/inox-patchset/chromium-angle-r0.patch b/resources/patches/inox-patchset/chromium-angle-r0.patch deleted file mode 100644 index 2c127a61..00000000 --- a/resources/patches/inox-patchset/chromium-angle-r0.patch +++ /dev/null @@ -1,83 +0,0 @@ -From 030017a4855c7b6e7f2ff8d9566c146f31eb301b Mon Sep 17 00:00:00 2001 -From: Kai Ninomiya -Date: Wed, 06 Dec 2017 14:06:53 -0800 -Subject: [PATCH] Mark StaticType related functions as constexpr - -Fixes compilation on some versions of GCC and probably Clang. - -Follow-up to http://crrev.com/c/786317 - -Bug: angleproject:1432 -Change-Id: I3fc3ad0f65492f9543eb27fcdce6ca29a9ad06e5 -Reviewed-on: https://chromium-review.googlesource.com/812220 -Reviewed-by: Jamie Madill -Commit-Queue: Kai Ninomiya ---- - ---- a/third_party/angle/src/compiler/translator/StaticType.h -+++ b/third_party/angle/src/compiler/translator/StaticType.h -@@ -160,7 +160,7 @@ template --const TType *GetForVecMatHelper(unsigned char primarySize) -+constexpr const TType *GetForVecMatHelper(unsigned char primarySize) - { - static_assert(basicType == EbtFloat || basicType == EbtInt || basicType == EbtUInt || - basicType == EbtBool, -@@ -186,7 +186,7 @@ const TType *GetForVecMatHelper(unsigned - template --const TType *GetForVecMat(unsigned char primarySize, unsigned char secondarySize = 1) -+constexpr const TType *GetForVecMat(unsigned char primarySize, unsigned char secondarySize = 1) - { - static_assert(basicType == EbtFloat || basicType == EbtInt || basicType == EbtUInt || - basicType == EbtBool, -@@ -208,7 +208,7 @@ const TType *GetForVecMat(unsigned char - } - - template --const TType *GetForVec(TQualifier qualifier, unsigned char size) -+constexpr const TType *GetForVec(TQualifier qualifier, unsigned char size) - { - switch (qualifier) - { ---- a/third_party/angle/src/compiler/translator/SymbolTable.cpp -+++ b/third_party/angle/src/compiler/translator/SymbolTable.cpp -@@ -189,7 +189,7 @@ TSymbolTable::~TSymbolTable() - pop(); - } - --bool IsGenType(const TType *type) -+constexpr bool IsGenType(const TType *type) - { - if (type) - { -@@ -201,7 +201,7 @@ bool IsGenType(const TType *type) - return false; - } - --bool IsVecType(const TType *type) -+constexpr bool IsVecType(const TType *type) - { - if (type) - { ---- a/third_party/angle/src/compiler/translator/Types.h -+++ b/third_party/angle/src/compiler/translator/Types.h -@@ -236,13 +236,13 @@ class TType - { - } - -- TBasicType getBasicType() const { return type; } -+ constexpr TBasicType getBasicType() const { return type; } - void setBasicType(TBasicType t); - - TPrecision getPrecision() const { return precision; } - void setPrecision(TPrecision p) { precision = p; } - -- TQualifier getQualifier() const { return qualifier; } -+ constexpr TQualifier getQualifier() const { return qualifier; } - void setQualifier(TQualifier q) { qualifier = q; } - - bool isInvariant() const { return invariant; } diff --git a/resources/patches/inox-patchset/chromium-cups-r0.patch b/resources/patches/inox-patchset/chromium-cups-r0.patch deleted file mode 100644 index 59eb1be5..00000000 --- a/resources/patches/inox-patchset/chromium-cups-r0.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 3cf91d8d674a496d533aa106723a632b68ab26ba Mon Sep 17 00:00:00 2001 -From: Tom Anderson -Date: Tue, 12 Dec 2017 23:31:56 +0000 -Subject: [PATCH] Fix use_cups=false build - -BUG=793801 -R=thestig@chromium.org - -Change-Id: I60ee6ec48d2686d0b42ca25311a9b76009ce9768 -Reviewed-on: https://chromium-review.googlesource.com/823245 -Reviewed-by: Lei Zhang -Commit-Queue: Thomas Anderson -Cr-Commit-Position: refs/heads/master@{#523602} ---- - chrome/service/cloud_print/print_system.cc | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - ---- a/chrome/service/cloud_print/print_system.cc -+++ b/chrome/service/cloud_print/print_system.cc -@@ -5,6 +5,7 @@ - #include "chrome/service/cloud_print/print_system.h" - - #include "base/guid.h" -+#include "build/build_config.h" - - namespace cloud_print { - -@@ -35,5 +36,11 @@ std::string PrintSystem::GenerateProxyId - return base::GenerateGUID(); - } - --} // namespace cloud_print -+#if defined(OS_LINUX) && !defined(USE_CUPS) -+scoped_refptr PrintSystem::CreateInstance( -+ const base::DictionaryValue*) { -+ return nullptr; -+} -+#endif - -+} // namespace cloud_print diff --git a/resources/patches/inox-patchset/chromium-math.h-r0.patch b/resources/patches/inox-patchset/chromium-math.h-r0.patch new file mode 100644 index 00000000..6c7c7470 --- /dev/null +++ b/resources/patches/inox-patchset/chromium-math.h-r0.patch @@ -0,0 +1,29 @@ +From 9f63f94a11abc34d40ede8b8712fa15b5844a8c0 Mon Sep 17 00:00:00 2001 +From: Tom Anderson +Date: Sat, 27 Jan 2018 20:03:37 +0000 +Subject: [PATCH] Fix build with glibc 2.27 + +BUG=806340 +TBR=hamelphi@chromium.org + +Change-Id: Ib4e5091212d874d9ad88f3e9a1fdfee3ed7e0d5e +Reviewed-on: https://chromium-review.googlesource.com/890059 +Reviewed-by: Thomas Anderson +Reviewed-by: Philippe Hamel +Commit-Queue: Thomas Anderson +Cr-Commit-Position: refs/heads/master@{#532249} +--- + +diff --git a/components/assist_ranker/ranker_example_util.cc b/components/assist_ranker/ranker_example_util.cc +index 54d4dbd..ceedd8f 100644 +--- a/components/assist_ranker/ranker_example_util.cc ++++ b/components/assist_ranker/ranker_example_util.cc +@@ -2,6 +2,8 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + ++#include ++ + #include "components/assist_ranker/ranker_example_util.h" + #include "base/bit_cast.h" + #include "base/format_macros.h" diff --git a/resources/patches/inox-patchset/chromium-omnibox-unescape-fragment.patch b/resources/patches/inox-patchset/chromium-omnibox-unescape-fragment.patch deleted file mode 100644 index ab2eefb5..00000000 --- a/resources/patches/inox-patchset/chromium-omnibox-unescape-fragment.patch +++ /dev/null @@ -1,427 +0,0 @@ -commit 03f9a90d8a783f9d1a94935ac298338a1e694380 -Author: Eric Lawrence -Date: Sat Dec 16 04:48:11 2017 +0000 - - Reland of 'Unescape fragment for display in Omnibox' - - The original landing broke EGTests for iOS Simulator and Device which - were not run by the CQ. This change includes updated EGTests. - - TBR=pkasting@chromium.org - - Bug: 789163, 643458 - Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs - Change-Id: Ie30afcb7bcba5affc7266d72a10b7f8dc0074314 - Reviewed-on: https://chromium-review.googlesource.com/830093 - Reviewed-by: Eric Lawrence - Reviewed-by: Peter Kasting - Reviewed-by: Eugene But - Commit-Queue: Eric Lawrence - Cr-Commit-Position: refs/heads/master@{#524591} - ---- a/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc -+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc -@@ -458,3 +458,13 @@ IN_PROC_BROWSER_TEST_F(OmniboxViewViewsT - EXPECT_EQ(omnibox_view_views->GetRenderText()->elide_behavior(), - gfx::NO_ELIDE); - } -+ -+IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, FragmentUnescapedForDisplay) { -+ OmniboxView* view = nullptr; -+ ASSERT_NO_FATAL_FAILURE(GetOmniboxViewForBrowser(browser(), &view)); -+ ui_test_utils::NavigateToURL(browser(), -+ GURL("https://www.google.com/#%E2%98%83")); -+ -+ EXPECT_EQ(view->GetText(), -+ base::UTF8ToUTF16("https://www.google.com/#\u2603")); -+} ---- a/components/url_formatter/elide_url_unittest.cc -+++ b/components/url_formatter/elide_url_unittest.cc -@@ -347,15 +347,16 @@ TEST(TextEliderTest, TestElisionSpecialC - kEllipsisStr + "berkeley.edu:4430/" + kEllipsisStr + "/arbitfilename"}, - - // Unescaping. -- {"http://www/%E4%BD%A0%E5%A5%BD?q=%E4%BD%A0%E5%A5%BD#\xe4\xbd\xa0", -- "www/\xe4\xbd\xa0\xe5\xa5\xbd?q=\xe4\xbd\xa0\xe5\xa5\xbd#" + -+ {"http://www/%E4%BD%A0%E5%A5%BD?" -+ "q=%E4%BD%A0%E5%A5%BD#\xe4\xbd\xa0\xe4\xbd\xa0\xe4\xbd\xa0", -+ "www/\xe4\xbd\xa0\xe5\xa5\xbd?q=\xe4\xbd\xa0\xe5\xa5\xbd#\xe4\xbd\xa0" + - kEllipsisStr}, - - // Invalid unescaping for path. The ref will always be valid UTF-8. We - // don't bother to do too many edge cases, since these are handled by the - // escaper unittest. - {"http://www/%E4%A0%E5%A5%BD?q=%E4%BD%A0%E5%A5%BD#\xe4\xbd\xa0", -- "www/%E4%A0%E5%A5%BD?q=\xe4\xbd\xa0\xe5\xa5\xbd#" + kEllipsisStr}, -+ "www/%E4%A0%E5%A5%BD?q=\xe4\xbd\xa0\xe5\xa5\xbd#\xe4\xbd\xa0"}, - }; - - RunElisionTest(testcases); ---- a/components/url_formatter/url_formatter.cc -+++ b/components/url_formatter/url_formatter.cc -@@ -586,11 +586,10 @@ base::string16 FormatUrlWithAdjustments( - NonHostComponentTransform(unescape_rules), - &url_string, &new_parsed->query, adjustments); - -- // Ref. This is valid, unescaped UTF-8, so we can just convert. - if (parsed.ref.is_valid()) - url_string.push_back('#'); - AppendFormattedComponent(spec, parsed.ref, -- NonHostComponentTransform(net::UnescapeRule::NONE), -+ NonHostComponentTransform(unescape_rules), - &url_string, &new_parsed->ref, adjustments); - } - ---- a/components/url_formatter/url_formatter_unittest.cc -+++ b/components/url_formatter/url_formatter_unittest.cc -@@ -781,7 +781,7 @@ TEST(UrlFormatterTest, FormatUrl) { - - {"With a port number and a reference", - "http://www.google.com:8080/#\xE3\x82\xB0", default_format_type, -- net::UnescapeRule::NORMAL, L"http://www.google.com:8080/#%E3%82%B0", 7}, -+ net::UnescapeRule::NORMAL, L"http://www.google.com:8080/#\x30B0", 7}, - - // -------- IDN tests -------- - {"Japanese IDN with ja", "http://xn--l8jvb1ey91xtjb.jp", -@@ -1072,7 +1072,7 @@ TEST(UrlFormatterTest, FormatUrlParsed) - kFormatUrlOmitNothing, net::UnescapeRule::NORMAL, &parsed, - nullptr, nullptr); - EXPECT_EQ(WideToUTF16(L"http://\x30B0:\x30FC@\x30B0\x30FC\x30B0\x30EB.jp:8080" -- L"/\x30B0/?q=\x30B0#%E3%82%B0"), -+ L"/\x30B0/?q=\x30B0#\x30B0"), - formatted); - EXPECT_EQ(WideToUTF16(L"\x30B0"), - formatted.substr(parsed.username.begin, parsed.username.len)); -@@ -1086,7 +1086,7 @@ TEST(UrlFormatterTest, FormatUrlParsed) - formatted.substr(parsed.path.begin, parsed.path.len)); - EXPECT_EQ(WideToUTF16(L"q=\x30B0"), - formatted.substr(parsed.query.begin, parsed.query.len)); -- EXPECT_EQ(WideToUTF16(L"%E3%82%B0"), -+ EXPECT_EQ(WideToUTF16(L"\x30B0"), - formatted.substr(parsed.ref.begin, parsed.ref.len)); - - // Omit_username_password + unescape case. -@@ -1096,7 +1096,7 @@ TEST(UrlFormatterTest, FormatUrlParsed) - kFormatUrlOmitUsernamePassword, net::UnescapeRule::NORMAL, - &parsed, nullptr, nullptr); - EXPECT_EQ(WideToUTF16(L"http://\x30B0\x30FC\x30B0\x30EB.jp:8080" -- L"/\x30B0/?q=\x30B0#%E3%82%B0"), -+ L"/\x30B0/?q=\x30B0#\x30B0"), - formatted); - EXPECT_FALSE(parsed.username.is_valid()); - EXPECT_FALSE(parsed.password.is_valid()); -@@ -1108,7 +1108,7 @@ TEST(UrlFormatterTest, FormatUrlParsed) - formatted.substr(parsed.path.begin, parsed.path.len)); - EXPECT_EQ(WideToUTF16(L"q=\x30B0"), - formatted.substr(parsed.query.begin, parsed.query.len)); -- EXPECT_EQ(WideToUTF16(L"%E3%82%B0"), -+ EXPECT_EQ(WideToUTF16(L"\x30B0"), - formatted.substr(parsed.ref.begin, parsed.ref.len)); - - // View-source case. -@@ -1342,9 +1342,12 @@ TEST(UrlFormatterTest, FormatUrlWithOffs - kFormatUrlOmitNothing, net::UnescapeRule::SPACES, unescape_offsets); - - const size_t ref_offsets[] = { -- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, -- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, -- 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49}; -+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, -+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, -+ 30, 31, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, -+ 32, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 33}; -+ - // Unescape to "http://www.google.com/foo.html#\x30B0\x30B0z". - CheckAdjustedOffsets("http://www.google.com/foo.html#%E3%82%B0%E3%82%B0z", - kFormatUrlOmitNothing, net::UnescapeRule::NORMAL, ---- a/ios/chrome/browser/web/push_and_replace_state_navigation_egtest.mm -+++ b/ios/chrome/browser/web/push_and_replace_state_navigation_egtest.mm -@@ -59,40 +59,42 @@ const char* kReplaceStateRootPathSpaceUR - // Push 3 URLs. Verify that the URL changed and the status was updated. - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashWithObject"]; - [self assertStatusText:@"pushStateHashWithObject" -- withURL:pushStateHashWithObjectURL -+ withOmniboxText:pushStateHashWithObjectURL.GetContent() - pageLoaded:NO]; - - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateRootPath"]; - [self assertStatusText:@"pushStateRootPath" -- withURL:pushStateRootPathURL -+ withOmniboxText:pushStateRootPathURL.GetContent() - pageLoaded:NO]; - - [ChromeEarlGrey tapWebViewElementWithID:@"pushStatePathSpace"]; - [self assertStatusText:@"pushStatePathSpace" -- withURL:pushStatePathSpaceURL -+ withOmniboxText:pushStatePathSpaceURL.GetContent() - pageLoaded:NO]; - - // Go back and check that the page doesn't load and the status text is updated - // by the popstate event. - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [self assertStatusText:@"pushStateRootPath" -- withURL:pushStateRootPathURL -+ withOmniboxText:pushStateRootPathURL.GetContent() - pageLoaded:NO]; - - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [self assertStatusText:@"pushStateHashWithObject" -- withURL:pushStateHashWithObjectURL -+ withOmniboxText:pushStateHashWithObjectURL.GetContent() - pageLoaded:NO]; - - [ChromeEarlGrey tapWebViewElementWithID:@"goBack"]; - const GURL historyTestURL = web::test::HttpServer::MakeUrl(kHistoryTestUrl); -- [self assertStatusText:NULL withURL:historyTestURL pageLoaded:NO]; -+ [self assertStatusText:nil -+ withOmniboxText:historyTestURL.GetContent() -+ pageLoaded:NO]; - - // Go forward 2 pages and check that the page doesn't load and the status text - // is updated by the popstate event. - [ChromeEarlGrey tapWebViewElementWithID:@"goForward2"]; - [self assertStatusText:@"pushStateRootPath" -- withURL:pushStateRootPathURL -+ withOmniboxText:pushStateRootPathURL.GetContent() - pageLoaded:NO]; - } - -@@ -108,7 +110,7 @@ const char* kReplaceStateRootPathSpaceUR - web::test::HttpServer::MakeUrl(kReplaceStateHashWithObjectURL); - [ChromeEarlGrey tapWebViewElementWithID:@"replaceStateHashWithObject"]; - [self assertStatusText:@"replaceStateHashWithObject" -- withURL:replaceStateHashWithObjectURL -+ withOmniboxText:replaceStateHashWithObjectURL.GetContent() - pageLoaded:NO]; - - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; -@@ -119,7 +121,7 @@ const char* kReplaceStateRootPathSpaceUR - [[EarlGrey selectElementWithMatcher:ForwardButton()] - performAction:grey_tap()]; - [self assertStatusText:@"replaceStateHashWithObject" -- withURL:replaceStateHashWithObjectURL -+ withOmniboxText:replaceStateHashWithObjectURL.GetContent() - pageLoaded:YES]; - - // Push URL then replace it. Do this twice. -@@ -127,44 +129,44 @@ const char* kReplaceStateRootPathSpaceUR - web::test::HttpServer::MakeUrl(kPushStateHashStringURL); - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"]; - [self assertStatusText:@"pushStateHashString" -- withURL:pushStateHashStringURL -+ withOmniboxText:pushStateHashStringURL.GetContent() - pageLoaded:NO]; - - const GURL replaceStateHashStringURL = - web::test::HttpServer::MakeUrl(kReplaceStateHashStringURL); - [ChromeEarlGrey tapWebViewElementWithID:@"replaceStateHashString"]; - [self assertStatusText:@"replaceStateHashString" -- withURL:replaceStateHashStringURL -+ withOmniboxText:replaceStateHashStringURL.GetContent() - pageLoaded:NO]; - - const GURL pushStatePathURL = - web::test::HttpServer::MakeUrl(kPushStatePathURL); - [ChromeEarlGrey tapWebViewElementWithID:@"pushStatePath"]; - [self assertStatusText:@"pushStatePath" -- withURL:pushStatePathURL -+ withOmniboxText:pushStatePathURL.GetContent() - pageLoaded:NO]; - - const GURL replaceStateRootPathSpaceURL = - web::test::HttpServer::MakeUrl(kReplaceStateRootPathSpaceURL); - [ChromeEarlGrey tapWebViewElementWithID:@"replaceStateRootPathSpace"]; - [self assertStatusText:@"replaceStateRootPathSpace" -- withURL:replaceStateRootPathSpaceURL -+ withOmniboxText:replaceStateRootPathSpaceURL.GetContent() - pageLoaded:NO]; - - // Go back and check URLs. - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [self assertStatusText:@"replaceStateHashString" -- withURL:replaceStateHashStringURL -+ withOmniboxText:replaceStateHashStringURL.GetContent() - pageLoaded:NO]; - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [self assertStatusText:@"replaceStateHashWithObject" -- withURL:replaceStateHashWithObjectURL -+ withOmniboxText:replaceStateHashWithObjectURL.GetContent() - pageLoaded:NO]; - - // Go forward and check URL. - [ChromeEarlGrey tapWebViewElementWithID:@"goForward2"]; - [self assertStatusText:@"replaceStateRootPathSpace" -- withURL:replaceStateRootPathSpaceURL -+ withOmniboxText:replaceStateRootPathSpaceURL.GetContent() - pageLoaded:NO]; - } - -@@ -180,11 +182,11 @@ const char* kReplaceStateRootPathSpaceUR - web::test::HttpServer::MakeUrl(kPushStateHashStringURL); - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"]; - [self assertStatusText:@"pushStateHashString" -- withURL:pushStateHashStringURL -+ withOmniboxText:pushStateHashStringURL.GetContent() - pageLoaded:NO]; - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"]; - [self assertStatusText:@"pushStateHashString" -- withURL:pushStateHashStringURL -+ withOmniboxText:pushStateHashStringURL.GetContent() - pageLoaded:NO]; - - // Load a non-pushed URL. -@@ -194,7 +196,7 @@ const char* kReplaceStateRootPathSpaceUR - [ChromeEarlGrey loadURL:historyTestURL]; - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"]; - [self assertStatusText:@"pushStateHashString" -- withURL:pushStateHashStringURL -+ withOmniboxText:pushStateHashStringURL.GetContent() - pageLoaded:NO]; - - // At this point the history looks like this: -@@ -202,38 +204,54 @@ const char* kReplaceStateRootPathSpaceUR - - // Go back (to second history.html) and verify page did not load. - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; -- [self assertStatusText:nil withURL:historyTestURL pageLoaded:NO]; -+ [self assertStatusText:nil -+ withOmniboxText:historyTestURL.GetContent() -+ pageLoaded:NO]; - - // Go back twice (to second #string) and verify page did load. - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; -- [self assertStatusText:nil withURL:pushStateHashStringURL pageLoaded:YES]; -+ [self assertStatusText:nil -+ withOmniboxText:pushStateHashStringURL.GetContent() -+ pageLoaded:YES]; - - // Go back once (to first #string) and verify page did not load. - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [self assertStatusText:@"pushStateHashString" -- withURL:pushStateHashStringURL -+ withOmniboxText:pushStateHashStringURL.GetContent() - pageLoaded:NO]; - - // Go forward 4 entries at once (to third #string) and verify page did load. - [ChromeEarlGrey tapWebViewElementWithID:@"goForward4"]; - -- [self assertStatusText:nil withURL:pushStateHashStringURL pageLoaded:YES]; -+ [self assertStatusText:nil -+ withOmniboxText:pushStateHashStringURL.GetContent() -+ pageLoaded:YES]; - - // Go back 4 entries at once (to first #string) and verify page did load. - [ChromeEarlGrey tapWebViewElementWithID:@"goBack4"]; - -- [self assertStatusText:NULL withURL:pushStateHashStringURL pageLoaded:YES]; -+ [self assertStatusText:nil -+ withOmniboxText:pushStateHashStringURL.GetContent() -+ pageLoaded:YES]; - } - - // Tests calling pushState with unicode characters. - - (void)testHtml5HistoryPushUnicodeCharacters { -- const GURL pushStateUnicodeURLEncoded = web::test::HttpServer::MakeUrl( -- "http://ios/testing/data/http_server_files/" -- "history.html#unicode%E1%84%91"); -- const GURL pushStateUnicode2URLEncoded = web::test::HttpServer::MakeUrl( -- "http://ios/testing/data/http_server_files/" -- "history.html#unicode2%E2%88%A2"); -+ // The GURL object %-escapes Unicode characters in the URL's fragment, -+ // but the omnibox decodes them back to Unicode for display. -+ std::string pushStateUnicode = -+ web::test::HttpServer::MakeUrl( -+ "http://ios/testing/data/http_server_files/" -+ "history.html#unicode") -+ .GetContent() + -+ "\xe1\x84\x91"; -+ std::string pushStateUnicode2 = -+ web::test::HttpServer::MakeUrl( -+ "http://ios/testing/data/http_server_files/" -+ "history.html#unicode2") -+ .GetContent() + -+ "\xe2\x88\xa2"; - const char pushStateUnicodeLabel[] = "Action: pushStateUnicodeá„‘"; - NSString* pushStateUnicodeStatus = @"pushStateUnicodeá„‘"; - const char pushStateUnicode2Label[] = "Action: pushStateUnicode2∢"; -@@ -242,21 +260,16 @@ const char* kReplaceStateRootPathSpaceUR - web::test::SetUpFileBasedHttpServer(); - [ChromeEarlGrey loadURL:web::test::HttpServer::MakeUrl(kHistoryTestUrl)]; - -- // TODO(crbug.com/643458): The fact that the URL shows %-escaped is due to -- // NSURL escaping to make UIWebView/JS happy. See if it's possible to -- // represent differently such that it displays unescaped. - // Do 2 push states with unicode characters. - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateUnicode"]; - [[EarlGrey -- selectElementWithMatcher:chrome_test_util::OmniboxText( -- pushStateUnicodeURLEncoded.GetContent())] -+ selectElementWithMatcher:chrome_test_util::OmniboxText(pushStateUnicode)] - assertWithMatcher:grey_notNil()]; - [ChromeEarlGrey waitForWebViewContainingText:pushStateUnicodeLabel]; - - [ChromeEarlGrey tapWebViewElementWithID:@"pushStateUnicode2"]; - [[EarlGrey -- selectElementWithMatcher:chrome_test_util::OmniboxText( -- pushStateUnicode2URLEncoded.GetContent())] -+ selectElementWithMatcher:chrome_test_util::OmniboxText(pushStateUnicode2)] - assertWithMatcher:grey_notNil()]; - [ChromeEarlGrey waitForWebViewContainingText:pushStateUnicode2Label]; - -@@ -266,18 +279,18 @@ const char* kReplaceStateRootPathSpaceUR - [ChromeEarlGrey tapWebViewElementWithID:@"pushStatePath"]; - - [self assertStatusText:@"pushStatePath" -- withURL:pushStatePathURL -+ withOmniboxText:pushStatePathURL.GetContent() - pageLoaded:NO]; - - // Go back and check the unicode in the URL and status. - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [self assertStatusText:pushStateUnicode2Status -- withURL:pushStateUnicode2URLEncoded -+ withOmniboxText:pushStateUnicode2 - pageLoaded:NO]; - - [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()]; - [self assertStatusText:pushStateUnicodeStatus -- withURL:pushStateUnicodeURLEncoded -+ withOmniboxText:pushStateUnicode - pageLoaded:NO]; - } - -@@ -321,10 +334,11 @@ const char* kReplaceStateRootPathSpaceUR - - #pragma mark - Utility methods - --// Assert that status text |status| is displayed in the webview, that "onloaded" --// text is displayed if pageLoaded is YES, and that the URL is as expected. -+// Assert that status text |status|, if non-nil, is displayed in the webview, -+// that the omnibox text is as expected, and that "onload" text is displayed if -+// pageLoaded is YES. - - (void)assertStatusText:(NSString*)status -- withURL:(const GURL&)urlToVerify -+ withOmniboxText:(const std::string&)omniboxText - pageLoaded:(BOOL)pageLoaded { - if (pageLoaded) { - [ChromeEarlGrey waitForWebViewContainingText:"onload"]; -@@ -332,14 +346,14 @@ const char* kReplaceStateRootPathSpaceUR - [ChromeEarlGrey waitForWebViewNotContainingText:"onload"]; - } - -- if (status != NULL) { -+ if (status != nil) { - NSString* statusLabel = [NSString stringWithFormat:@"Action: %@", status]; - [ChromeEarlGrey - waitForWebViewContainingText:base::SysNSStringToUTF8(statusLabel)]; - } - -- [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( -- urlToVerify.GetContent())] -+ [[EarlGrey -+ selectElementWithMatcher:chrome_test_util::OmniboxText(omniboxText)] - assertWithMatcher:grey_notNil()]; - } - diff --git a/resources/patches/inox-patchset/chromium-stdint.patch b/resources/patches/inox-patchset/chromium-stdint.patch new file mode 100644 index 00000000..87744395 --- /dev/null +++ b/resources/patches/inox-patchset/chromium-stdint.patch @@ -0,0 +1,21 @@ +From 0235c2b657d936f3cdb09053776e5929fc84704b Mon Sep 17 00:00:00 2001 +From: Tomas Popela +Date: Wed, 31 Jan 2018 18:57:07 +0000 +Subject: [PATCH] Add missing stdint include + +diff --git a/chrome/browser/vr/sample_queue.cc b/chrome/browser/vr/sample_queue.cc +index c2ca777ce90c..53cb3aab1576 100644 +--- a/chrome/browser/vr/sample_queue.cc ++++ b/chrome/browser/vr/sample_queue.cc +@@ -2,6 +2,8 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + ++#include ++ + #include "chrome/browser/vr/sample_queue.h" + + namespace vr { +-- +2.16.2 + diff --git a/resources/patches/inox-patchset/chromium-vaapi-init.patch b/resources/patches/inox-patchset/chromium-vaapi-init-r16.patch similarity index 77% rename from resources/patches/inox-patchset/chromium-vaapi-init.patch rename to resources/patches/inox-patchset/chromium-vaapi-init-r16.patch index 0cd4557b..8b49d2a0 100644 --- a/resources/patches/inox-patchset/chromium-vaapi-init.patch +++ b/resources/patches/inox-patchset/chromium-vaapi-init-r16.patch @@ -1,6 +1,6 @@ -From a57aa298ed3c3b76056d6e24fb09db05dca2f465 Mon Sep 17 00:00:00 2001 +From 281edc278272f0650fc190c8539d443ac59157bc Mon Sep 17 00:00:00 2001 From: Daniel Charles -Date: Thu, 25 Jan 2018 13:01:37 -0800 +Date: Thu, 08 Feb 2018 02:36:51 +0000 Subject: [PATCH] vaapi initialization: move it to vaapi_wrapper vaapi loading of libraries happens on the Pre and Post Sandbox @@ -10,18 +10,28 @@ and i965_drv_video shared libraries to vaapi_wrapper. When calling PreSandbox function in vaapi_wrapper libva will open i965_drv_video shared library and both will be available for use -BUG=chromium:785117 -TEST="video initialization of h/w dec/enc, VAVDA/VAVEA/VAJDA subjective" -TEST="testing and include unittests and autotests" +BUG=785117 +TEST=video initialization of h/w dec/enc, VAVDA/VAVEA/VAJDA subjective + testing and include unittests and autotests Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I862bb49f1167d7437e80387882cb9081ad53f54b Signed-off-by: Daniel Charles +Reviewed-on: https://chromium-review.googlesource.com/666138 +Commit-Queue: Miguel Casas +Reviewed-by: Kenneth Russell +Reviewed-by: Antoine Labour +Reviewed-by: Dongseong Hwang +Reviewed-by: Pawel Osciak +Reviewed-by: Jorge Lucangeli Obes +Cr-Commit-Position: refs/heads/master@{#535274} --- +diff --git a/content/gpu/gpu_sandbox_hook_linux.cc b/content/gpu/gpu_sandbox_hook_linux.cc +index e69e23e..5c4013c 100644 --- a/content/gpu/gpu_sandbox_hook_linux.cc +++ b/content/gpu/gpu_sandbox_hook_linux.cc -@@ -28,10 +28,6 @@ +@@ -29,10 +29,6 @@ #include "services/service_manager/sandbox/linux/bpf_gpu_policy_linux.h" #include "services/service_manager/sandbox/linux/sandbox_linux.h" @@ -32,7 +42,7 @@ Signed-off-by: Daniel Charles using sandbox::bpf_dsl::Policy; using sandbox::syscall_broker::BrokerFilePermission; using sandbox::syscall_broker::BrokerProcess; -@@ -47,22 +43,6 @@ inline bool IsChromeOS() { +@@ -48,22 +44,6 @@ #endif } @@ -55,7 +65,7 @@ Signed-off-by: Daniel Charles inline bool IsArchitectureArm() { #if defined(ARCH_CPU_ARM_FAMILY) return true; -@@ -87,14 +67,6 @@ inline bool UseLibV4L2() { +@@ -88,14 +68,6 @@ #endif } @@ -70,7 +80,7 @@ Signed-off-by: Daniel Charles constexpr int dlopen_flag = RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE; void AddV4L2GpuWhitelist( -@@ -259,51 +231,6 @@ void LoadV4L2Libraries() { +@@ -270,50 +242,6 @@ } } @@ -79,8 +89,7 @@ Signed-off-by: Daniel Charles - if (IsArchitectureX86_64() || IsArchitectureI386()) { - // Accelerated video dlopen()'s some shared objects - // inside the sandbox, so preload them now. -- if (options.vaapi_accelerated_video_encode_enabled || -- options.accelerated_video_decode_enabled) { +- if (IsAcceleratedVideoEnabled(options)) { - if (IsLibVAVersion2()) { - if (IsArchitectureX86_64()) { - dlopen("/usr/lib64/va/drivers/i965_drv_video.so", dlopen_flag); @@ -122,7 +131,7 @@ Signed-off-by: Daniel Charles bool LoadLibrariesForGpu( const service_manager::SandboxSeccompBPF::Options& options) { if (IsChromeOS()) { -@@ -316,7 +243,6 @@ bool LoadLibrariesForGpu( +@@ -326,7 +254,6 @@ if (options.use_amd_specific_policies) return LoadAmdGpuLibraries(); } @@ -130,9 +139,23 @@ Signed-off-by: Daniel Charles return true; } +diff --git a/media/gpu/vaapi/vaapi_wrapper.cc b/media/gpu/vaapi/vaapi_wrapper.cc +index bc3d735..7421a74 100644 --- a/media/gpu/vaapi/vaapi_wrapper.cc +++ b/media/gpu/vaapi/vaapi_wrapper.cc -@@ -163,9 +163,6 @@ class VADisplayState { +@@ -48,6 +48,11 @@ + using media_gpu_vaapi::kModuleVa_x11; + #endif + using media_gpu_vaapi::InitializeStubs; ++using media_gpu_vaapi::IsVaInitialized; ++#if defined(USE_X11) ++using media_gpu_vaapi::IsVa_x11Initialized; ++#endif ++using media_gpu_vaapi::IsVa_drmInitialized; + using media_gpu_vaapi::StubPathMap; + + #define LOG_VA_ERROR_AND_REPORT(va_error, err_msg) \ +@@ -166,9 +171,6 @@ void SetDrmFd(base::PlatformFile fd) { drm_fd_.reset(HANDLE_EINTR(dup(fd))); } private: @@ -142,7 +165,7 @@ Signed-off-by: Daniel Charles // Protected by |va_lock_|. int refcount_; -@@ -200,43 +197,12 @@ void VADisplayState::PreSandboxInitializ +@@ -203,41 +205,17 @@ VADisplayState::Get()->SetDrmFd(drm_file.GetPlatformFile()); } @@ -181,12 +204,15 @@ Signed-off-by: Daniel Charles - static bool result = PostSandboxInitialization(); - if (!result) -- return false; -- - if (refcount_++ > 0) - return true; ++ if (!IsVaInitialized() || ++#if defined(USE_X11) ++ !IsVa_x11Initialized() || ++#endif ++ !IsVa_drmInitialized()) + return false; -@@ -1367,6 +1333,34 @@ void VaapiWrapper::DeinitializeVpp() { + if (refcount_++ > 0) +@@ -1169,6 +1147,38 @@ // static void VaapiWrapper::PreSandboxInitialization() { VADisplayState::PreSandboxInitialization(); @@ -200,6 +226,10 @@ Signed-off-by: Daniel Charles + paths[kModuleVa_x11].push_back(std::string("libva-x11.so.") + va_suffix); +#endif + ++ // InitializeStubs dlopen() VA-API libraries ++ // libva.so ++ // libva-x11.so (X11) ++ // libva-drm.so (X11 and Ozone). + static bool result = InitializeStubs(paths); + if (!result) { + static const char kErrorMsg[] = "Failed to initialize VAAPI libs"; @@ -211,13 +241,13 @@ Signed-off-by: Daniel Charles + DVLOG(1) << kErrorMsg; +#endif + } -+ // next command will dlopen all necessary libraries for -+ // va-api to function properly, to know: -+ // libva.so ++ ++ // VASupportedProfiles::Get creates VADisplayState and in so doing ++ // driver associated libraries are dlopen(), to know: + // i965_drv_video.so + // hybrid_drv_video.so (platforms that support it) -+ // libva-x11.so (X11) or libva-drm.so (Ozone). ++ // libcmrt.so (platforms that support it) + VASupportedProfiles::Get(); } - } // namespace media + VaapiWrapper::VaapiWrapper() diff --git a/resources/patches/inox-patchset/chromium-vaapi-move.patch b/resources/patches/inox-patchset/chromium-vaapi-move.patch deleted file mode 100644 index 1eb8fad6..00000000 --- a/resources/patches/inox-patchset/chromium-vaapi-move.patch +++ /dev/null @@ -1,15235 +0,0 @@ -From 42e955c9b3030121dd945e103a39381a92221bdb Mon Sep 17 00:00:00 2001 -From: Miguel Casas -Date: Mon, 04 Dec 2017 14:18:12 +0000 -Subject: [PATCH] vaapi: move vaapi* files to //media/gpu/vaapi/ folder - -This CL moves the (remaining) vaapi related files from -//media/gpu to the existing//media/gpu/vaapi. - -Fully automatic: - -$ git mv media/gpu/vaapi_* media/gpu/vaapi/ -$ git mv media/gpu/va_s* media/gpu/vaapi/ -$ tools/git/mass-rename.p - -TBR= sadrul@chromium.org, avi@chromium.org for -the two first files that just get an include path udpate. - -Bug: none -Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel -Change-Id: Ia1dcbdef3695bae5879d0951fc78cf6dcef3325f -Reviewed-on: https://chromium-review.googlesource.com/801636 -Commit-Queue: Miguel Casas -Reviewed-by: Pawel Osciak -Reviewed-by: Dale Curtis -Cr-Commit-Position: refs/heads/master@{#521330} ---- - ---- a/components/viz/service/main/viz_main_impl.cc -+++ b/components/viz/service/main/viz_main_impl.cc -@@ -29,7 +29,7 @@ - #include "services/service_manager/public/cpp/connector.h" - - #if defined(OS_CHROMEOS) && BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #endif - - namespace { ---- a/content/gpu/gpu_main.cc -+++ b/content/gpu/gpu_main.cc -@@ -95,7 +95,7 @@ - #endif - - #if BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #endif - - namespace content { ---- a/media/gpu/BUILD.gn -+++ b/media/gpu/BUILD.gn -@@ -310,26 +310,26 @@ component("gpu") { - - if (use_vaapi) { - sources += [ -- "va_surface.cc", -- "va_surface.h", -- "vaapi/vaapi_picture_factory.cc", -- "vaapi/vaapi_picture_factory.h", -+ "vaapi/va_surface.cc", -+ "vaapi/va_surface.h", -+ "vaapi/vaapi_jpeg_decode_accelerator.cc", -+ "vaapi/vaapi_jpeg_decode_accelerator.h", -+ "vaapi/vaapi_jpeg_decoder.cc", -+ "vaapi/vaapi_jpeg_decoder.h", -+ "vaapi/vaapi_jpeg_encode_accelerator.cc", -+ "vaapi/vaapi_jpeg_encode_accelerator.h", -+ "vaapi/vaapi_jpeg_encoder.cc", -+ "vaapi/vaapi_jpeg_encoder.h", - "vaapi/vaapi_picture.cc", - "vaapi/vaapi_picture.h", -- "vaapi_jpeg_decode_accelerator.cc", -- "vaapi_jpeg_decode_accelerator.h", -- "vaapi_jpeg_decoder.cc", -- "vaapi_jpeg_decoder.h", -- "vaapi_jpeg_encode_accelerator.cc", -- "vaapi_jpeg_encode_accelerator.h", -- "vaapi_jpeg_encoder.cc", -- "vaapi_jpeg_encoder.h", -- "vaapi_video_decode_accelerator.cc", -- "vaapi_video_decode_accelerator.h", -- "vaapi_video_encode_accelerator.cc", -- "vaapi_video_encode_accelerator.h", -- "vaapi_wrapper.cc", -- "vaapi_wrapper.h", -+ "vaapi/vaapi_picture_factory.cc", -+ "vaapi/vaapi_picture_factory.h", -+ "vaapi/vaapi_video_decode_accelerator.cc", -+ "vaapi/vaapi_video_decode_accelerator.h", -+ "vaapi/vaapi_video_encode_accelerator.cc", -+ "vaapi/vaapi_video_encode_accelerator.h", -+ "vaapi/vaapi_wrapper.cc", -+ "vaapi/vaapi_wrapper.h", - ] + get_target_outputs(":libva_generate_stubs") - configs += [ "//third_party/libyuv:libyuv_config" ] - deps += [ -@@ -596,7 +596,7 @@ source_set("unit_tests") { - ] - - if (use_vaapi) { -- sources += [ "vaapi_video_decode_accelerator_unittest.cc" ] -+ sources += [ "vaapi/vaapi_video_decode_accelerator_unittest.cc" ] - deps += [ - ":gpu", - "//base/test:test_support", ---- a/media/gpu/gpu_jpeg_decode_accelerator_factory.cc -+++ b/media/gpu/gpu_jpeg_decode_accelerator_factory.cc -@@ -17,7 +17,7 @@ - #endif - - #if BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_jpeg_decode_accelerator.h" -+#include "media/gpu/vaapi/vaapi_jpeg_decode_accelerator.h" - #endif - - #if defined(USE_V4L2_JDA) ---- a/media/gpu/gpu_video_decode_accelerator_factory.cc -+++ b/media/gpu/gpu_video_decode_accelerator_factory.cc -@@ -34,7 +34,7 @@ - #include "media/gpu/android/device_info.h" - #endif - #if BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_video_decode_accelerator.h" -+#include "media/gpu/vaapi/vaapi_video_decode_accelerator.h" - #include "ui/gl/gl_implementation.h" - #endif - ---- a/media/gpu/gpu_video_encode_accelerator_factory.cc -+++ b/media/gpu/gpu_video_encode_accelerator_factory.cc -@@ -24,7 +24,7 @@ - #include "media/gpu/media_foundation_video_encode_accelerator_win.h" - #endif - #if BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_video_encode_accelerator.h" -+#include "media/gpu/vaapi/vaapi_video_encode_accelerator.h" - #endif - - namespace media { ---- a/media/gpu/jpeg_decode_accelerator_unittest.cc -+++ b/media/gpu/jpeg_decode_accelerator_unittest.cc -@@ -35,7 +35,7 @@ - #include "ui/gfx/codec/jpeg_codec.h" - - #if BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #endif - - namespace media { ---- a/media/gpu/va_surface.cc -+++ /dev/null -@@ -1,24 +0,0 @@ --// Copyright 2017 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/va_surface.h" -- --namespace media { -- --VASurface::VASurface(VASurfaceID va_surface_id, -- const gfx::Size& size, -- unsigned int format, -- const ReleaseCB& release_cb) -- : va_surface_id_(va_surface_id), -- size_(size), -- format_(format), -- release_cb_(release_cb) { -- DCHECK(!release_cb_.is_null()); --} -- --VASurface::~VASurface() { -- release_cb_.Run(va_surface_id_); --} -- --} // namespace media ---- a/media/gpu/va_surface.h -+++ /dev/null -@@ -1,117 +0,0 @@ --// Copyright 2013 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. --// --// This file contains the definition of VASurface class, used for decoding by --// VaapiVideoDecodeAccelerator and VaapiH264Decoder. -- --#ifndef MEDIA_GPU_VA_SURFACE_H_ --#define MEDIA_GPU_VA_SURFACE_H_ -- --#include -- --#include "base/callback.h" --#include "base/macros.h" --#include "base/memory/ref_counted.h" --#include "media/gpu/media_gpu_export.h" --#include "ui/gfx/geometry/size.h" -- --namespace media { -- --// A VA-API-specific decode surface used by VaapiH264Decoder to decode into --// and use as reference for decoding other surfaces. It is also handed by the --// decoder to VaapiVideoDecodeAccelerator when the contents of the surface are --// ready and should be displayed. VAVDA converts the surface contents into an --// X/Drm Pixmap bound to a texture for display and releases its reference to it. --// Decoder releases its references to the surface when it's done decoding and --// using it as reference. Note that a surface may still be used for reference --// after it's been sent to output and also after it is no longer used by VAVDA. --// Thus, the surface can be in use by both VAVDA and the Decoder at the same --// time, or by either of them, with the restriction that VAVDA will never get --// the surface until the contents are ready, and it is guaranteed that the --// contents will not change after that. --// When both the decoder and VAVDA release their references to the surface, --// it is freed and the release callback is executed to put the surface back --// into available surfaces pool, which is managed externally. --// --// VASurfaceID is allocated in VaapiWrapper. --// | --// +----->| --// | v --// | VASurfaceID is put onto VaapiVideoDecodeAccelerator::available_va_surfaces_ --// | | list. --// | v --// | VASurfaceID is taken off of the VVDA:available_va_surfaces_ when --// | | VaapiH264Decoder requests more output surfaces, is wrapped into --// | | a VASurface and passed to VaapiH264Decoder. --// | v --// | VASurface is put onto VaapiH264Decoder::available_va_surfaces_, keeping --// | | the only reference to it until it's needed for decoding. --// | v --// | VaapiH264Decoder starts decoding a new frame. It takes a VASurface off of --// | | VHD::available_va_surfaces_ and assigns it to a DecodeSurface, --// | | which now keeps the only reference. --// | v --// | DecodeSurface is used for decoding, putting data into associated VASurface. --// | | --// | |--------------------------------------------------+ --// | | | --// | v v --// | DecodeSurface is to be output. VaapiH264Decoder uses the --// | VaapiH264Decoder passes the associated DecodeSurface and associated --// | VASurface to VaapiVideoDecodeAccelerator, VASurface as reference for --// | which stores it (taking a ref) on decoding more frames. --// | pending_output_cbs_ queue until an output | --// | VaapiPicture becomes available. v --// | | Once the DecodeSurface is not --// | | needed as reference anymore, --// | v it is released, releasing the --// | A VaapiPicture becomes available after associated VASurface reference. --// | the client of VVDA returns | --// | a PictureBuffer associated with it. VVDA | --// | puts the contents of the VASurface into | --// | it and releases the reference to VASurface. | --// | | | --// | '---------------------------------------' --// | | --// | v --// | Neither VVDA nor VHD hold a reference to VASurface. VASurface is released, --// | ReleaseCB gets called in its destructor, which puts the associated --// | VASurfaceID back onto VVDA::available_va_surfaces_. --// | | --// '-------------------------------------| --// | --// v --// VaapiWrapper frees VASurfaceID. --// --class MEDIA_GPU_EXPORT VASurface -- : public base::RefCountedThreadSafe { -- public: -- // Provided by user, will be called when all references to the surface -- // are released. -- using ReleaseCB = base::Callback; -- -- VASurface(VASurfaceID va_surface_id, -- const gfx::Size& size, -- unsigned int format, -- const ReleaseCB& release_cb); -- -- VASurfaceID id() const { return va_surface_id_; } -- const gfx::Size& size() const { return size_; } -- unsigned int format() const { return format_; } -- -- private: -- friend class base::RefCountedThreadSafe; -- ~VASurface(); -- -- const VASurfaceID va_surface_id_; -- const gfx::Size size_; -- const unsigned int format_; -- const ReleaseCB release_cb_; -- -- DISALLOW_COPY_AND_ASSIGN(VASurface); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VA_SURFACE_H_ ---- /dev/null -+++ b/media/gpu/vaapi/va_surface.cc -@@ -0,0 +1,24 @@ -+// Copyright 2017 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/va_surface.h" -+ -+namespace media { -+ -+VASurface::VASurface(VASurfaceID va_surface_id, -+ const gfx::Size& size, -+ unsigned int format, -+ const ReleaseCB& release_cb) -+ : va_surface_id_(va_surface_id), -+ size_(size), -+ format_(format), -+ release_cb_(release_cb) { -+ DCHECK(!release_cb_.is_null()); -+} -+ -+VASurface::~VASurface() { -+ release_cb_.Run(va_surface_id_); -+} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/va_surface.h -@@ -0,0 +1,117 @@ -+// Copyright 2013 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+// -+// This file contains the definition of VASurface class, used for decoding by -+// VaapiVideoDecodeAccelerator and VaapiH264Decoder. -+ -+#ifndef MEDIA_GPU_VAAPI_VA_SURFACE_H_ -+#define MEDIA_GPU_VAAPI_VA_SURFACE_H_ -+ -+#include -+ -+#include "base/callback.h" -+#include "base/macros.h" -+#include "base/memory/ref_counted.h" -+#include "media/gpu/media_gpu_export.h" -+#include "ui/gfx/geometry/size.h" -+ -+namespace media { -+ -+// A VA-API-specific decode surface used by VaapiH264Decoder to decode into -+// and use as reference for decoding other surfaces. It is also handed by the -+// decoder to VaapiVideoDecodeAccelerator when the contents of the surface are -+// ready and should be displayed. VAVDA converts the surface contents into an -+// X/Drm Pixmap bound to a texture for display and releases its reference to it. -+// Decoder releases its references to the surface when it's done decoding and -+// using it as reference. Note that a surface may still be used for reference -+// after it's been sent to output and also after it is no longer used by VAVDA. -+// Thus, the surface can be in use by both VAVDA and the Decoder at the same -+// time, or by either of them, with the restriction that VAVDA will never get -+// the surface until the contents are ready, and it is guaranteed that the -+// contents will not change after that. -+// When both the decoder and VAVDA release their references to the surface, -+// it is freed and the release callback is executed to put the surface back -+// into available surfaces pool, which is managed externally. -+// -+// VASurfaceID is allocated in VaapiWrapper. -+// | -+// +----->| -+// | v -+// | VASurfaceID is put onto VaapiVideoDecodeAccelerator::available_va_surfaces_ -+// | | list. -+// | v -+// | VASurfaceID is taken off of the VVDA:available_va_surfaces_ when -+// | | VaapiH264Decoder requests more output surfaces, is wrapped into -+// | | a VASurface and passed to VaapiH264Decoder. -+// | v -+// | VASurface is put onto VaapiH264Decoder::available_va_surfaces_, keeping -+// | | the only reference to it until it's needed for decoding. -+// | v -+// | VaapiH264Decoder starts decoding a new frame. It takes a VASurface off of -+// | | VHD::available_va_surfaces_ and assigns it to a DecodeSurface, -+// | | which now keeps the only reference. -+// | v -+// | DecodeSurface is used for decoding, putting data into associated VASurface. -+// | | -+// | |--------------------------------------------------+ -+// | | | -+// | v v -+// | DecodeSurface is to be output. VaapiH264Decoder uses the -+// | VaapiH264Decoder passes the associated DecodeSurface and associated -+// | VASurface to VaapiVideoDecodeAccelerator, VASurface as reference for -+// | which stores it (taking a ref) on decoding more frames. -+// | pending_output_cbs_ queue until an output | -+// | VaapiPicture becomes available. v -+// | | Once the DecodeSurface is not -+// | | needed as reference anymore, -+// | v it is released, releasing the -+// | A VaapiPicture becomes available after associated VASurface reference. -+// | the client of VVDA returns | -+// | a PictureBuffer associated with it. VVDA | -+// | puts the contents of the VASurface into | -+// | it and releases the reference to VASurface. | -+// | | | -+// | '---------------------------------------' -+// | | -+// | v -+// | Neither VVDA nor VHD hold a reference to VASurface. VASurface is released, -+// | ReleaseCB gets called in its destructor, which puts the associated -+// | VASurfaceID back onto VVDA::available_va_surfaces_. -+// | | -+// '-------------------------------------| -+// | -+// v -+// VaapiWrapper frees VASurfaceID. -+// -+class MEDIA_GPU_EXPORT VASurface -+ : public base::RefCountedThreadSafe { -+ public: -+ // Provided by user, will be called when all references to the surface -+ // are released. -+ using ReleaseCB = base::Callback; -+ -+ VASurface(VASurfaceID va_surface_id, -+ const gfx::Size& size, -+ unsigned int format, -+ const ReleaseCB& release_cb); -+ -+ VASurfaceID id() const { return va_surface_id_; } -+ const gfx::Size& size() const { return size_; } -+ unsigned int format() const { return format_; } -+ -+ private: -+ friend class base::RefCountedThreadSafe; -+ ~VASurface(); -+ -+ const VASurfaceID va_surface_id_; -+ const gfx::Size size_; -+ const unsigned int format_; -+ const ReleaseCB release_cb_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VASurface); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VA_SURFACE_H_ ---- a/media/gpu/vaapi/vaapi_drm_picture.cc -+++ b/media/gpu/vaapi/vaapi_drm_picture.cc -@@ -5,8 +5,8 @@ - #include "media/gpu/vaapi/vaapi_drm_picture.h" - - #include "base/file_descriptor_posix.h" --#include "media/gpu/va_surface.h" --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/va_surface.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #include "ui/gfx/gpu_memory_buffer.h" - #include "ui/gfx/native_pixmap.h" - #include "ui/gl/gl_bindings.h" ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc -@@ -0,0 +1,325 @@ -+// Copyright 2015 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_jpeg_decode_accelerator.h" -+ -+#include -+#include -+ -+#include -+#include -+ -+#include "base/bind.h" -+#include "base/logging.h" -+#include "base/metrics/histogram_macros.h" -+#include "base/threading/thread_task_runner_handle.h" -+#include "base/trace_event/trace_event.h" -+#include "gpu/ipc/service/gpu_channel.h" -+#include "media/base/video_frame.h" -+#include "media/filters/jpeg_parser.h" -+#include "media/gpu/shared_memory_region.h" -+#include "media/gpu/vaapi/vaapi_picture.h" -+#include "third_party/libyuv/include/libyuv.h" -+ -+#define VLOGF(level) VLOG(level) << __func__ << "(): " -+#define DVLOGF(level) DVLOG(level) << __func__ << "(): " -+ -+namespace media { -+ -+namespace { -+// UMA errors that the VaapiJpegDecodeAccelerator class reports. -+enum VAJDADecoderFailure { -+ VAAPI_ERROR = 0, -+ VAJDA_DECODER_FAILURES_MAX, -+}; -+ -+static void ReportToUMA(VAJDADecoderFailure failure) { -+ UMA_HISTOGRAM_ENUMERATION("Media.VAJDA.DecoderFailure", failure, -+ VAJDA_DECODER_FAILURES_MAX + 1); -+} -+ -+static unsigned int VaSurfaceFormatForJpeg( -+ const JpegFrameHeader& frame_header) { -+ // The range of sampling factor is [1, 4]. Pack them into integer to make the -+ // matching code simpler. For example, 0x211 means the sampling factor are 2, -+ // 1, 1 for 3 components. -+ unsigned int h = 0, v = 0; -+ for (int i = 0; i < frame_header.num_components; i++) { -+ DCHECK_LE(frame_header.components[i].horizontal_sampling_factor, 4); -+ DCHECK_LE(frame_header.components[i].vertical_sampling_factor, 4); -+ h = h << 4 | frame_header.components[i].horizontal_sampling_factor; -+ v = v << 4 | frame_header.components[i].vertical_sampling_factor; -+ } -+ -+ switch (frame_header.num_components) { -+ case 1: // Grey image -+ return VA_RT_FORMAT_YUV400; -+ -+ case 3: // Y Cb Cr color image -+ // See https://en.wikipedia.org/wiki/Chroma_subsampling for the -+ // definition of these numbers. -+ if (h == 0x211 && v == 0x211) -+ return VA_RT_FORMAT_YUV420; -+ -+ if (h == 0x211 && v == 0x111) -+ return VA_RT_FORMAT_YUV422; -+ -+ if (h == 0x111 && v == 0x111) -+ return VA_RT_FORMAT_YUV444; -+ -+ if (h == 0x411 && v == 0x111) -+ return VA_RT_FORMAT_YUV411; -+ } -+ VLOGF(1) << "Unsupported sampling factor: num_components=" -+ << frame_header.num_components << ", h=" << std::hex << h -+ << ", v=" << v; -+ -+ return 0; -+} -+ -+} // namespace -+ -+VaapiJpegDecodeAccelerator::DecodeRequest::DecodeRequest( -+ int32_t bitstream_buffer_id, -+ std::unique_ptr shm, -+ const scoped_refptr& video_frame) -+ : bitstream_buffer_id(bitstream_buffer_id), -+ shm(std::move(shm)), -+ video_frame(video_frame) {} -+ -+VaapiJpegDecodeAccelerator::DecodeRequest::~DecodeRequest() {} -+ -+void VaapiJpegDecodeAccelerator::NotifyError(int32_t bitstream_buffer_id, -+ Error error) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ VLOGF(1) << "Notifying of error " << error; -+ DCHECK(client_); -+ client_->NotifyError(bitstream_buffer_id, error); -+} -+ -+void VaapiJpegDecodeAccelerator::NotifyErrorFromDecoderThread( -+ int32_t bitstream_buffer_id, -+ Error error) { -+ DCHECK(decoder_task_runner_->BelongsToCurrentThread()); -+ task_runner_->PostTask(FROM_HERE, -+ base::Bind(&VaapiJpegDecodeAccelerator::NotifyError, -+ weak_this_, bitstream_buffer_id, error)); -+} -+ -+void VaapiJpegDecodeAccelerator::VideoFrameReady(int32_t bitstream_buffer_id) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ client_->VideoFrameReady(bitstream_buffer_id); -+} -+ -+VaapiJpegDecodeAccelerator::VaapiJpegDecodeAccelerator( -+ const scoped_refptr& io_task_runner) -+ : task_runner_(base::ThreadTaskRunnerHandle::Get()), -+ io_task_runner_(io_task_runner), -+ decoder_thread_("VaapiJpegDecoderThread"), -+ va_surface_id_(VA_INVALID_SURFACE), -+ weak_this_factory_(this) { -+ weak_this_ = weak_this_factory_.GetWeakPtr(); -+} -+ -+VaapiJpegDecodeAccelerator::~VaapiJpegDecodeAccelerator() { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ VLOGF(2) << "Destroying VaapiJpegDecodeAccelerator"; -+ -+ weak_this_factory_.InvalidateWeakPtrs(); -+ decoder_thread_.Stop(); -+} -+ -+bool VaapiJpegDecodeAccelerator::Initialize(Client* client) { -+ VLOGF(2); -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ client_ = client; -+ -+ vaapi_wrapper_ = -+ VaapiWrapper::Create(VaapiWrapper::kDecode, VAProfileJPEGBaseline, -+ base::Bind(&ReportToUMA, VAAPI_ERROR)); -+ -+ if (!vaapi_wrapper_.get()) { -+ VLOGF(1) << "Failed initializing VAAPI"; -+ return false; -+ } -+ -+ if (!decoder_thread_.Start()) { -+ VLOGF(1) << "Failed to start decoding thread."; -+ return false; -+ } -+ decoder_task_runner_ = decoder_thread_.task_runner(); -+ -+ return true; -+} -+ -+bool VaapiJpegDecodeAccelerator::OutputPicture( -+ VASurfaceID va_surface_id, -+ int32_t input_buffer_id, -+ const scoped_refptr& video_frame) { -+ DCHECK(decoder_task_runner_->BelongsToCurrentThread()); -+ -+ TRACE_EVENT1("jpeg", "VaapiJpegDecodeAccelerator::OutputPicture", -+ "input_buffer_id", input_buffer_id); -+ -+ DVLOGF(4) << "Outputting VASurface " << va_surface_id -+ << " into video_frame associated with input buffer id " -+ << input_buffer_id; -+ -+ VAImage image; -+ VAImageFormat format; -+ const uint32_t kI420Fourcc = VA_FOURCC('I', '4', '2', '0'); -+ memset(&image, 0, sizeof(image)); -+ memset(&format, 0, sizeof(format)); -+ format.fourcc = kI420Fourcc; -+ format.byte_order = VA_LSB_FIRST; -+ format.bits_per_pixel = 12; // 12 for I420 -+ -+ uint8_t* mem = nullptr; -+ gfx::Size coded_size = video_frame->coded_size(); -+ if (!vaapi_wrapper_->GetVaImage(va_surface_id, &format, coded_size, &image, -+ reinterpret_cast(&mem))) { -+ VLOGF(1) << "Cannot get VAImage"; -+ return false; -+ } -+ -+ // Copy image content from VAImage to VideoFrame. -+ // The component order of VAImage I420 are Y, U, and V. -+ DCHECK_EQ(image.num_planes, 3u); -+ DCHECK_GE(image.width, coded_size.width()); -+ DCHECK_GE(image.height, coded_size.height()); -+ const uint8_t* src_y = mem + image.offsets[0]; -+ const uint8_t* src_u = mem + image.offsets[1]; -+ const uint8_t* src_v = mem + image.offsets[2]; -+ size_t src_y_stride = image.pitches[0]; -+ size_t src_u_stride = image.pitches[1]; -+ size_t src_v_stride = image.pitches[2]; -+ uint8_t* dst_y = video_frame->data(VideoFrame::kYPlane); -+ uint8_t* dst_u = video_frame->data(VideoFrame::kUPlane); -+ uint8_t* dst_v = video_frame->data(VideoFrame::kVPlane); -+ size_t dst_y_stride = video_frame->stride(VideoFrame::kYPlane); -+ size_t dst_u_stride = video_frame->stride(VideoFrame::kUPlane); -+ size_t dst_v_stride = video_frame->stride(VideoFrame::kVPlane); -+ -+ if (libyuv::I420Copy(src_y, src_y_stride, // Y -+ src_u, src_u_stride, // U -+ src_v, src_v_stride, // V -+ dst_y, dst_y_stride, // Y -+ dst_u, dst_u_stride, // U -+ dst_v, dst_v_stride, // V -+ coded_size.width(), coded_size.height())) { -+ VLOGF(1) << "I420Copy failed"; -+ return false; -+ } -+ -+ vaapi_wrapper_->ReturnVaImage(&image); -+ -+ task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::VideoFrameReady, -+ weak_this_, input_buffer_id)); -+ -+ return true; -+} -+ -+void VaapiJpegDecodeAccelerator::DecodeTask( -+ const std::unique_ptr& request) { -+ DVLOGF(4); -+ DCHECK(decoder_task_runner_->BelongsToCurrentThread()); -+ TRACE_EVENT0("jpeg", "DecodeTask"); -+ -+ JpegParseResult parse_result; -+ if (!ParseJpegPicture( -+ reinterpret_cast(request->shm->memory()), -+ request->shm->size(), &parse_result)) { -+ VLOGF(1) << "ParseJpegPicture failed"; -+ NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -+ PARSE_JPEG_FAILED); -+ return; -+ } -+ -+ unsigned int new_va_rt_format = -+ VaSurfaceFormatForJpeg(parse_result.frame_header); -+ if (!new_va_rt_format) { -+ VLOGF(1) << "Unsupported subsampling"; -+ NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -+ UNSUPPORTED_JPEG); -+ return; -+ } -+ -+ // Reuse VASurface if size doesn't change. -+ gfx::Size new_coded_size(parse_result.frame_header.coded_width, -+ parse_result.frame_header.coded_height); -+ if (new_coded_size != coded_size_ || va_surface_id_ == VA_INVALID_SURFACE || -+ new_va_rt_format != va_rt_format_) { -+ vaapi_wrapper_->DestroySurfaces(); -+ va_surface_id_ = VA_INVALID_SURFACE; -+ va_rt_format_ = new_va_rt_format; -+ -+ std::vector va_surfaces; -+ if (!vaapi_wrapper_->CreateSurfaces(va_rt_format_, new_coded_size, 1, -+ &va_surfaces)) { -+ VLOGF(1) << "Create VA surface failed"; -+ NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -+ PLATFORM_FAILURE); -+ return; -+ } -+ va_surface_id_ = va_surfaces[0]; -+ coded_size_ = new_coded_size; -+ } -+ -+ if (!VaapiJpegDecoder::Decode(vaapi_wrapper_.get(), parse_result, -+ va_surface_id_)) { -+ VLOGF(1) << "Decode JPEG failed"; -+ NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -+ PLATFORM_FAILURE); -+ return; -+ } -+ -+ if (!OutputPicture(va_surface_id_, request->bitstream_buffer_id, -+ request->video_frame)) { -+ VLOGF(1) << "Output picture failed"; -+ NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -+ PLATFORM_FAILURE); -+ return; -+ } -+} -+ -+void VaapiJpegDecodeAccelerator::Decode( -+ const BitstreamBuffer& bitstream_buffer, -+ const scoped_refptr& video_frame) { -+ DCHECK(io_task_runner_->BelongsToCurrentThread()); -+ TRACE_EVENT1("jpeg", "Decode", "input_id", bitstream_buffer.id()); -+ -+ DVLOGF(4) << "Mapping new input buffer id: " << bitstream_buffer.id() -+ << " size: " << bitstream_buffer.size(); -+ -+ // SharedMemoryRegion will take over the |bitstream_buffer.handle()|. -+ std::unique_ptr shm( -+ new SharedMemoryRegion(bitstream_buffer, true)); -+ -+ if (bitstream_buffer.id() < 0) { -+ VLOGF(1) << "Invalid bitstream_buffer, id: " << bitstream_buffer.id(); -+ NotifyErrorFromDecoderThread(bitstream_buffer.id(), INVALID_ARGUMENT); -+ return; -+ } -+ -+ if (!shm->Map()) { -+ VLOGF(1) << "Failed to map input buffer"; -+ NotifyErrorFromDecoderThread(bitstream_buffer.id(), UNREADABLE_INPUT); -+ return; -+ } -+ -+ std::unique_ptr request( -+ new DecodeRequest(bitstream_buffer.id(), std::move(shm), video_frame)); -+ -+ decoder_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask, -+ base::Unretained(this), base::Passed(&request))); -+} -+ -+bool VaapiJpegDecodeAccelerator::IsSupported() { -+ return VaapiWrapper::IsJpegDecodeSupported(); -+} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.h -@@ -0,0 +1,121 @@ -+// Copyright 2015 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODE_ACCELERATOR_H_ -+#define MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODE_ACCELERATOR_H_ -+ -+#include -+ -+#include -+ -+#include "base/macros.h" -+#include "base/memory/linked_ptr.h" -+#include "base/memory/weak_ptr.h" -+#include "base/single_thread_task_runner.h" -+#include "base/synchronization/lock.h" -+#include "base/threading/thread.h" -+#include "media/base/bitstream_buffer.h" -+#include "media/gpu/media_gpu_export.h" -+#include "media/gpu/shared_memory_region.h" -+#include "media/gpu/vaapi/vaapi_jpeg_decoder.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+#include "media/video/jpeg_decode_accelerator.h" -+ -+namespace media { -+ -+// Class to provide JPEG decode acceleration for Intel systems with hardware -+// support for it, and on which libva is available. -+// Decoding tasks are performed in a separate decoding thread. -+// -+// Threading/life-cycle: this object is created & destroyed on the GPU -+// ChildThread. A few methods on it are called on the decoder thread which is -+// stopped during |this->Destroy()|, so any tasks posted to the decoder thread -+// can assume |*this| is still alive. See |weak_this_| below for more details. -+class MEDIA_GPU_EXPORT VaapiJpegDecodeAccelerator -+ : public JpegDecodeAccelerator { -+ public: -+ VaapiJpegDecodeAccelerator( -+ const scoped_refptr& io_task_runner); -+ ~VaapiJpegDecodeAccelerator() override; -+ -+ // JpegDecodeAccelerator implementation. -+ bool Initialize(JpegDecodeAccelerator::Client* client) override; -+ void Decode(const BitstreamBuffer& bitstream_buffer, -+ const scoped_refptr& video_frame) override; -+ bool IsSupported() override; -+ -+ private: -+ // An input buffer and the corresponding output video frame awaiting -+ // consumption, provided by the client. -+ struct DecodeRequest { -+ DecodeRequest(int32_t bitstream_buffer_id, -+ std::unique_ptr shm, -+ const scoped_refptr& video_frame); -+ ~DecodeRequest(); -+ -+ int32_t bitstream_buffer_id; -+ std::unique_ptr shm; -+ scoped_refptr video_frame; -+ }; -+ -+ // Notifies the client that an error has occurred and decoding cannot -+ // continue. -+ void NotifyError(int32_t bitstream_buffer_id, Error error); -+ void NotifyErrorFromDecoderThread(int32_t bitstream_buffer_id, Error error); -+ void VideoFrameReady(int32_t bitstream_buffer_id); -+ -+ // Processes one decode |request|. -+ void DecodeTask(const std::unique_ptr& request); -+ -+ // Puts contents of |va_surface| into given |video_frame|, releases the -+ // surface and passes the |input_buffer_id| of the resulting picture to -+ // client for output. -+ bool OutputPicture(VASurfaceID va_surface_id, -+ int32_t input_buffer_id, -+ const scoped_refptr& video_frame); -+ -+ // ChildThread's task runner. -+ scoped_refptr task_runner_; -+ -+ // GPU IO task runner. -+ scoped_refptr io_task_runner_; -+ -+ // The client of this class. -+ Client* client_; -+ -+ // WeakPtr<> pointing to |this| for use in posting tasks from the decoder -+ // thread back to the ChildThread. Because the decoder thread is a member of -+ // this class, any task running on the decoder thread is guaranteed that this -+ // object is still alive. As a result, tasks posted from ChildThread to -+ // decoder thread should use base::Unretained(this), and tasks posted from the -+ // decoder thread to the ChildThread should use |weak_this_|. -+ base::WeakPtr weak_this_; -+ -+ scoped_refptr vaapi_wrapper_; -+ -+ // Comes after vaapi_wrapper_ to ensure its destructor is executed before -+ // |vaapi_wrapper_| is destroyed. -+ std::unique_ptr decoder_; -+ base::Thread decoder_thread_; -+ // Use this to post tasks to |decoder_thread_| instead of -+ // |decoder_thread_.task_runner()| because the latter will be NULL once -+ // |decoder_thread_.Stop()| returns. -+ scoped_refptr decoder_task_runner_; -+ -+ // The current VA surface for decoding. -+ VASurfaceID va_surface_id_; -+ // The coded size associated with |va_surface_id_|. -+ gfx::Size coded_size_; -+ // The VA RT format associated with |va_surface_id_|. -+ unsigned int va_rt_format_; -+ -+ // The WeakPtrFactory for |weak_this_|. -+ base::WeakPtrFactory weak_this_factory_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiJpegDecodeAccelerator); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODE_ACCELERATOR_H_ ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_decoder.cc -@@ -0,0 +1,229 @@ -+// Copyright 2015 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_jpeg_decoder.h" -+ -+#include -+#include -+ -+#include "base/logging.h" -+#include "base/macros.h" -+#include "media/filters/jpeg_parser.h" -+ -+namespace media { -+ -+// VAAPI only support subset of JPEG profiles. This function determines a given -+// parsed JPEG result is supported or not. -+static bool IsVaapiSupportedJpeg(const JpegParseResult& jpeg) { -+ if (jpeg.frame_header.visible_width < 1 || -+ jpeg.frame_header.visible_height < 1) { -+ DLOG(ERROR) << "width(" << jpeg.frame_header.visible_width -+ << ") and height(" << jpeg.frame_header.visible_height -+ << ") should be at least 1"; -+ return false; -+ } -+ -+ // Size 64k*64k is the maximum in the JPEG standard. VAAPI doesn't support -+ // resolutions larger than 16k*16k. -+ const int kMaxDimension = 16384; -+ if (jpeg.frame_header.coded_width > kMaxDimension || -+ jpeg.frame_header.coded_height > kMaxDimension) { -+ DLOG(ERROR) << "VAAPI doesn't support size(" -+ << jpeg.frame_header.coded_width << "*" -+ << jpeg.frame_header.coded_height << ") larger than " -+ << kMaxDimension << "*" << kMaxDimension; -+ return false; -+ } -+ -+ if (jpeg.frame_header.num_components != 3) { -+ DLOG(ERROR) << "VAAPI doesn't support num_components(" -+ << static_cast(jpeg.frame_header.num_components) -+ << ") != 3"; -+ return false; -+ } -+ -+ if (jpeg.frame_header.components[0].horizontal_sampling_factor < -+ jpeg.frame_header.components[1].horizontal_sampling_factor || -+ jpeg.frame_header.components[0].horizontal_sampling_factor < -+ jpeg.frame_header.components[2].horizontal_sampling_factor) { -+ DLOG(ERROR) << "VAAPI doesn't supports horizontal sampling factor of Y" -+ << " smaller than Cb and Cr"; -+ return false; -+ } -+ -+ if (jpeg.frame_header.components[0].vertical_sampling_factor < -+ jpeg.frame_header.components[1].vertical_sampling_factor || -+ jpeg.frame_header.components[0].vertical_sampling_factor < -+ jpeg.frame_header.components[2].vertical_sampling_factor) { -+ DLOG(ERROR) << "VAAPI doesn't supports vertical sampling factor of Y" -+ << " smaller than Cb and Cr"; -+ return false; -+ } -+ -+ return true; -+} -+ -+static void FillPictureParameters( -+ const JpegFrameHeader& frame_header, -+ VAPictureParameterBufferJPEGBaseline* pic_param) { -+ memset(pic_param, 0, sizeof(*pic_param)); -+ pic_param->picture_width = frame_header.coded_width; -+ pic_param->picture_height = frame_header.coded_height; -+ pic_param->num_components = frame_header.num_components; -+ -+ for (int i = 0; i < pic_param->num_components; i++) { -+ pic_param->components[i].component_id = frame_header.components[i].id; -+ pic_param->components[i].h_sampling_factor = -+ frame_header.components[i].horizontal_sampling_factor; -+ pic_param->components[i].v_sampling_factor = -+ frame_header.components[i].vertical_sampling_factor; -+ pic_param->components[i].quantiser_table_selector = -+ frame_header.components[i].quantization_table_selector; -+ } -+} -+ -+static void FillIQMatrix(const JpegQuantizationTable* q_table, -+ VAIQMatrixBufferJPEGBaseline* iq_matrix) { -+ memset(iq_matrix, 0, sizeof(*iq_matrix)); -+ static_assert(kJpegMaxQuantizationTableNum == -+ arraysize(iq_matrix->load_quantiser_table), -+ "max number of quantization table mismatched"); -+ for (size_t i = 0; i < kJpegMaxQuantizationTableNum; i++) { -+ if (!q_table[i].valid) -+ continue; -+ iq_matrix->load_quantiser_table[i] = 1; -+ static_assert( -+ arraysize(iq_matrix->quantiser_table[i]) == arraysize(q_table[i].value), -+ "number of quantization entries mismatched"); -+ for (size_t j = 0; j < arraysize(q_table[i].value); j++) -+ iq_matrix->quantiser_table[i][j] = q_table[i].value[j]; -+ } -+} -+ -+static void FillHuffmanTable(const JpegHuffmanTable* dc_table, -+ const JpegHuffmanTable* ac_table, -+ VAHuffmanTableBufferJPEGBaseline* huffman_table) { -+ memset(huffman_table, 0, sizeof(*huffman_table)); -+ // Use default huffman tables if not specified in header. -+ bool has_huffman_table = false; -+ for (size_t i = 0; i < kJpegMaxHuffmanTableNumBaseline; i++) { -+ if (dc_table[i].valid || ac_table[i].valid) { -+ has_huffman_table = true; -+ break; -+ } -+ } -+ if (!has_huffman_table) { -+ dc_table = kDefaultDcTable; -+ ac_table = kDefaultAcTable; -+ } -+ -+ static_assert(kJpegMaxHuffmanTableNumBaseline == -+ arraysize(huffman_table->load_huffman_table), -+ "max number of huffman table mismatched"); -+ static_assert(sizeof(huffman_table->huffman_table[0].num_dc_codes) == -+ sizeof(dc_table[0].code_length), -+ "size of huffman table code length mismatch"); -+ static_assert(sizeof(huffman_table->huffman_table[0].dc_values[0]) == -+ sizeof(dc_table[0].code_value[0]), -+ "size of huffman table code value mismatch"); -+ for (size_t i = 0; i < kJpegMaxHuffmanTableNumBaseline; i++) { -+ if (!dc_table[i].valid || !ac_table[i].valid) -+ continue; -+ huffman_table->load_huffman_table[i] = 1; -+ -+ memcpy(huffman_table->huffman_table[i].num_dc_codes, -+ dc_table[i].code_length, -+ sizeof(huffman_table->huffman_table[i].num_dc_codes)); -+ memcpy(huffman_table->huffman_table[i].dc_values, dc_table[i].code_value, -+ sizeof(huffman_table->huffman_table[i].dc_values)); -+ memcpy(huffman_table->huffman_table[i].num_ac_codes, -+ ac_table[i].code_length, -+ sizeof(huffman_table->huffman_table[i].num_ac_codes)); -+ memcpy(huffman_table->huffman_table[i].ac_values, ac_table[i].code_value, -+ sizeof(huffman_table->huffman_table[i].ac_values)); -+ } -+} -+ -+static void FillSliceParameters( -+ const JpegParseResult& parse_result, -+ VASliceParameterBufferJPEGBaseline* slice_param) { -+ memset(slice_param, 0, sizeof(*slice_param)); -+ slice_param->slice_data_size = parse_result.data_size; -+ slice_param->slice_data_offset = 0; -+ slice_param->slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -+ slice_param->slice_horizontal_position = 0; -+ slice_param->slice_vertical_position = 0; -+ slice_param->num_components = parse_result.scan.num_components; -+ for (int i = 0; i < slice_param->num_components; i++) { -+ slice_param->components[i].component_selector = -+ parse_result.scan.components[i].component_selector; -+ slice_param->components[i].dc_table_selector = -+ parse_result.scan.components[i].dc_selector; -+ slice_param->components[i].ac_table_selector = -+ parse_result.scan.components[i].ac_selector; -+ } -+ slice_param->restart_interval = parse_result.restart_interval; -+ -+ // Cast to int to prevent overflow. -+ int max_h_factor = -+ parse_result.frame_header.components[0].horizontal_sampling_factor; -+ int max_v_factor = -+ parse_result.frame_header.components[0].vertical_sampling_factor; -+ int mcu_cols = parse_result.frame_header.coded_width / (max_h_factor * 8); -+ DCHECK_GT(mcu_cols, 0); -+ int mcu_rows = parse_result.frame_header.coded_height / (max_v_factor * 8); -+ DCHECK_GT(mcu_rows, 0); -+ slice_param->num_mcus = mcu_rows * mcu_cols; -+} -+ -+// static -+bool VaapiJpegDecoder::Decode(VaapiWrapper* vaapi_wrapper, -+ const JpegParseResult& parse_result, -+ VASurfaceID va_surface) { -+ DCHECK_NE(va_surface, VA_INVALID_SURFACE); -+ if (!IsVaapiSupportedJpeg(parse_result)) -+ return false; -+ -+ // Set picture parameters. -+ VAPictureParameterBufferJPEGBaseline pic_param; -+ FillPictureParameters(parse_result.frame_header, &pic_param); -+ if (!vaapi_wrapper->SubmitBuffer(VAPictureParameterBufferType, -+ sizeof(pic_param), &pic_param)) -+ return false; -+ -+ // Set quantization table. -+ VAIQMatrixBufferJPEGBaseline iq_matrix; -+ FillIQMatrix(parse_result.q_table, &iq_matrix); -+ if (!vaapi_wrapper->SubmitBuffer(VAIQMatrixBufferType, sizeof(iq_matrix), -+ &iq_matrix)) -+ return false; -+ -+ // Set huffman table. -+ VAHuffmanTableBufferJPEGBaseline huffman_table; -+ FillHuffmanTable(parse_result.dc_table, parse_result.ac_table, -+ &huffman_table); -+ if (!vaapi_wrapper->SubmitBuffer(VAHuffmanTableBufferType, -+ sizeof(huffman_table), &huffman_table)) -+ return false; -+ -+ // Set slice parameters. -+ VASliceParameterBufferJPEGBaseline slice_param; -+ FillSliceParameters(parse_result, &slice_param); -+ if (!vaapi_wrapper->SubmitBuffer(VASliceParameterBufferType, -+ sizeof(slice_param), &slice_param)) -+ return false; -+ -+ // Set scan data. -+ if (!vaapi_wrapper->SubmitBuffer(VASliceDataBufferType, -+ parse_result.data_size, -+ const_cast(parse_result.data))) -+ return false; -+ -+ if (!vaapi_wrapper->ExecuteAndDestroyPendingBuffers(va_surface)) -+ return false; -+ -+ return true; -+} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_decoder.h -@@ -0,0 +1,43 @@ -+// Copyright 2015 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODER_H_ -+#define MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODER_H_ -+ -+#include "base/macros.h" -+#include "media/gpu/media_gpu_export.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+ -+namespace media { -+ -+struct JpegParseResult; -+ -+// A JPEG decoder that utilizes VA-API hardware video decode acceleration on -+// Intel systems. Provides functionality to allow plugging VAAPI HW -+// acceleration into the JpegDecodeAccelerator framework. -+// -+// Clients of this class are expected to manage VA surfaces created via -+// VaapiWrapper, parse JPEG picture via ParseJpegPicture, and then pass -+// them to this class. -+class MEDIA_GPU_EXPORT VaapiJpegDecoder { -+ public: -+ // Decode a JPEG picture. It will fill VA-API parameters and call -+ // corresponding VA-API methods according to parsed JPEG result -+ // |parse_result|. Decoded data will be outputted to the given |va_surface|. -+ // Return false on failure. -+ // |vaapi_wrapper| should be initialized in kDecode mode with -+ // VAProfileJPEGBaseline profile. -+ // |va_surface| should be created with size at least as large as the picture -+ // size. -+ static bool Decode(VaapiWrapper* vaapi_wrapper, -+ const JpegParseResult& parse_result, -+ VASurfaceID va_surface); -+ -+ private: -+ DISALLOW_IMPLICIT_CONSTRUCTORS(VaapiJpegDecoder); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODER_H_ ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_decoder_unittest.cc -@@ -0,0 +1,139 @@ -+// Copyright 2015 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include -+#include -+ -+#include -+ -+// This has to be included first. -+// See http://code.google.com/p/googletest/issues/detail?id=371 -+#include "testing/gtest/include/gtest/gtest.h" -+ -+#include "base/at_exit.h" -+#include "base/bind.h" -+#include "base/files/file_util.h" -+#include "base/logging.h" -+#include "base/md5.h" -+#include "base/path_service.h" -+#include "base/strings/string_piece.h" -+#include "media/base/test_data_util.h" -+#include "media/base/video_frame.h" -+#include "media/filters/jpeg_parser.h" -+#include "media/gpu/vaapi/vaapi_jpeg_decoder.h" -+ -+namespace media { -+namespace { -+ -+const char* kTestFilename = "pixel-1280x720.jpg"; -+const char* kExpectedMd5Sum = "6e9e1716073c9a9a1282e3f0e0dab743"; -+ -+void LogOnError() { -+ LOG(FATAL) << "Oh noes! Decoder failed"; -+} -+ -+class VaapiJpegDecoderTest : public ::testing::Test { -+ protected: -+ VaapiJpegDecoderTest() {} -+ -+ void SetUp() override { -+ base::Closure report_error_cb = base::Bind(&LogOnError); -+ wrapper_ = VaapiWrapper::Create(VaapiWrapper::kDecode, -+ VAProfileJPEGBaseline, report_error_cb); -+ ASSERT_TRUE(wrapper_); -+ -+ base::FilePath input_file = GetTestDataFilePath(kTestFilename); -+ -+ ASSERT_TRUE(base::ReadFileToString(input_file, &jpeg_data_)) -+ << "failed to read input data from " << input_file.value(); -+ } -+ -+ void TearDown() override { wrapper_ = nullptr; } -+ -+ bool VerifyDecode(const JpegParseResult& parse_result, -+ const std::string& md5sum); -+ -+ protected: -+ scoped_refptr wrapper_; -+ std::string jpeg_data_; -+}; -+ -+bool VaapiJpegDecoderTest::VerifyDecode(const JpegParseResult& parse_result, -+ const std::string& expected_md5sum) { -+ gfx::Size size(parse_result.frame_header.coded_width, -+ parse_result.frame_header.coded_height); -+ -+ std::vector va_surfaces; -+ if (!wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, size, 1, &va_surfaces)) -+ return false; -+ -+ if (!VaapiJpegDecoder::Decode(wrapper_.get(), parse_result, va_surfaces[0])) { -+ LOG(ERROR) << "Decode failed"; -+ return false; -+ } -+ -+ VAImage image; -+ VAImageFormat format; -+ const uint32_t kI420Fourcc = VA_FOURCC('I', '4', '2', '0'); -+ memset(&image, 0, sizeof(image)); -+ memset(&format, 0, sizeof(format)); -+ format.fourcc = kI420Fourcc; -+ format.byte_order = VA_LSB_FIRST; -+ format.bits_per_pixel = 12; // 12 for I420 -+ -+ void* mem; -+ if (!wrapper_->GetVaImage(va_surfaces[0], &format, size, &image, &mem)) { -+ LOG(ERROR) << "Cannot get VAImage"; -+ return false; -+ } -+ EXPECT_EQ(kI420Fourcc, image.format.fourcc); -+ -+ base::StringPiece result(reinterpret_cast(mem), -+ VideoFrame::AllocationSize(PIXEL_FORMAT_I420, size)); -+ EXPECT_EQ(expected_md5sum, base::MD5String(result)); -+ -+ wrapper_->ReturnVaImage(&image); -+ -+ return true; -+} -+ -+TEST_F(VaapiJpegDecoderTest, DecodeSuccess) { -+ JpegParseResult parse_result; -+ ASSERT_TRUE( -+ ParseJpegPicture(reinterpret_cast(jpeg_data_.data()), -+ jpeg_data_.size(), &parse_result)); -+ -+ EXPECT_TRUE(VerifyDecode(parse_result, kExpectedMd5Sum)); -+} -+ -+TEST_F(VaapiJpegDecoderTest, DecodeFail) { -+ JpegParseResult parse_result; -+ ASSERT_TRUE( -+ ParseJpegPicture(reinterpret_cast(jpeg_data_.data()), -+ jpeg_data_.size(), &parse_result)); -+ -+ // Not supported by VAAPI. -+ parse_result.frame_header.num_components = 1; -+ parse_result.scan.num_components = 1; -+ -+ gfx::Size size(parse_result.frame_header.coded_width, -+ parse_result.frame_header.coded_height); -+ -+ std::vector va_surfaces; -+ ASSERT_TRUE( -+ wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, size, 1, &va_surfaces)); -+ -+ EXPECT_FALSE( -+ VaapiJpegDecoder::Decode(wrapper_.get(), parse_result, va_surfaces[0])); -+} -+ -+} // namespace -+} // namespace media -+ -+int main(int argc, char** argv) { -+ testing::InitGoogleTest(&argc, argv); -+ base::AtExitManager exit_manager; -+ media::VaapiWrapper::PreSandboxInitialization(); -+ return RUN_ALL_TESTS(); -+} ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_encode_accelerator.cc -@@ -0,0 +1,268 @@ -+// Copyright 2017 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_jpeg_encode_accelerator.h" -+ -+#include -+ -+#include -+#include -+ -+#include "base/bind.h" -+#include "base/logging.h" -+#include "base/metrics/histogram_macros.h" -+#include "base/sequence_checker.h" -+#include "base/task_scheduler/post_task.h" -+#include "base/threading/thread_task_runner_handle.h" -+#include "base/trace_event/trace_event.h" -+#include "media/base/bind_to_current_loop.h" -+#include "media/base/video_frame.h" -+#include "media/gpu/vaapi/vaapi_jpeg_encoder.h" -+ -+namespace media { -+ -+namespace { -+ -+// UMA results that the VaapiJpegEncodeAccelerator class reports. -+// These values are persisted to logs, and should therefore never be renumbered -+// nor reused. -+enum VAJEAEncoderResult { -+ VAAPI_SUCCESS = 0, -+ VAAPI_ERROR, -+ VAJEA_ENCODER_RESULT_MAX = VAAPI_ERROR, -+}; -+ -+static void ReportToUMA(VAJEAEncoderResult result) { -+ UMA_HISTOGRAM_ENUMERATION("Media.VAJEA.EncoderResult", result, -+ VAJEAEncoderResult::VAJEA_ENCODER_RESULT_MAX + 1); -+} -+} // namespace -+ -+VaapiJpegEncodeAccelerator::EncodeRequest::EncodeRequest( -+ scoped_refptr video_frame, -+ std::unique_ptr shm, -+ int quality) -+ : video_frame(std::move(video_frame)), -+ shm(std::move(shm)), -+ quality(quality) {} -+ -+VaapiJpegEncodeAccelerator::EncodeRequest::~EncodeRequest() {} -+ -+class VaapiJpegEncodeAccelerator::Encoder { -+ public: -+ Encoder(scoped_refptr vaapi_wrapper, -+ base::RepeatingCallback video_frame_ready_cb, -+ base::RepeatingCallback notify_error_cb); -+ ~Encoder(); -+ -+ // Processes one encode |request|. -+ void EncodeTask(std::unique_ptr request); -+ -+ private: -+ // |cached_output_buffer_id_| is the last allocated VABuffer during -+ // EncodeTask() and |cached_output_buffer_size_| is the size of it. -+ // If the next call to EncodeTask() does not require a buffer bigger than -+ // |cached_output_buffer_size_|, |cached_output_buffer_id_| will be reused. -+ size_t cached_output_buffer_size_; -+ VABufferID cached_output_buffer_id_; -+ -+ std::unique_ptr jpeg_encoder_; -+ scoped_refptr vaapi_wrapper_; -+ -+ base::RepeatingCallback video_frame_ready_cb_; -+ base::RepeatingCallback notify_error_cb_; -+ -+ SEQUENCE_CHECKER(sequence_checker_); -+ -+ DISALLOW_COPY_AND_ASSIGN(Encoder); -+}; -+ -+VaapiJpegEncodeAccelerator::Encoder::Encoder( -+ scoped_refptr vaapi_wrapper, -+ base::RepeatingCallback video_frame_ready_cb, -+ base::RepeatingCallback notify_error_cb) -+ : cached_output_buffer_size_(0), -+ jpeg_encoder_(new VaapiJpegEncoder(vaapi_wrapper)), -+ vaapi_wrapper_(std::move(vaapi_wrapper)), -+ video_frame_ready_cb_(std::move(video_frame_ready_cb)), -+ notify_error_cb_(std::move(notify_error_cb)) { -+ DETACH_FROM_SEQUENCE(sequence_checker_); -+} -+ -+VaapiJpegEncodeAccelerator::Encoder::~Encoder() { -+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -+} -+ -+void VaapiJpegEncodeAccelerator::Encoder::EncodeTask( -+ std::unique_ptr request) { -+ TRACE_EVENT0("jpeg", "EncodeTask"); -+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -+ -+ const int video_frame_id = request->video_frame->unique_id(); -+ gfx::Size input_size = request->video_frame->coded_size(); -+ std::vector va_surfaces; -+ if (!vaapi_wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, input_size, 1, -+ &va_surfaces)) { -+ VLOG(1) << "Failed to create VA surface"; -+ notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -+ return; -+ } -+ VASurfaceID va_surface_id = va_surfaces[0]; -+ -+ if (!vaapi_wrapper_->UploadVideoFrameToSurface(request->video_frame, -+ va_surface_id)) { -+ VLOG(1) << "Failed to upload video frame to VA surface"; -+ notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -+ return; -+ } -+ -+ // Create output buffer for encoding result. -+ size_t max_coded_buffer_size = -+ VaapiJpegEncoder::GetMaxCodedBufferSize(input_size); -+ if (max_coded_buffer_size > cached_output_buffer_size_) { -+ vaapi_wrapper_->DestroyCodedBuffers(); -+ cached_output_buffer_size_ = 0; -+ -+ VABufferID output_buffer_id; -+ if (!vaapi_wrapper_->CreateCodedBuffer(max_coded_buffer_size, -+ &output_buffer_id)) { -+ VLOG(1) << "Failed to create VA buffer for encoding output"; -+ notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -+ return; -+ } -+ cached_output_buffer_size_ = max_coded_buffer_size; -+ cached_output_buffer_id_ = output_buffer_id; -+ } -+ -+ if (!jpeg_encoder_->Encode(input_size, request->quality, va_surface_id, -+ cached_output_buffer_id_)) { -+ VLOG(1) << "Encode JPEG failed"; -+ notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -+ return; -+ } -+ -+ // Get the encoded output. DownloadFromCodedBuffer() is a blocking call. It -+ // would wait until encoding is finished. -+ size_t encoded_size = 0; -+ if (!vaapi_wrapper_->DownloadFromCodedBuffer( -+ cached_output_buffer_id_, va_surface_id, -+ static_cast(request->shm->memory()), request->shm->size(), -+ &encoded_size)) { -+ VLOG(1) << "Failed to retrieve output image from VA coded buffer"; -+ notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -+ } -+ -+ video_frame_ready_cb_.Run(request->video_frame->unique_id(), encoded_size); -+} -+ -+VaapiJpegEncodeAccelerator::VaapiJpegEncodeAccelerator( -+ scoped_refptr io_task_runner) -+ : task_runner_(base::ThreadTaskRunnerHandle::Get()), -+ io_task_runner_(std::move(io_task_runner)), -+ weak_this_factory_(this) { -+ weak_this_ = weak_this_factory_.GetWeakPtr(); -+} -+ -+VaapiJpegEncodeAccelerator::~VaapiJpegEncodeAccelerator() { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ DVLOG(1) << "Destroying VaapiJpegEncodeAccelerator"; -+ -+ weak_this_factory_.InvalidateWeakPtrs(); -+ encoder_task_runner_->DeleteSoon(FROM_HERE, std::move(encoder_)); -+} -+ -+void VaapiJpegEncodeAccelerator::NotifyError(int video_frame_id, -+ Status status) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ DLOG(ERROR) << "Notifying error: " << status; -+ DCHECK(client_); -+ client_->NotifyError(video_frame_id, status); -+} -+ -+void VaapiJpegEncodeAccelerator::VideoFrameReady(int video_frame_id, -+ size_t encoded_picture_size) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ ReportToUMA(VAJEAEncoderResult::VAAPI_SUCCESS); -+ -+ client_->VideoFrameReady(video_frame_id, encoded_picture_size); -+} -+ -+JpegEncodeAccelerator::Status VaapiJpegEncodeAccelerator::Initialize( -+ JpegEncodeAccelerator::Client* client) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ if (!VaapiWrapper::IsJpegEncodeSupported()) { -+ return HW_JPEG_ENCODE_NOT_SUPPORTED; -+ } -+ -+ client_ = client; -+ scoped_refptr vaapi_wrapper = VaapiWrapper::Create( -+ VaapiWrapper::kEncode, VAProfileJPEGBaseline, -+ base::Bind(&ReportToUMA, VAJEAEncoderResult::VAAPI_ERROR)); -+ -+ if (!vaapi_wrapper) { -+ VLOG(1) << "Failed initializing VAAPI"; -+ return PLATFORM_FAILURE; -+ } -+ -+ encoder_task_runner_ = base::CreateSingleThreadTaskRunnerWithTraits( -+ {base::MayBlock(), base::TaskPriority::USER_BLOCKING}); -+ if (!encoder_task_runner_) { -+ VLOG(1) << "Failed to create encoder task runner."; -+ return THREAD_CREATION_FAILED; -+ } -+ -+ encoder_ = std::make_unique( -+ std::move(vaapi_wrapper), -+ BindToCurrentLoop(base::BindRepeating( -+ &VaapiJpegEncodeAccelerator::VideoFrameReady, weak_this_)), -+ BindToCurrentLoop(base::BindRepeating( -+ &VaapiJpegEncodeAccelerator::NotifyError, weak_this_))); -+ -+ return ENCODE_OK; -+} -+ -+size_t VaapiJpegEncodeAccelerator::GetMaxCodedBufferSize( -+ const gfx::Size& picture_size) { -+ return VaapiJpegEncoder::GetMaxCodedBufferSize(picture_size); -+} -+ -+void VaapiJpegEncodeAccelerator::Encode( -+ scoped_refptr video_frame, -+ int quality, -+ const BitstreamBuffer& bitstream_buffer) { -+ DCHECK(io_task_runner_->BelongsToCurrentThread()); -+ -+ int video_frame_id = video_frame->unique_id(); -+ TRACE_EVENT1("jpeg", "Encode", "input_id", video_frame_id); -+ -+ // TODO(shenghao): support other YUV formats. -+ if (video_frame->format() != VideoPixelFormat::PIXEL_FORMAT_I420) { -+ VLOG(1) << "Unsupported input format: " << video_frame->format(); -+ task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiJpegEncodeAccelerator::NotifyError, -+ weak_this_, video_frame_id, INVALID_ARGUMENT)); -+ return; -+ } -+ -+ // SharedMemoryRegion will take ownership of the |bitstream_buffer.handle()|. -+ auto shm = std::make_unique(bitstream_buffer, false); -+ if (!shm->Map()) { -+ VLOG(1) << "Failed to map output buffer"; -+ task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiJpegEncodeAccelerator::NotifyError, weak_this_, -+ video_frame_id, INACCESSIBLE_OUTPUT_BUFFER)); -+ return; -+ } -+ -+ auto request = std::make_unique(std::move(video_frame), -+ std::move(shm), quality); -+ encoder_task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiJpegEncodeAccelerator::Encoder::EncodeTask, -+ base::Unretained(encoder_.get()), base::Passed(&request))); -+} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_encode_accelerator.h -@@ -0,0 +1,96 @@ -+// Copyright 2017 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef MEDIA_GPU_VAAPI_VAAPI_JPEG_ENCODE_ACCELERATOR_H_ -+#define MEDIA_GPU_VAAPI_VAAPI_JPEG_ENCODE_ACCELERATOR_H_ -+ -+#include -+ -+#include "base/macros.h" -+#include "base/memory/weak_ptr.h" -+#include "base/single_thread_task_runner.h" -+#include "media/base/bitstream_buffer.h" -+#include "media/gpu/media_gpu_export.h" -+#include "media/gpu/shared_memory_region.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+#include "media/video/jpeg_encode_accelerator.h" -+ -+namespace media { -+ -+// Class to provide JPEG encode acceleration for Intel systems with hardware -+// support for it, and on which libva is available. -+// Encoding tasks are performed in a separate encoding thread. -+// -+// Threading/life-cycle: this object is created & destroyed on the GPU -+// ChildThread. Methods in nested class Encoder are called on the encoder -+// thread which is stopped during destructor, so the callbacks bound with -+// a weak this can be run on the encoder thread because it can assume -+// VaapiJpegEncodeAccelerator is still alive. -+class MEDIA_GPU_EXPORT VaapiJpegEncodeAccelerator -+ : public JpegEncodeAccelerator { -+ public: -+ explicit VaapiJpegEncodeAccelerator( -+ scoped_refptr io_task_runner); -+ ~VaapiJpegEncodeAccelerator() override; -+ -+ // JpegEncodeAccelerator implementation. -+ Status Initialize(JpegEncodeAccelerator::Client* client) override; -+ size_t GetMaxCodedBufferSize(const gfx::Size& picture_size) override; -+ -+ // Currently only I420 format is supported for |video_frame|. -+ void Encode(scoped_refptr video_frame, -+ int quality, -+ const BitstreamBuffer& bitstream_buffer) override; -+ -+ private: -+ // An input video frame and the corresponding output buffer awaiting -+ // consumption, provided by the client. -+ struct EncodeRequest { -+ EncodeRequest(scoped_refptr video_frame, -+ std::unique_ptr shm, -+ int quality); -+ ~EncodeRequest(); -+ -+ scoped_refptr video_frame; -+ std::unique_ptr shm; -+ int quality; -+ -+ DISALLOW_COPY_AND_ASSIGN(EncodeRequest); -+ }; -+ -+ // The Encoder class is a collection of methods that run on -+ // |encoder_task_runner_|. -+ class Encoder; -+ -+ // Notifies the client that an error has occurred and encoding cannot -+ // continue. -+ void NotifyError(int video_frame_id, Status status); -+ -+ void VideoFrameReady(int video_frame_id, size_t encoded_picture_size); -+ -+ // ChildThread's task runner. -+ scoped_refptr task_runner_; -+ -+ // GPU IO task runner. -+ scoped_refptr io_task_runner_; -+ -+ // The client of this class. -+ Client* client_; -+ -+ // Use this to post tasks to encoder thread. -+ scoped_refptr encoder_task_runner_; -+ -+ std::unique_ptr encoder_; -+ -+ // |weak_this_| is used to post tasks from |encoder_task_runner_| to -+ // |task_runner_|. -+ base::WeakPtr weak_this_; -+ base::WeakPtrFactory weak_this_factory_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiJpegEncodeAccelerator); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VAAPI_JPEG_ENCODE_ACCELERATOR_H_ ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_encoder.cc -@@ -0,0 +1,427 @@ -+// Copyright 2017 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_jpeg_encoder.h" -+ -+#include -+#include -+#include -+ -+#include "base/logging.h" -+#include "base/macros.h" -+#include "base/numerics/safe_conversions.h" -+#include "media/filters/jpeg_parser.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+ -+#define ARRAY_MEMCPY_CHECKED(to, from) \ -+ do { \ -+ static_assert(sizeof(to) == sizeof(from), \ -+ #from " and " #to " arrays must be of same size"); \ -+ memcpy(to, from, sizeof(to)); \ -+ } while (0) -+ -+namespace media { -+ -+namespace { -+ -+// JPEG header only uses 2 bytes to represent width and height. -+const int kMaxDimension = 65535; -+const size_t kDctSize2 = 64; -+const size_t kNumDcRunSizeBits = 16; -+const size_t kNumAcRunSizeBits = 16; -+const size_t kNumDcCodeWordsHuffVal = 12; -+const size_t kNumAcCodeWordsHuffVal = 162; -+const size_t kJpegHeaderSize = 83 + (kDctSize2 * 2) + (kNumDcRunSizeBits * 2) + -+ (kNumDcCodeWordsHuffVal * 2) + -+ (kNumAcRunSizeBits * 2) + -+ (kNumAcCodeWordsHuffVal * 2); -+ -+const uint8_t kZigZag8x8[64] = { -+ 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, -+ 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, -+ 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, -+ 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63}; -+ -+const JpegQuantizationTable kDefaultQuantTable[2] = { -+ // Table K.1 Luminance quantization table values. -+ { -+ true, -+ {16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, -+ 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, -+ 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, -+ 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99}, -+ }, -+ // Table K.2 Chrominance quantization table values. -+ { -+ true, -+ {17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, -+ 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, -+ 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, -+ 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}, -+ }, -+}; -+ -+using JPEGHeader = uint8_t[kJpegHeaderSize]; -+ -+void FillPictureParameters(const gfx::Size& input_size, -+ int quality, -+ VABufferID output_buffer_id, -+ VAEncPictureParameterBufferJPEG* pic_param) { -+ pic_param->picture_width = input_size.width(); -+ pic_param->picture_height = input_size.height(); -+ pic_param->num_components = 3; -+ -+ // Output buffer. -+ pic_param->coded_buf = output_buffer_id; -+ pic_param->quality = quality; -+ // Profile = Baseline. -+ pic_param->pic_flags.bits.profile = 0; -+ // Sequential encoding. -+ pic_param->pic_flags.bits.progressive = 0; -+ // Uses Huffman coding. -+ pic_param->pic_flags.bits.huffman = 1; -+ // Input format is interleaved (YUV). -+ pic_param->pic_flags.bits.interleaved = 0; -+ // Non-differential Encoding. -+ pic_param->pic_flags.bits.differential = 0; -+ // Only 8 bit sample depth is currently supported. -+ pic_param->sample_bit_depth = 8; -+ pic_param->num_scan = 1; -+} -+ -+void FillQMatrix(VAQMatrixBufferJPEG* q_matrix) { -+ // Fill the raw, unscaled quantization tables for libva. The VAAPI driver is -+ // responsible for scaling the quantization tables based on picture -+ // parameter quality. -+ const JpegQuantizationTable& luminance = kDefaultQuantTable[0]; -+ static_assert( -+ arraysize(luminance.value) == arraysize(q_matrix->lum_quantiser_matrix), -+ "Luminance quantization table size mismatch."); -+ static_assert(arraysize(kZigZag8x8) == arraysize(luminance.value), -+ "Luminance quantization table size mismatch."); -+ q_matrix->load_lum_quantiser_matrix = 1; -+ for (size_t i = 0; i < arraysize(kZigZag8x8); i++) { -+ q_matrix->lum_quantiser_matrix[i] = luminance.value[kZigZag8x8[i]]; -+ } -+ -+ const JpegQuantizationTable& chrominance = kDefaultQuantTable[1]; -+ static_assert(arraysize(chrominance.value) == -+ arraysize(q_matrix->chroma_quantiser_matrix), -+ "Chrominance quantization table size mismatch."); -+ static_assert(arraysize(kZigZag8x8) == arraysize(chrominance.value), -+ "Chrominance quantization table size mismatch."); -+ q_matrix->load_chroma_quantiser_matrix = 1; -+ for (size_t i = 0; i < arraysize(kZigZag8x8); i++) { -+ q_matrix->chroma_quantiser_matrix[i] = chrominance.value[kZigZag8x8[i]]; -+ } -+} -+ -+void FillHuffmanTableParameters( -+ VAHuffmanTableBufferJPEGBaseline* huff_table_param) { -+ static_assert(arraysize(kDefaultDcTable) == arraysize(kDefaultAcTable), -+ "DC table and AC table size mismatch."); -+ static_assert( -+ arraysize(kDefaultDcTable) == arraysize(huff_table_param->huffman_table), -+ "DC table and destination table size mismatch."); -+ -+ for (size_t i = 0; i < arraysize(kDefaultDcTable); ++i) { -+ const JpegHuffmanTable& dcTable = kDefaultDcTable[i]; -+ const JpegHuffmanTable& acTable = kDefaultAcTable[i]; -+ huff_table_param->load_huffman_table[i] = true; -+ -+ // Load DC Table. -+ ARRAY_MEMCPY_CHECKED(huff_table_param->huffman_table[i].num_dc_codes, -+ dcTable.code_length); -+ // |code_values| of JpegHuffmanTable needs to hold DC and AC code values -+ // so it has different size than -+ // |huff_table_param->huffman_table[i].dc_values|. Therefore we can't use -+ // ARRAY_MEMCPY_CHECKED() here. -+ static_assert(arraysize(huff_table_param->huffman_table[i].dc_values) <= -+ arraysize(dcTable.code_value), -+ "DC table code value array too small."); -+ memcpy(huff_table_param->huffman_table[i].dc_values, &dcTable.code_value[0], -+ sizeof(huff_table_param->huffman_table[i].dc_values)); -+ -+ // Load AC Table. -+ ARRAY_MEMCPY_CHECKED(huff_table_param->huffman_table[i].num_ac_codes, -+ acTable.code_length); -+ ARRAY_MEMCPY_CHECKED(huff_table_param->huffman_table[i].ac_values, -+ acTable.code_value); -+ -+ memset(huff_table_param->huffman_table[i].pad, 0, -+ sizeof(huff_table_param->huffman_table[i].pad)); -+ } -+} -+ -+void FillSliceParameters(VAEncSliceParameterBufferJPEG* slice_param) { -+ slice_param->restart_interval = 0; -+ slice_param->num_components = 3; -+ -+ slice_param->components[0].component_selector = 1; -+ slice_param->components[0].dc_table_selector = 0; -+ slice_param->components[0].ac_table_selector = 0; -+ -+ slice_param->components[1].component_selector = 2; -+ slice_param->components[1].dc_table_selector = 1; -+ slice_param->components[1].ac_table_selector = 1; -+ -+ slice_param->components[2].component_selector = 3; -+ slice_param->components[2].dc_table_selector = 1; -+ slice_param->components[2].ac_table_selector = 1; -+} -+ -+size_t FillJpegHeader(const gfx::Size& input_size, -+ int quality, -+ JPEGHeader& header) { -+ unsigned int width = input_size.width(); -+ unsigned int height = input_size.height(); -+ -+ size_t idx = 0; -+ -+ // Start Of Input. -+ static const uint8_t kSOI[] = {0xFF, JPEG_SOI}; -+ memcpy(header, kSOI, sizeof(kSOI)); -+ idx += sizeof(kSOI); -+ -+ // Application Segment - JFIF standard 1.01. -+ // TODO(shenghao): Use Exif (JPEG_APP1) instead. -+ static const uint8_t kAppSegment[] = { -+ 0xFF, JPEG_APP0, 0x00, -+ 0x10, // Segment length:16 (2-byte). -+ 0x4A, // J -+ 0x46, // F -+ 0x49, // I -+ 0x46, // F -+ 0x00, // 0 -+ 0x01, // Major version. -+ 0x01, // Minor version. -+ 0x01, // Density units 0:no units, 1:pixels per inch, -+ // 2: pixels per cm. -+ 0x00, -+ 0x48, // X density (2-byte). -+ 0x00, -+ 0x48, // Y density (2-byte). -+ 0x00, // Thumbnail width. -+ 0x00 // Thumbnail height. -+ }; -+ memcpy(header + idx, kAppSegment, sizeof(kAppSegment)); -+ idx += sizeof(kAppSegment); -+ -+ if (quality <= 0) { -+ quality = 1; -+ } -+ -+ // Normalize quality factor. -+ // Unlike VAQMatrixBufferJPEG, we have to scale quantization table in JPEG -+ // header by ourselves. -+ uint32_t quality_normalized = base::saturated_cast( -+ (quality < 50) ? (5000 / quality) : (200 - (quality * 2))); -+ -+ // Quantization Tables. -+ for (size_t i = 0; i < 2; ++i) { -+ const uint8_t kQuantSegment[] = { -+ 0xFF, JPEG_DQT, 0x00, -+ 0x03 + kDctSize2, // Segment length:67 (2-byte). -+ static_cast(i) // Precision (4-bit high) = 0, -+ // Index (4-bit low) = i. -+ }; -+ memcpy(header + idx, kQuantSegment, sizeof(kQuantSegment)); -+ idx += sizeof(kQuantSegment); -+ -+ const JpegQuantizationTable& quant_table = kDefaultQuantTable[i]; -+ for (size_t j = 0; j < kDctSize2; ++j) { -+ uint32_t scaled_quant_value = -+ (quant_table.value[kZigZag8x8[j]] * quality_normalized) / 100; -+ scaled_quant_value = std::min(255u, std::max(1u, scaled_quant_value)); -+ header[idx++] = static_cast(scaled_quant_value); -+ } -+ } -+ -+ // Start of Frame - Baseline. -+ const uint8_t kStartOfFrame[] = { -+ 0xFF, -+ JPEG_SOF0, // Baseline. -+ 0x00, -+ 0x11, // Segment length:17 (2-byte). -+ 8, // Data precision. -+ static_cast((height >> 8) & 0xFF), -+ static_cast(height & 0xFF), -+ static_cast((width >> 8) & 0xFF), -+ static_cast(width & 0xFF), -+ 0x03, // Number of Components. -+ }; -+ memcpy(header + idx, kStartOfFrame, sizeof(kStartOfFrame)); -+ idx += sizeof(kStartOfFrame); -+ for (uint8_t i = 0; i < 3; ++i) { -+ // These are the values for U and V planes. -+ uint8_t h_sample_factor = 1; -+ uint8_t v_sample_factor = 1; -+ uint8_t quant_table_number = 1; -+ if (!i) { -+ // These are the values for Y plane. -+ h_sample_factor = 2; -+ v_sample_factor = 2; -+ quant_table_number = 0; -+ } -+ -+ header[idx++] = i + 1; -+ // Horizontal Sample Factor (4-bit high), -+ // Vertical Sample Factor (4-bit low). -+ header[idx++] = (h_sample_factor << 4) | v_sample_factor; -+ header[idx++] = quant_table_number; -+ } -+ -+ static const uint8_t kDcSegment[] = { -+ 0xFF, JPEG_DHT, 0x00, -+ 0x1F, // Segment length:31 (2-byte). -+ }; -+ static const uint8_t kAcSegment[] = { -+ 0xFF, JPEG_DHT, 0x00, -+ 0xB5, // Segment length:181 (2-byte). -+ }; -+ -+ // Huffman Tables. -+ for (size_t i = 0; i < 2; ++i) { -+ // DC Table. -+ memcpy(header + idx, kDcSegment, sizeof(kDcSegment)); -+ idx += sizeof(kDcSegment); -+ -+ // Type (4-bit high) = 0:DC, Index (4-bit low). -+ header[idx++] = static_cast(i); -+ -+ const JpegHuffmanTable& dcTable = kDefaultDcTable[i]; -+ for (size_t j = 0; j < kNumDcRunSizeBits; ++j) -+ header[idx++] = dcTable.code_length[j]; -+ for (size_t j = 0; j < kNumDcCodeWordsHuffVal; ++j) -+ header[idx++] = dcTable.code_value[j]; -+ -+ // AC Table. -+ memcpy(header + idx, kAcSegment, sizeof(kAcSegment)); -+ idx += sizeof(kAcSegment); -+ -+ // Type (4-bit high) = 1:AC, Index (4-bit low). -+ header[idx++] = 0x10 | static_cast(i); -+ -+ const JpegHuffmanTable& acTable = kDefaultAcTable[i]; -+ for (size_t j = 0; j < kNumAcRunSizeBits; ++j) -+ header[idx++] = acTable.code_length[j]; -+ for (size_t j = 0; j < kNumAcCodeWordsHuffVal; ++j) -+ header[idx++] = acTable.code_value[j]; -+ } -+ -+ // Start of Scan. -+ static const uint8_t kStartOfScan[] = { -+ 0xFF, JPEG_SOS, 0x00, -+ 0x0C, // Segment Length:12 (2-byte). -+ 0x03 // Number of components in scan. -+ }; -+ memcpy(header + idx, kStartOfScan, sizeof(kStartOfScan)); -+ idx += sizeof(kStartOfScan); -+ -+ for (uint8_t i = 0; i < 3; ++i) { -+ uint8_t dc_table_number = 1; -+ uint8_t ac_table_number = 1; -+ if (!i) { -+ dc_table_number = 0; -+ ac_table_number = 0; -+ } -+ -+ header[idx++] = i + 1; -+ // DC Table Selector (4-bit high), AC Table Selector (4-bit low). -+ header[idx++] = (dc_table_number << 4) | ac_table_number; -+ } -+ header[idx++] = 0x00; // 0 for Baseline. -+ header[idx++] = 0x3F; // 63 for Baseline. -+ header[idx++] = 0x00; // 0 for Baseline. -+ -+ return idx << 3; -+} -+ -+} // namespace -+ -+VaapiJpegEncoder::VaapiJpegEncoder(scoped_refptr vaapi_wrapper) -+ : vaapi_wrapper_(vaapi_wrapper), -+ q_matrix_cached_(nullptr), -+ huff_table_param_cached_(nullptr), -+ slice_param_cached_(nullptr) {} -+ -+VaapiJpegEncoder::~VaapiJpegEncoder() {} -+ -+size_t VaapiJpegEncoder::GetMaxCodedBufferSize(const gfx::Size& size) { -+ return size.GetArea() * 3 / 2 + kJpegHeaderSize; -+} -+ -+bool VaapiJpegEncoder::Encode(const gfx::Size& input_size, -+ int quality, -+ VASurfaceID surface_id, -+ VABufferID output_buffer_id) { -+ DCHECK_NE(surface_id, VA_INVALID_SURFACE); -+ -+ if (input_size.width() > kMaxDimension || -+ input_size.height() > kMaxDimension) { -+ return false; -+ } -+ -+ // Set picture parameters. -+ VAEncPictureParameterBufferJPEG pic_param; -+ FillPictureParameters(input_size, quality, output_buffer_id, &pic_param); -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPictureParameterBufferType, -+ sizeof(pic_param), &pic_param)) { -+ return false; -+ } -+ -+ if (!q_matrix_cached_) { -+ q_matrix_cached_.reset(new VAQMatrixBufferJPEG()); -+ FillQMatrix(q_matrix_cached_.get()); -+ } -+ if (!vaapi_wrapper_->SubmitBuffer(VAQMatrixBufferType, -+ sizeof(*q_matrix_cached_), -+ q_matrix_cached_.get())) { -+ return false; -+ } -+ -+ if (!huff_table_param_cached_) { -+ huff_table_param_cached_.reset(new VAHuffmanTableBufferJPEGBaseline()); -+ FillHuffmanTableParameters(huff_table_param_cached_.get()); -+ } -+ if (!vaapi_wrapper_->SubmitBuffer(VAHuffmanTableBufferType, -+ sizeof(*huff_table_param_cached_), -+ huff_table_param_cached_.get())) { -+ return false; -+ } -+ -+ // Set slice parameters. -+ if (!slice_param_cached_) { -+ slice_param_cached_.reset(new VAEncSliceParameterBufferJPEG()); -+ FillSliceParameters(slice_param_cached_.get()); -+ } -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncSliceParameterBufferType, -+ sizeof(*slice_param_cached_), -+ slice_param_cached_.get())) { -+ return false; -+ } -+ -+ JPEGHeader header_data; -+ size_t length_in_bits = FillJpegHeader(input_size, quality, header_data); -+ -+ VAEncPackedHeaderParameterBuffer header_param; -+ memset(&header_param, 0, sizeof(header_param)); -+ header_param.type = VAEncPackedHeaderRawData; -+ header_param.bit_length = length_in_bits; -+ header_param.has_emulation_bytes = 0; -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderParameterBufferType, -+ sizeof(header_param), &header_param)) { -+ return false; -+ } -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderDataBufferType, -+ (length_in_bits + 7) / 8, header_data)) { -+ return false; -+ } -+ -+ // Submit the |surface_id| which contains input YUV frame and begin encoding. -+ return vaapi_wrapper_->ExecuteAndDestroyPendingBuffers(surface_id); -+} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_jpeg_encoder.h -@@ -0,0 +1,65 @@ -+// Copyright 2017 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef MEDIA_GPU_VAAPI_VAAPI_JPEG_ENCODER_H_ -+#define MEDIA_GPU_VAAPI_VAAPI_JPEG_ENCODER_H_ -+ -+#include -+#include -+ -+#include "base/macros.h" -+#include "base/memory/scoped_refptr.h" -+#include "media/gpu/media_gpu_export.h" -+#include "ui/gfx/geometry/size.h" -+ -+namespace media { -+ -+class VaapiWrapper; -+ -+// A collection of methods that utilize VA-API hardware video encode -+// acceleration on Intel systems. Provides functionality to allow plugging VAAPI -+// HW acceleration into the JpegEncodeAccelerator framework. -+// -+// Clients are expected to manage VA surfaces and VA buffers created via -+// VaapiWrapper, and pass them to this class. -+class MEDIA_GPU_EXPORT VaapiJpegEncoder { -+ public: -+ // |vaapi_wrapper| should be initialized in VaapiWrapper::kEncode -+ // mode with VAProfileJPEGBaseline profile. -+ explicit VaapiJpegEncoder(scoped_refptr vaapi_wrapper); -+ ~VaapiJpegEncoder(); -+ -+ // Encode a JPEG picture. It will fill VA-API parameters and call -+ // corresponding VA-API methods according to |input_size|. -+ // |quality| is the JPEG image quality -+ // |surface_id| is the VA surface that contains input image. -+ // |output_buffer_id| is the ID of VA buffer that encoded image will be -+ // stored. The size of it should be at least as large as -+ // GetMaxCodedBufferSize(). -+ // Return false on failure. -+ bool Encode(const gfx::Size& input_size, -+ int quality, -+ VASurfaceID surface_id, -+ VABufferID output_buffer_id); -+ -+ // Gets the maximum possible encoded result size. -+ // |size| is the dimension of the YUV image to be encoded. -+ static size_t GetMaxCodedBufferSize(const gfx::Size& size); -+ -+ private: -+ scoped_refptr vaapi_wrapper_; -+ -+ // |q_matrix_cached_|, |huff_table_param_cached_| and |slice_param_cached_| -+ // are created when Encode() is called the first time. After that, they will -+ // directly be used for all the subsequent Encode() calls. -+ std::unique_ptr q_matrix_cached_; -+ std::unique_ptr huff_table_param_cached_; -+ std::unique_ptr slice_param_cached_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiJpegEncoder); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VAAPI_JPEG_ENCODER_H_ ---- a/media/gpu/vaapi/vaapi_picture.cc -+++ b/media/gpu/vaapi/vaapi_picture.cc -@@ -4,7 +4,7 @@ - - #include "media/gpu/vaapi/vaapi_picture.h" - --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #include "ui/gl/gl_bindings.h" - #include "ui/gl/gl_implementation.h" - ---- a/media/gpu/vaapi/vaapi_picture_factory.cc -+++ b/media/gpu/vaapi/vaapi_picture_factory.cc -@@ -4,7 +4,7 @@ - - #include "media/gpu/vaapi/vaapi_picture_factory.h" - --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #include "ui/gl/gl_bindings.h" - - #include "media/gpu/vaapi/vaapi_drm_picture.h" ---- a/media/gpu/vaapi/vaapi_tfp_picture.cc -+++ b/media/gpu/vaapi/vaapi_tfp_picture.cc -@@ -4,8 +4,8 @@ - - #include "media/gpu/vaapi/vaapi_tfp_picture.h" - --#include "media/gpu/va_surface.h" --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/va_surface.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #include "ui/gfx/x/x11_types.h" - #include "ui/gl/gl_bindings.h" - #include "ui/gl/gl_image_glx.h" ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_video_decode_accelerator.cc -@@ -0,0 +1,1871 @@ -+// Copyright (c) 2012 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_video_decode_accelerator.h" -+ -+#include -+ -+#include -+ -+#include -+ -+#include "base/bind.h" -+#include "base/files/scoped_file.h" -+#include "base/logging.h" -+#include "base/macros.h" -+#include "base/metrics/histogram_macros.h" -+#include "base/stl_util.h" -+#include "base/strings/string_util.h" -+#include "base/synchronization/waitable_event.h" -+#include "base/threading/thread_task_runner_handle.h" -+#include "base/trace_event/trace_event.h" -+#include "gpu/ipc/service/gpu_channel.h" -+#include "media/base/bind_to_current_loop.h" -+#include "media/gpu/accelerated_video_decoder.h" -+#include "media/gpu/format_utils.h" -+#include "media/gpu/h264_decoder.h" -+#include "media/gpu/vaapi/vaapi_picture.h" -+#include "media/gpu/vp8_decoder.h" -+#include "media/gpu/vp9_decoder.h" -+#include "media/video/picture.h" -+#include "ui/gl/gl_image.h" -+ -+#define DVLOGF(level) DVLOG(level) << __func__ << "(): " -+#define VLOGF(level) VLOG(level) << __func__ << "(): " -+ -+namespace media { -+ -+namespace { -+// UMA errors that the VaapiVideoDecodeAccelerator class reports. -+enum VAVDADecoderFailure { -+ VAAPI_ERROR = 0, -+ VAVDA_DECODER_FAILURES_MAX, -+}; -+// from ITU-T REC H.264 spec -+// section 8.5.6 -+// "Inverse scanning process for 4x4 transform coefficients and scaling lists" -+static const int kZigzagScan4x4[16] = {0, 1, 4, 8, 5, 2, 3, 6, -+ 9, 12, 13, 10, 7, 11, 14, 15}; -+ -+// section 8.5.7 -+// "Inverse scanning process for 8x8 transform coefficients and scaling lists" -+static const uint8_t kZigzagScan8x8[64] = { -+ 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, -+ 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, -+ 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, -+ 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63}; -+ -+// Returns the preferred VA_RT_FORMAT for the given |profile|. -+unsigned int GetVaFormatForVideoCodecProfile(VideoCodecProfile profile) { -+ if (profile == VP9PROFILE_PROFILE2 || profile == VP9PROFILE_PROFILE3) -+ return VA_RT_FORMAT_YUV420_10BPP; -+ return VA_RT_FORMAT_YUV420; -+} -+ -+} // namespace -+ -+static void ReportToUMA(VAVDADecoderFailure failure) { -+ UMA_HISTOGRAM_ENUMERATION("Media.VAVDA.DecoderFailure", failure, -+ VAVDA_DECODER_FAILURES_MAX + 1); -+} -+ -+#define RETURN_AND_NOTIFY_ON_FAILURE(result, log, error_code, ret) \ -+ do { \ -+ if (!(result)) { \ -+ VLOGF(1) << log; \ -+ NotifyError(error_code); \ -+ return ret; \ -+ } \ -+ } while (0) -+ -+class VaapiVideoDecodeAccelerator::VaapiDecodeSurface -+ : public base::RefCountedThreadSafe { -+ public: -+ VaapiDecodeSurface(int32_t bitstream_id, -+ const scoped_refptr& va_surface); -+ -+ int32_t bitstream_id() const { return bitstream_id_; } -+ scoped_refptr va_surface() { return va_surface_; } -+ gfx::Rect visible_rect() const { return visible_rect_; } -+ -+ void set_visible_rect(const gfx::Rect& visible_rect) { -+ visible_rect_ = visible_rect; -+ } -+ -+ private: -+ friend class base::RefCountedThreadSafe; -+ ~VaapiDecodeSurface(); -+ -+ const int32_t bitstream_id_; -+ const scoped_refptr va_surface_; -+ gfx::Rect visible_rect_; -+}; -+ -+VaapiVideoDecodeAccelerator::VaapiDecodeSurface::VaapiDecodeSurface( -+ int32_t bitstream_id, -+ const scoped_refptr& va_surface) -+ : bitstream_id_(bitstream_id), va_surface_(va_surface) {} -+ -+VaapiVideoDecodeAccelerator::VaapiDecodeSurface::~VaapiDecodeSurface() {} -+ -+class VaapiH264Picture : public H264Picture { -+ public: -+ explicit VaapiH264Picture( -+ scoped_refptr surface) -+ : dec_surface_(surface) {} -+ -+ VaapiH264Picture* AsVaapiH264Picture() override { return this; } -+ scoped_refptr dec_surface() { -+ return dec_surface_; -+ } -+ -+ private: -+ ~VaapiH264Picture() override {} -+ -+ scoped_refptr dec_surface_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiH264Picture); -+}; -+ -+class VaapiVideoDecodeAccelerator::VaapiH264Accelerator -+ : public H264Decoder::H264Accelerator { -+ public: -+ VaapiH264Accelerator(VaapiVideoDecodeAccelerator* vaapi_dec, -+ VaapiWrapper* vaapi_wrapper); -+ ~VaapiH264Accelerator() override; -+ -+ // H264Decoder::H264Accelerator implementation. -+ scoped_refptr CreateH264Picture() override; -+ -+ bool SubmitFrameMetadata(const H264SPS* sps, -+ const H264PPS* pps, -+ const H264DPB& dpb, -+ const H264Picture::Vector& ref_pic_listp0, -+ const H264Picture::Vector& ref_pic_listb0, -+ const H264Picture::Vector& ref_pic_listb1, -+ const scoped_refptr& pic) override; -+ -+ bool SubmitSlice(const H264PPS* pps, -+ const H264SliceHeader* slice_hdr, -+ const H264Picture::Vector& ref_pic_list0, -+ const H264Picture::Vector& ref_pic_list1, -+ const scoped_refptr& pic, -+ const uint8_t* data, -+ size_t size) override; -+ -+ bool SubmitDecode(const scoped_refptr& pic) override; -+ bool OutputPicture(const scoped_refptr& pic) override; -+ -+ void Reset() override; -+ -+ private: -+ scoped_refptr H264PictureToVaapiDecodeSurface( -+ const scoped_refptr& pic); -+ -+ void FillVAPicture(VAPictureH264* va_pic, scoped_refptr pic); -+ int FillVARefFramesFromDPB(const H264DPB& dpb, -+ VAPictureH264* va_pics, -+ int num_pics); -+ -+ VaapiWrapper* vaapi_wrapper_; -+ VaapiVideoDecodeAccelerator* vaapi_dec_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiH264Accelerator); -+}; -+ -+class VaapiVP8Picture : public VP8Picture { -+ public: -+ explicit VaapiVP8Picture( -+ scoped_refptr surface) -+ : dec_surface_(surface) {} -+ -+ VaapiVP8Picture* AsVaapiVP8Picture() override { return this; } -+ scoped_refptr dec_surface() { -+ return dec_surface_; -+ } -+ -+ private: -+ ~VaapiVP8Picture() override {} -+ -+ scoped_refptr dec_surface_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiVP8Picture); -+}; -+ -+class VaapiVideoDecodeAccelerator::VaapiVP8Accelerator -+ : public VP8Decoder::VP8Accelerator { -+ public: -+ VaapiVP8Accelerator(VaapiVideoDecodeAccelerator* vaapi_dec, -+ VaapiWrapper* vaapi_wrapper); -+ ~VaapiVP8Accelerator() override; -+ -+ // VP8Decoder::VP8Accelerator implementation. -+ scoped_refptr CreateVP8Picture() override; -+ -+ bool SubmitDecode(const scoped_refptr& pic, -+ const Vp8FrameHeader* frame_hdr, -+ const scoped_refptr& last_frame, -+ const scoped_refptr& golden_frame, -+ const scoped_refptr& alt_frame) override; -+ -+ bool OutputPicture(const scoped_refptr& pic) override; -+ -+ private: -+ scoped_refptr VP8PictureToVaapiDecodeSurface( -+ const scoped_refptr& pic); -+ -+ VaapiWrapper* vaapi_wrapper_; -+ VaapiVideoDecodeAccelerator* vaapi_dec_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiVP8Accelerator); -+}; -+ -+class VaapiVP9Picture : public VP9Picture { -+ public: -+ explicit VaapiVP9Picture( -+ scoped_refptr surface) -+ : dec_surface_(surface) {} -+ -+ VaapiVP9Picture* AsVaapiVP9Picture() override { return this; } -+ scoped_refptr dec_surface() { -+ return dec_surface_; -+ } -+ -+ private: -+ ~VaapiVP9Picture() override {} -+ -+ scoped_refptr dec_surface_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiVP9Picture); -+}; -+ -+class VaapiVideoDecodeAccelerator::VaapiVP9Accelerator -+ : public VP9Decoder::VP9Accelerator { -+ public: -+ VaapiVP9Accelerator(VaapiVideoDecodeAccelerator* vaapi_dec, -+ VaapiWrapper* vaapi_wrapper); -+ ~VaapiVP9Accelerator() override; -+ -+ // VP9Decoder::VP9Accelerator implementation. -+ scoped_refptr CreateVP9Picture() override; -+ -+ bool SubmitDecode(const scoped_refptr& pic, -+ const Vp9SegmentationParams& seg, -+ const Vp9LoopFilterParams& lf, -+ const std::vector>& ref_pictures, -+ const base::Closure& done_cb) override; -+ -+ bool OutputPicture(const scoped_refptr& pic) override; -+ -+ bool IsFrameContextRequired() const override { return false; } -+ -+ bool GetFrameContext(const scoped_refptr& pic, -+ Vp9FrameContext* frame_ctx) override; -+ -+ private: -+ scoped_refptr VP9PictureToVaapiDecodeSurface( -+ const scoped_refptr& pic); -+ -+ VaapiWrapper* vaapi_wrapper_; -+ VaapiVideoDecodeAccelerator* vaapi_dec_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiVP9Accelerator); -+}; -+ -+class VaapiVideoDecodeAccelerator::InputBuffer { -+ public: -+ InputBuffer() = default; -+ InputBuffer(uint32_t id, -+ std::unique_ptr shm, -+ base::OnceCallback release_cb) -+ : id_(id), shm_(std::move(shm)), release_cb_(std::move(release_cb)) {} -+ ~InputBuffer() { -+ VLOGF(4) << "id = " << id_; -+ if (release_cb_) -+ std::move(release_cb_).Run(id_); -+ } -+ -+ // Indicates this is a dummy buffer for flush request. -+ bool IsFlushRequest() const { return shm_ == nullptr; } -+ int32_t id() const { return id_; } -+ SharedMemoryRegion* shm() const { return shm_.get(); } -+ -+ private: -+ const int32_t id_ = -1; -+ const std::unique_ptr shm_; -+ base::OnceCallback release_cb_; -+ -+ DISALLOW_COPY_AND_ASSIGN(InputBuffer); -+}; -+ -+void VaapiVideoDecodeAccelerator::NotifyError(Error error) { -+ if (!task_runner_->BelongsToCurrentThread()) { -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ task_runner_->PostTask(FROM_HERE, -+ base::Bind(&VaapiVideoDecodeAccelerator::NotifyError, -+ weak_this_, error)); -+ return; -+ } -+ -+ // Post Cleanup() as a task so we don't recursively acquire lock_. -+ task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::Cleanup, weak_this_)); -+ -+ VLOGF(1) << "Notifying of error " << error; -+ if (client_) { -+ client_->NotifyError(error); -+ client_ptr_factory_.reset(); -+ } -+} -+ -+VaapiPicture* VaapiVideoDecodeAccelerator::PictureById( -+ int32_t picture_buffer_id) { -+ Pictures::iterator it = pictures_.find(picture_buffer_id); -+ if (it == pictures_.end()) { -+ VLOGF(4) << "Picture id " << picture_buffer_id << " does not exist"; -+ return NULL; -+ } -+ -+ return it->second.get(); -+} -+ -+VaapiVideoDecodeAccelerator::VaapiVideoDecodeAccelerator( -+ const MakeGLContextCurrentCallback& make_context_current_cb, -+ const BindGLImageCallback& bind_image_cb) -+ : state_(kUninitialized), -+ input_ready_(&lock_), -+ vaapi_picture_factory_(new VaapiPictureFactory()), -+ surfaces_available_(&lock_), -+ task_runner_(base::ThreadTaskRunnerHandle::Get()), -+ decoder_thread_("VaapiDecoderThread"), -+ num_frames_at_client_(0), -+ finish_flush_pending_(false), -+ awaiting_va_surfaces_recycle_(false), -+ requested_num_pics_(0), -+ output_format_(gfx::BufferFormat::BGRX_8888), -+ profile_(VIDEO_CODEC_PROFILE_UNKNOWN), -+ make_context_current_cb_(make_context_current_cb), -+ bind_image_cb_(bind_image_cb), -+ weak_this_factory_(this) { -+ weak_this_ = weak_this_factory_.GetWeakPtr(); -+ va_surface_release_cb_ = BindToCurrentLoop( -+ base::Bind(&VaapiVideoDecodeAccelerator::RecycleVASurfaceID, weak_this_)); -+} -+ -+VaapiVideoDecodeAccelerator::~VaapiVideoDecodeAccelerator() { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+} -+ -+bool VaapiVideoDecodeAccelerator::Initialize(const Config& config, -+ Client* client) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ if (config.is_encrypted()) { -+ NOTREACHED() << "Encrypted streams are not supported for this VDA"; -+ return false; -+ } -+ -+ switch (config.output_mode) { -+ case Config::OutputMode::ALLOCATE: -+ output_format_ = vaapi_picture_factory_->GetBufferFormatForAllocateMode(); -+ break; -+ -+ case Config::OutputMode::IMPORT: -+ output_format_ = vaapi_picture_factory_->GetBufferFormatForImportMode(); -+ break; -+ -+ default: -+ NOTREACHED() << "Only ALLOCATE and IMPORT OutputModes are supported"; -+ return false; -+ } -+ -+ client_ptr_factory_.reset(new base::WeakPtrFactory(client)); -+ client_ = client_ptr_factory_->GetWeakPtr(); -+ -+ VideoCodecProfile profile = config.profile; -+ -+ base::AutoLock auto_lock(lock_); -+ DCHECK_EQ(state_, kUninitialized); -+ VLOGF(2) << "Initializing VAVDA, profile: " << GetProfileName(profile); -+ -+ vaapi_wrapper_ = VaapiWrapper::CreateForVideoCodec( -+ VaapiWrapper::kDecode, profile, base::Bind(&ReportToUMA, VAAPI_ERROR)); -+ -+ if (!vaapi_wrapper_.get()) { -+ VLOGF(1) << "Failed initializing VAAPI for profile " -+ << GetProfileName(profile); -+ return false; -+ } -+ -+ if (profile >= H264PROFILE_MIN && profile <= H264PROFILE_MAX) { -+ h264_accelerator_.reset( -+ new VaapiH264Accelerator(this, vaapi_wrapper_.get())); -+ decoder_.reset(new H264Decoder(h264_accelerator_.get())); -+ } else if (profile >= VP8PROFILE_MIN && profile <= VP8PROFILE_MAX) { -+ vp8_accelerator_.reset(new VaapiVP8Accelerator(this, vaapi_wrapper_.get())); -+ decoder_.reset(new VP8Decoder(vp8_accelerator_.get())); -+ } else if (profile >= VP9PROFILE_MIN && profile <= VP9PROFILE_MAX) { -+ vp9_accelerator_.reset(new VaapiVP9Accelerator(this, vaapi_wrapper_.get())); -+ decoder_.reset(new VP9Decoder(vp9_accelerator_.get())); -+ } else { -+ VLOGF(1) << "Unsupported profile " << GetProfileName(profile); -+ return false; -+ } -+ profile_ = profile; -+ -+ CHECK(decoder_thread_.Start()); -+ decoder_thread_task_runner_ = decoder_thread_.task_runner(); -+ -+ state_ = kIdle; -+ output_mode_ = config.output_mode; -+ return true; -+} -+ -+void VaapiVideoDecodeAccelerator::OutputPicture( -+ const scoped_refptr& va_surface, -+ int32_t input_id, -+ gfx::Rect visible_rect, -+ VaapiPicture* picture) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ int32_t output_id = picture->picture_buffer_id(); -+ -+ VLOGF(4) << "Outputting VASurface " << va_surface->id() -+ << " into pixmap bound to picture buffer id " << output_id; -+ { -+ TRACE_EVENT2("Video Decoder", "VAVDA::DownloadFromSurface", "input_id", -+ input_id, "output_id", output_id); -+ RETURN_AND_NOTIFY_ON_FAILURE(picture->DownloadFromSurface(va_surface), -+ "Failed putting surface into pixmap", -+ PLATFORM_FAILURE, ); -+ } -+ // Notify the client a picture is ready to be displayed. -+ ++num_frames_at_client_; -+ TRACE_COUNTER1("Video Decoder", "Textures at client", num_frames_at_client_); -+ VLOGF(4) << "Notifying output picture id " << output_id << " for input " -+ << input_id -+ << " is ready. visible rect: " << visible_rect.ToString(); -+ if (client_) { -+ // TODO(hubbe): Use the correct color space. http://crbug.com/647725 -+ client_->PictureReady(Picture(output_id, input_id, visible_rect, -+ gfx::ColorSpace(), picture->AllowOverlay())); -+ } -+} -+ -+void VaapiVideoDecodeAccelerator::TryOutputSurface() { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ // Handle Destroy() arriving while pictures are queued for output. -+ if (!client_) -+ return; -+ -+ if (pending_output_cbs_.empty() || output_buffers_.empty()) -+ return; -+ -+ OutputCB output_cb = pending_output_cbs_.front(); -+ pending_output_cbs_.pop(); -+ -+ VaapiPicture* picture = PictureById(output_buffers_.front()); -+ DCHECK(picture); -+ output_buffers_.pop(); -+ -+ output_cb.Run(picture); -+ -+ if (finish_flush_pending_ && pending_output_cbs_.empty()) -+ FinishFlush(); -+} -+ -+void VaapiVideoDecodeAccelerator::QueueInputBuffer( -+ const BitstreamBuffer& bitstream_buffer) { -+ VLOGF(4) << "Queueing new input buffer id: " << bitstream_buffer.id() -+ << " size: " << (int)bitstream_buffer.size(); -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ TRACE_EVENT1("Video Decoder", "QueueInputBuffer", "input_id", -+ bitstream_buffer.id()); -+ -+ base::AutoLock auto_lock(lock_); -+ if (bitstream_buffer.size() == 0) { -+ DCHECK(!base::SharedMemory::IsHandleValid(bitstream_buffer.handle())); -+ // Dummy buffer for flush. -+ auto flush_buffer = base::MakeUnique(); -+ DCHECK(flush_buffer->IsFlushRequest()); -+ input_buffers_.push(std::move(flush_buffer)); -+ } else { -+ std::unique_ptr shm( -+ new SharedMemoryRegion(bitstream_buffer, true)); -+ RETURN_AND_NOTIFY_ON_FAILURE(shm->Map(), "Failed to map input buffer", -+ UNREADABLE_INPUT, ); -+ -+ auto input_buffer = base::MakeUnique( -+ bitstream_buffer.id(), std::move(shm), -+ BindToCurrentLoop( -+ base::Bind(&Client::NotifyEndOfBitstreamBuffer, client_))); -+ input_buffers_.push(std::move(input_buffer)); -+ -+ TRACE_COUNTER1("Video Decoder", "Input buffers", input_buffers_.size()); -+ } -+ -+ input_ready_.Signal(); -+ -+ switch (state_) { -+ case kIdle: -+ state_ = kDecoding; -+ decoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -+ base::Unretained(this))); -+ break; -+ -+ case kDecoding: -+ // Decoder already running. -+ break; -+ -+ case kResetting: -+ // When resetting, allow accumulating bitstream buffers, so that -+ // the client can queue after-seek-buffers while we are finishing with -+ // the before-seek one. -+ break; -+ -+ default: -+ VLOGF(1) << "Decode/Flush request from client in invalid state: " -+ << state_; -+ NotifyError(PLATFORM_FAILURE); -+ break; -+ } -+} -+ -+bool VaapiVideoDecodeAccelerator::GetInputBuffer_Locked() { -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ lock_.AssertAcquired(); -+ -+ if (curr_input_buffer_.get()) -+ return true; -+ -+ // Will only wait if it is expected that in current state new buffers will -+ // be queued from the client via Decode(). The state can change during wait. -+ while (input_buffers_.empty() && (state_ == kDecoding || state_ == kIdle)) { -+ input_ready_.Wait(); -+ } -+ -+ // We could have got woken up in a different state or never got to sleep -+ // due to current state. -+ if (state_ != kDecoding && state_ != kIdle) -+ return false; -+ -+ DCHECK(!input_buffers_.empty()); -+ curr_input_buffer_ = std::move(input_buffers_.front()); -+ input_buffers_.pop(); -+ -+ if (curr_input_buffer_->IsFlushRequest()) { -+ VLOGF(4) << "New flush buffer"; -+ return true; -+ } -+ -+ VLOGF(4) << "New current input buffer, id: " << curr_input_buffer_->id() -+ << " size: " << curr_input_buffer_->shm()->size() << "B"; -+ decoder_->SetStream( -+ static_cast(curr_input_buffer_->shm()->memory()), -+ curr_input_buffer_->shm()->size()); -+ -+ return true; -+} -+ -+void VaapiVideoDecodeAccelerator::ReturnCurrInputBuffer_Locked() { -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ lock_.AssertAcquired(); -+ DCHECK(curr_input_buffer_.get()); -+ curr_input_buffer_.reset(); -+ -+ TRACE_COUNTER1("Video Decoder", "Input buffers", input_buffers_.size()); -+} -+ -+// TODO(posciak): refactor the whole class to remove sleeping in wait for -+// surfaces, and reschedule DecodeTask instead. -+bool VaapiVideoDecodeAccelerator::WaitForSurfaces_Locked() { -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ lock_.AssertAcquired(); -+ -+ while (available_va_surfaces_.empty() && -+ (state_ == kDecoding || state_ == kIdle)) { -+ surfaces_available_.Wait(); -+ } -+ -+ return state_ == kDecoding || state_ == kIdle; -+} -+ -+void VaapiVideoDecodeAccelerator::DecodeTask() { -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ base::AutoLock auto_lock(lock_); -+ -+ if (state_ != kDecoding) -+ return; -+ -+ // Main decode task. -+ VLOGF(4) << "Decode task"; -+ -+ // Try to decode what stream data is (still) in the decoder until we run out -+ // of it. -+ while (GetInputBuffer_Locked()) { -+ DCHECK(curr_input_buffer_.get()); -+ -+ if (curr_input_buffer_->IsFlushRequest()) { -+ FlushTask(); -+ break; -+ } -+ -+ AcceleratedVideoDecoder::DecodeResult res; -+ { -+ // We are OK releasing the lock here, as decoder never calls our methods -+ // directly and we will reacquire the lock before looking at state again. -+ // This is the main decode function of the decoder and while keeping -+ // the lock for its duration would be fine, it would defeat the purpose -+ // of having a separate decoder thread. -+ base::AutoUnlock auto_unlock(lock_); -+ TRACE_EVENT0("Video Decoder", "VAVDA::Decode"); -+ res = decoder_->Decode(); -+ } -+ -+ switch (res) { -+ case AcceleratedVideoDecoder::kAllocateNewSurfaces: -+ VLOGF(2) << "Decoder requesting a new set of surfaces"; -+ task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiVideoDecodeAccelerator::InitiateSurfaceSetChange, -+ weak_this_, decoder_->GetRequiredNumOfPictures(), -+ decoder_->GetPicSize())); -+ // We'll get rescheduled once ProvidePictureBuffers() finishes. -+ return; -+ -+ case AcceleratedVideoDecoder::kRanOutOfStreamData: -+ ReturnCurrInputBuffer_Locked(); -+ break; -+ -+ case AcceleratedVideoDecoder::kRanOutOfSurfaces: -+ // No more output buffers in the decoder, try getting more or go to -+ // sleep waiting for them. -+ if (!WaitForSurfaces_Locked()) -+ return; -+ -+ break; -+ -+ case AcceleratedVideoDecoder::kNeedContextUpdate: -+ // This should not happen as we return false from -+ // IsFrameContextRequired(). -+ NOTREACHED() << "Context updates not supported"; -+ return; -+ -+ case AcceleratedVideoDecoder::kDecodeError: -+ RETURN_AND_NOTIFY_ON_FAILURE(false, "Error decoding stream", -+ PLATFORM_FAILURE, ); -+ return; -+ } -+ } -+} -+ -+void VaapiVideoDecodeAccelerator::InitiateSurfaceSetChange(size_t num_pics, -+ gfx::Size size) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ DCHECK(!awaiting_va_surfaces_recycle_); -+ -+ // At this point decoder has stopped running and has already posted onto our -+ // loop any remaining output request callbacks, which executed before we got -+ // here. Some of them might have been pended though, because we might not -+ // have had enough TFPictures to output surfaces to. Initiate a wait cycle, -+ // which will wait for client to return enough PictureBuffers to us, so that -+ // we can finish all pending output callbacks, releasing associated surfaces. -+ VLOGF(2) << "Initiating surface set change"; -+ awaiting_va_surfaces_recycle_ = true; -+ -+ requested_num_pics_ = num_pics; -+ requested_pic_size_ = size; -+ -+ TryFinishSurfaceSetChange(); -+} -+ -+void VaapiVideoDecodeAccelerator::TryFinishSurfaceSetChange() { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ if (!awaiting_va_surfaces_recycle_) -+ return; -+ -+ if (!pending_output_cbs_.empty() || -+ pictures_.size() != available_va_surfaces_.size()) { -+ // Either: -+ // 1. Not all pending pending output callbacks have been executed yet. -+ // Wait for the client to return enough pictures and retry later. -+ // 2. The above happened and all surface release callbacks have been posted -+ // as the result, but not all have executed yet. Post ourselves after them -+ // to let them release surfaces. -+ DVLOGF(2) << "Awaiting pending output/surface release callbacks to finish"; -+ task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiVideoDecodeAccelerator::TryFinishSurfaceSetChange, -+ weak_this_)); -+ return; -+ } -+ -+ // All surfaces released, destroy them and dismiss all PictureBuffers. -+ awaiting_va_surfaces_recycle_ = false; -+ available_va_surfaces_.clear(); -+ vaapi_wrapper_->DestroySurfaces(); -+ -+ for (Pictures::iterator iter = pictures_.begin(); iter != pictures_.end(); -+ ++iter) { -+ VLOGF(2) << "Dismissing picture id: " << iter->first; -+ if (client_) -+ client_->DismissPictureBuffer(iter->first); -+ } -+ pictures_.clear(); -+ -+ // And ask for a new set as requested. -+ VLOGF(2) << "Requesting " << requested_num_pics_ -+ << " pictures of size: " << requested_pic_size_.ToString(); -+ -+ VideoPixelFormat format = GfxBufferFormatToVideoPixelFormat(output_format_); -+ task_runner_->PostTask( -+ FROM_HERE, base::Bind(&Client::ProvidePictureBuffers, client_, -+ requested_num_pics_, format, 1, requested_pic_size_, -+ vaapi_picture_factory_->GetGLTextureTarget())); -+} -+ -+void VaapiVideoDecodeAccelerator::Decode( -+ const BitstreamBuffer& bitstream_buffer) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ TRACE_EVENT1("Video Decoder", "VAVDA::Decode", "Buffer id", -+ bitstream_buffer.id()); -+ -+ if (bitstream_buffer.id() < 0) { -+ if (base::SharedMemory::IsHandleValid(bitstream_buffer.handle())) -+ base::SharedMemory::CloseHandle(bitstream_buffer.handle()); -+ VLOGF(1) << "Invalid bitstream_buffer, id: " << bitstream_buffer.id(); -+ NotifyError(INVALID_ARGUMENT); -+ return; -+ } -+ -+ // Skip empty buffers. VaapiVDA uses empty buffer as dummy buffer for flush -+ // internally. -+ if (bitstream_buffer.size() == 0) { -+ if (base::SharedMemory::IsHandleValid(bitstream_buffer.handle())) -+ base::SharedMemory::CloseHandle(bitstream_buffer.handle()); -+ if (client_) -+ client_->NotifyEndOfBitstreamBuffer(bitstream_buffer.id()); -+ return; -+ } -+ -+ QueueInputBuffer(bitstream_buffer); -+} -+ -+void VaapiVideoDecodeAccelerator::RecycleVASurfaceID( -+ VASurfaceID va_surface_id) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ base::AutoLock auto_lock(lock_); -+ -+ available_va_surfaces_.push_back(va_surface_id); -+ surfaces_available_.Signal(); -+} -+ -+void VaapiVideoDecodeAccelerator::AssignPictureBuffers( -+ const std::vector& buffers) { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ base::AutoLock auto_lock(lock_); -+ DCHECK(pictures_.empty()); -+ -+ while (!output_buffers_.empty()) -+ output_buffers_.pop(); -+ -+ RETURN_AND_NOTIFY_ON_FAILURE( -+ buffers.size() >= requested_num_pics_, -+ "Got an invalid number of picture buffers. (Got " << buffers.size() -+ << ", requested " << requested_num_pics_ << ")", INVALID_ARGUMENT, ); -+ DCHECK(requested_pic_size_ == buffers[0].size()); -+ -+ const unsigned int va_format = GetVaFormatForVideoCodecProfile(profile_); -+ std::vector va_surface_ids; -+ RETURN_AND_NOTIFY_ON_FAILURE( -+ vaapi_wrapper_->CreateSurfaces(va_format, requested_pic_size_, -+ buffers.size(), &va_surface_ids), -+ "Failed creating VA Surfaces", PLATFORM_FAILURE, ); -+ DCHECK_EQ(va_surface_ids.size(), buffers.size()); -+ -+ for (size_t i = 0; i < buffers.size(); ++i) { -+ uint32_t client_id = !buffers[i].client_texture_ids().empty() -+ ? buffers[i].client_texture_ids()[0] -+ : 0; -+ uint32_t service_id = !buffers[i].service_texture_ids().empty() -+ ? buffers[i].service_texture_ids()[0] -+ : 0; -+ -+ std::unique_ptr picture(vaapi_picture_factory_->Create( -+ vaapi_wrapper_, make_context_current_cb_, bind_image_cb_, -+ buffers[i].id(), requested_pic_size_, service_id, client_id)); -+ RETURN_AND_NOTIFY_ON_FAILURE( -+ picture.get(), "Failed creating a VaapiPicture", PLATFORM_FAILURE, ); -+ -+ if (output_mode_ == Config::OutputMode::ALLOCATE) { -+ RETURN_AND_NOTIFY_ON_FAILURE( -+ picture->Allocate(output_format_), -+ "Failed to allocate memory for a VaapiPicture", PLATFORM_FAILURE, ); -+ output_buffers_.push(buffers[i].id()); -+ } -+ bool inserted = -+ pictures_.insert(std::make_pair(buffers[i].id(), std::move(picture))) -+ .second; -+ DCHECK(inserted); -+ -+ available_va_surfaces_.push_back(va_surface_ids[i]); -+ surfaces_available_.Signal(); -+ } -+ -+ // Resume DecodeTask if it is still in decoding state. -+ if (state_ == kDecoding) { -+ decoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -+ base::Unretained(this))); -+ } -+} -+ -+#if defined(USE_OZONE) -+static void CloseGpuMemoryBufferHandle( -+ const gfx::GpuMemoryBufferHandle& handle) { -+ for (const auto& fd : handle.native_pixmap_handle.fds) { -+ // Close the fd by wrapping it in a ScopedFD and letting -+ // it fall out of scope. -+ base::ScopedFD scoped_fd(fd.fd); -+ } -+} -+ -+void VaapiVideoDecodeAccelerator::ImportBufferForPicture( -+ int32_t picture_buffer_id, -+ const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) { -+ VLOGF(2) << "Importing picture id: " << picture_buffer_id; -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ if (output_mode_ != Config::OutputMode::IMPORT) { -+ CloseGpuMemoryBufferHandle(gpu_memory_buffer_handle); -+ VLOGF(1) << "Cannot import in non-import mode"; -+ NotifyError(INVALID_ARGUMENT); -+ return; -+ } -+ -+ VaapiPicture* picture = PictureById(picture_buffer_id); -+ if (!picture) { -+ CloseGpuMemoryBufferHandle(gpu_memory_buffer_handle); -+ -+ // It's possible that we've already posted a DismissPictureBuffer for this -+ // picture, but it has not yet executed when this ImportBufferForPicture -+ // was posted to us by the client. In that case just ignore this (we've -+ // already dismissed it and accounted for that). -+ VLOGF(3) << "got picture id=" << picture_buffer_id -+ << " not in use (anymore?)."; -+ return; -+ } -+ -+ if (!picture->ImportGpuMemoryBufferHandle(output_format_, -+ gpu_memory_buffer_handle)) { -+ // ImportGpuMemoryBufferHandle will close the handles even on failure, so -+ // we don't need to do this ourselves. -+ VLOGF(1) << "Failed to import GpuMemoryBufferHandle"; -+ NotifyError(PLATFORM_FAILURE); -+ return; -+ } -+ -+ ReusePictureBuffer(picture_buffer_id); -+} -+#endif -+ -+void VaapiVideoDecodeAccelerator::ReusePictureBuffer( -+ int32_t picture_buffer_id) { -+ VLOGF(4) << "picture id=" << picture_buffer_id; -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ TRACE_EVENT1("Video Decoder", "VAVDA::ReusePictureBuffer", "Picture id", -+ picture_buffer_id); -+ -+ if (!PictureById(picture_buffer_id)) { -+ // It's possible that we've already posted a DismissPictureBuffer for this -+ // picture, but it has not yet executed when this ReusePictureBuffer -+ // was posted to us by the client. In that case just ignore this (we've -+ // already dismissed it and accounted for that). -+ VLOGF(3) << "got picture id=" << picture_buffer_id -+ << " not in use (anymore?)."; -+ return; -+ } -+ -+ --num_frames_at_client_; -+ TRACE_COUNTER1("Video Decoder", "Textures at client", num_frames_at_client_); -+ -+ output_buffers_.push(picture_buffer_id); -+ TryOutputSurface(); -+} -+ -+void VaapiVideoDecodeAccelerator::FlushTask() { -+ VLOGF(2); -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ DCHECK(curr_input_buffer_.get() && curr_input_buffer_->IsFlushRequest()); -+ -+ curr_input_buffer_.reset(); -+ -+ // First flush all the pictures that haven't been outputted, notifying the -+ // client to output them. -+ bool res = decoder_->Flush(); -+ RETURN_AND_NOTIFY_ON_FAILURE(res, "Failed flushing the decoder.", -+ PLATFORM_FAILURE, ); -+ -+ // Put the decoder in idle state, ready to resume. -+ decoder_->Reset(); -+ -+ task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiVideoDecodeAccelerator::FinishFlush, weak_this_)); -+} -+ -+void VaapiVideoDecodeAccelerator::Flush() { -+ VLOGF(2) << "Got flush request"; -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ // Queue a dummy buffer, which means flush. -+ QueueInputBuffer(media::BitstreamBuffer()); -+} -+ -+void VaapiVideoDecodeAccelerator::FinishFlush() { -+ VLOGF(2); -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ finish_flush_pending_ = false; -+ -+ base::AutoLock auto_lock(lock_); -+ if (state_ != kDecoding) { -+ DCHECK(state_ == kDestroying || state_ == kResetting) << state_; -+ return; -+ } -+ -+ // Still waiting for textures from client to finish outputting all pending -+ // frames. Try again later. -+ if (!pending_output_cbs_.empty()) { -+ finish_flush_pending_ = true; -+ return; -+ } -+ -+ // Resume decoding if necessary. -+ if (input_buffers_.empty()) { -+ state_ = kIdle; -+ } else { -+ decoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -+ base::Unretained(this))); -+ } -+ -+ task_runner_->PostTask(FROM_HERE, -+ base::Bind(&Client::NotifyFlushDone, client_)); -+} -+ -+void VaapiVideoDecodeAccelerator::ResetTask() { -+ VLOGF(2); -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ -+ // All the decoding tasks from before the reset request from client are done -+ // by now, as this task was scheduled after them and client is expected not -+ // to call Decode() after Reset() and before NotifyResetDone. -+ decoder_->Reset(); -+ -+ base::AutoLock auto_lock(lock_); -+ -+ // Return current input buffer, if present. -+ if (curr_input_buffer_.get()) -+ ReturnCurrInputBuffer_Locked(); -+ -+ // And let client know that we are done with reset. -+ task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiVideoDecodeAccelerator::FinishReset, weak_this_)); -+} -+ -+void VaapiVideoDecodeAccelerator::Reset() { -+ VLOGF(2) << "Got reset request"; -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ // This will make any new decode tasks exit early. -+ base::AutoLock auto_lock(lock_); -+ state_ = kResetting; -+ finish_flush_pending_ = false; -+ -+ // Drop all remaining input buffers, if present. -+ while (!input_buffers_.empty()) -+ input_buffers_.pop(); -+ TRACE_COUNTER1("Video Decoder", "Input buffers", input_buffers_.size()); -+ -+ decoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::ResetTask, -+ base::Unretained(this))); -+ -+ input_ready_.Signal(); -+ surfaces_available_.Signal(); -+} -+ -+void VaapiVideoDecodeAccelerator::FinishReset() { -+ VLOGF(2); -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ base::AutoLock auto_lock(lock_); -+ -+ if (state_ != kResetting) { -+ DCHECK(state_ == kDestroying || state_ == kUninitialized) << state_; -+ return; // We could've gotten destroyed already. -+ } -+ -+ // Drop pending outputs. -+ while (!pending_output_cbs_.empty()) -+ pending_output_cbs_.pop(); -+ -+ if (awaiting_va_surfaces_recycle_) { -+ // Decoder requested a new surface set while we were waiting for it to -+ // finish the last DecodeTask, running at the time of Reset(). -+ // Let the surface set change finish first before resetting. -+ task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiVideoDecodeAccelerator::FinishReset, weak_this_)); -+ return; -+ } -+ -+ state_ = kIdle; -+ -+ task_runner_->PostTask(FROM_HERE, -+ base::Bind(&Client::NotifyResetDone, client_)); -+ -+ // The client might have given us new buffers via Decode() while we were -+ // resetting and might be waiting for our move, and not call Decode() anymore -+ // until we return something. Post a DecodeTask() so that we won't -+ // sleep forever waiting for Decode() in that case. Having two of them -+ // in the pipe is harmless, the additional one will return as soon as it sees -+ // that we are back in kDecoding state. -+ if (!input_buffers_.empty()) { -+ state_ = kDecoding; -+ decoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -+ base::Unretained(this))); -+ } -+} -+ -+void VaapiVideoDecodeAccelerator::Cleanup() { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ -+ base::AutoLock auto_lock(lock_); -+ if (state_ == kUninitialized || state_ == kDestroying) -+ return; -+ -+ VLOGF(2) << "Destroying VAVDA"; -+ state_ = kDestroying; -+ -+ client_ptr_factory_.reset(); -+ weak_this_factory_.InvalidateWeakPtrs(); -+ -+ // Signal all potential waiters on the decoder_thread_, let them early-exit, -+ // as we've just moved to the kDestroying state, and wait for all tasks -+ // to finish. -+ input_ready_.Signal(); -+ surfaces_available_.Signal(); -+ { -+ base::AutoUnlock auto_unlock(lock_); -+ decoder_thread_.Stop(); -+ } -+ -+ state_ = kUninitialized; -+} -+ -+void VaapiVideoDecodeAccelerator::Destroy() { -+ DCHECK(task_runner_->BelongsToCurrentThread()); -+ Cleanup(); -+ delete this; -+} -+ -+bool VaapiVideoDecodeAccelerator::TryToSetupDecodeOnSeparateThread( -+ const base::WeakPtr& decode_client, -+ const scoped_refptr& decode_task_runner) { -+ return false; -+} -+ -+bool VaapiVideoDecodeAccelerator::DecodeSurface( -+ const scoped_refptr& dec_surface) { -+ const bool result = vaapi_wrapper_->ExecuteAndDestroyPendingBuffers( -+ dec_surface->va_surface()->id()); -+ if (!result) -+ VLOGF(1) << "Failed decoding picture"; -+ return result; -+} -+ -+void VaapiVideoDecodeAccelerator::SurfaceReady( -+ const scoped_refptr& dec_surface) { -+ if (!task_runner_->BelongsToCurrentThread()) { -+ task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::SurfaceReady, -+ weak_this_, dec_surface)); -+ return; -+ } -+ -+ DCHECK(!awaiting_va_surfaces_recycle_); -+ -+ { -+ base::AutoLock auto_lock(lock_); -+ // Drop any requests to output if we are resetting or being destroyed. -+ if (state_ == kResetting || state_ == kDestroying) -+ return; -+ } -+ -+ pending_output_cbs_.push( -+ base::Bind(&VaapiVideoDecodeAccelerator::OutputPicture, weak_this_, -+ dec_surface->va_surface(), dec_surface->bitstream_id(), -+ dec_surface->visible_rect())); -+ -+ TryOutputSurface(); -+} -+ -+scoped_refptr -+VaapiVideoDecodeAccelerator::CreateSurface() { -+ DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -+ base::AutoLock auto_lock(lock_); -+ -+ if (available_va_surfaces_.empty()) -+ return nullptr; -+ -+ DCHECK(!awaiting_va_surfaces_recycle_); -+ scoped_refptr va_surface(new VASurface( -+ available_va_surfaces_.front(), requested_pic_size_, -+ vaapi_wrapper_->va_surface_format(), va_surface_release_cb_)); -+ available_va_surfaces_.pop_front(); -+ -+ return new VaapiDecodeSurface(curr_input_buffer_->id(), va_surface); -+} -+ -+VaapiVideoDecodeAccelerator::VaapiH264Accelerator::VaapiH264Accelerator( -+ VaapiVideoDecodeAccelerator* vaapi_dec, -+ VaapiWrapper* vaapi_wrapper) -+ : vaapi_wrapper_(vaapi_wrapper), vaapi_dec_(vaapi_dec) { -+ DCHECK(vaapi_wrapper_); -+ DCHECK(vaapi_dec_); -+} -+ -+VaapiVideoDecodeAccelerator::VaapiH264Accelerator::~VaapiH264Accelerator() {} -+ -+scoped_refptr -+VaapiVideoDecodeAccelerator::VaapiH264Accelerator::CreateH264Picture() { -+ scoped_refptr va_surface = vaapi_dec_->CreateSurface(); -+ if (!va_surface) -+ return nullptr; -+ -+ return new VaapiH264Picture(std::move(va_surface)); -+} -+ -+// Fill |va_pic| with default/neutral values. -+static void InitVAPicture(VAPictureH264* va_pic) { -+ memset(va_pic, 0, sizeof(*va_pic)); -+ va_pic->picture_id = VA_INVALID_ID; -+ va_pic->flags = VA_PICTURE_H264_INVALID; -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitFrameMetadata( -+ const H264SPS* sps, -+ const H264PPS* pps, -+ const H264DPB& dpb, -+ const H264Picture::Vector& ref_pic_listp0, -+ const H264Picture::Vector& ref_pic_listb0, -+ const H264Picture::Vector& ref_pic_listb1, -+ const scoped_refptr& pic) { -+ VAPictureParameterBufferH264 pic_param; -+ memset(&pic_param, 0, sizeof(pic_param)); -+ -+#define FROM_SPS_TO_PP(a) pic_param.a = sps->a -+#define FROM_SPS_TO_PP2(a, b) pic_param.b = sps->a -+ FROM_SPS_TO_PP2(pic_width_in_mbs_minus1, picture_width_in_mbs_minus1); -+ // This assumes non-interlaced video -+ FROM_SPS_TO_PP2(pic_height_in_map_units_minus1, picture_height_in_mbs_minus1); -+ FROM_SPS_TO_PP(bit_depth_luma_minus8); -+ FROM_SPS_TO_PP(bit_depth_chroma_minus8); -+#undef FROM_SPS_TO_PP -+#undef FROM_SPS_TO_PP2 -+ -+#define FROM_SPS_TO_PP_SF(a) pic_param.seq_fields.bits.a = sps->a -+#define FROM_SPS_TO_PP_SF2(a, b) pic_param.seq_fields.bits.b = sps->a -+ FROM_SPS_TO_PP_SF(chroma_format_idc); -+ FROM_SPS_TO_PP_SF2(separate_colour_plane_flag, -+ residual_colour_transform_flag); -+ FROM_SPS_TO_PP_SF(gaps_in_frame_num_value_allowed_flag); -+ FROM_SPS_TO_PP_SF(frame_mbs_only_flag); -+ FROM_SPS_TO_PP_SF(mb_adaptive_frame_field_flag); -+ FROM_SPS_TO_PP_SF(direct_8x8_inference_flag); -+ pic_param.seq_fields.bits.MinLumaBiPredSize8x8 = (sps->level_idc >= 31); -+ FROM_SPS_TO_PP_SF(log2_max_frame_num_minus4); -+ FROM_SPS_TO_PP_SF(pic_order_cnt_type); -+ FROM_SPS_TO_PP_SF(log2_max_pic_order_cnt_lsb_minus4); -+ FROM_SPS_TO_PP_SF(delta_pic_order_always_zero_flag); -+#undef FROM_SPS_TO_PP_SF -+#undef FROM_SPS_TO_PP_SF2 -+ -+#define FROM_PPS_TO_PP(a) pic_param.a = pps->a -+ FROM_PPS_TO_PP(pic_init_qp_minus26); -+ FROM_PPS_TO_PP(pic_init_qs_minus26); -+ FROM_PPS_TO_PP(chroma_qp_index_offset); -+ FROM_PPS_TO_PP(second_chroma_qp_index_offset); -+#undef FROM_PPS_TO_PP -+ -+#define FROM_PPS_TO_PP_PF(a) pic_param.pic_fields.bits.a = pps->a -+#define FROM_PPS_TO_PP_PF2(a, b) pic_param.pic_fields.bits.b = pps->a -+ FROM_PPS_TO_PP_PF(entropy_coding_mode_flag); -+ FROM_PPS_TO_PP_PF(weighted_pred_flag); -+ FROM_PPS_TO_PP_PF(weighted_bipred_idc); -+ FROM_PPS_TO_PP_PF(transform_8x8_mode_flag); -+ -+ pic_param.pic_fields.bits.field_pic_flag = 0; -+ FROM_PPS_TO_PP_PF(constrained_intra_pred_flag); -+ FROM_PPS_TO_PP_PF2(bottom_field_pic_order_in_frame_present_flag, -+ pic_order_present_flag); -+ FROM_PPS_TO_PP_PF(deblocking_filter_control_present_flag); -+ FROM_PPS_TO_PP_PF(redundant_pic_cnt_present_flag); -+ pic_param.pic_fields.bits.reference_pic_flag = pic->ref; -+#undef FROM_PPS_TO_PP_PF -+#undef FROM_PPS_TO_PP_PF2 -+ -+ pic_param.frame_num = pic->frame_num; -+ -+ InitVAPicture(&pic_param.CurrPic); -+ FillVAPicture(&pic_param.CurrPic, pic); -+ -+ // Init reference pictures' array. -+ for (int i = 0; i < 16; ++i) -+ InitVAPicture(&pic_param.ReferenceFrames[i]); -+ -+ // And fill it with picture info from DPB. -+ FillVARefFramesFromDPB(dpb, pic_param.ReferenceFrames, -+ arraysize(pic_param.ReferenceFrames)); -+ -+ pic_param.num_ref_frames = sps->max_num_ref_frames; -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAPictureParameterBufferType, -+ sizeof(pic_param), &pic_param)) -+ return false; -+ -+ VAIQMatrixBufferH264 iq_matrix_buf; -+ memset(&iq_matrix_buf, 0, sizeof(iq_matrix_buf)); -+ -+ if (pps->pic_scaling_matrix_present_flag) { -+ for (int i = 0; i < 6; ++i) { -+ for (int j = 0; j < 16; ++j) -+ iq_matrix_buf.ScalingList4x4[i][kZigzagScan4x4[j]] = -+ pps->scaling_list4x4[i][j]; -+ } -+ -+ for (int i = 0; i < 2; ++i) { -+ for (int j = 0; j < 64; ++j) -+ iq_matrix_buf.ScalingList8x8[i][kZigzagScan8x8[j]] = -+ pps->scaling_list8x8[i][j]; -+ } -+ } else { -+ for (int i = 0; i < 6; ++i) { -+ for (int j = 0; j < 16; ++j) -+ iq_matrix_buf.ScalingList4x4[i][kZigzagScan4x4[j]] = -+ sps->scaling_list4x4[i][j]; -+ } -+ -+ for (int i = 0; i < 2; ++i) { -+ for (int j = 0; j < 64; ++j) -+ iq_matrix_buf.ScalingList8x8[i][kZigzagScan8x8[j]] = -+ sps->scaling_list8x8[i][j]; -+ } -+ } -+ -+ return vaapi_wrapper_->SubmitBuffer(VAIQMatrixBufferType, -+ sizeof(iq_matrix_buf), &iq_matrix_buf); -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitSlice( -+ const H264PPS* pps, -+ const H264SliceHeader* slice_hdr, -+ const H264Picture::Vector& ref_pic_list0, -+ const H264Picture::Vector& ref_pic_list1, -+ const scoped_refptr& pic, -+ const uint8_t* data, -+ size_t size) { -+ VASliceParameterBufferH264 slice_param; -+ memset(&slice_param, 0, sizeof(slice_param)); -+ -+ slice_param.slice_data_size = slice_hdr->nalu_size; -+ slice_param.slice_data_offset = 0; -+ slice_param.slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -+ slice_param.slice_data_bit_offset = slice_hdr->header_bit_size; -+ -+#define SHDRToSP(a) slice_param.a = slice_hdr->a -+ SHDRToSP(first_mb_in_slice); -+ slice_param.slice_type = slice_hdr->slice_type % 5; -+ SHDRToSP(direct_spatial_mv_pred_flag); -+ -+ // TODO posciak: make sure parser sets those even when override flags -+ // in slice header is off. -+ SHDRToSP(num_ref_idx_l0_active_minus1); -+ SHDRToSP(num_ref_idx_l1_active_minus1); -+ SHDRToSP(cabac_init_idc); -+ SHDRToSP(slice_qp_delta); -+ SHDRToSP(disable_deblocking_filter_idc); -+ SHDRToSP(slice_alpha_c0_offset_div2); -+ SHDRToSP(slice_beta_offset_div2); -+ -+ if (((slice_hdr->IsPSlice() || slice_hdr->IsSPSlice()) && -+ pps->weighted_pred_flag) || -+ (slice_hdr->IsBSlice() && pps->weighted_bipred_idc == 1)) { -+ SHDRToSP(luma_log2_weight_denom); -+ SHDRToSP(chroma_log2_weight_denom); -+ -+ SHDRToSP(luma_weight_l0_flag); -+ SHDRToSP(luma_weight_l1_flag); -+ -+ SHDRToSP(chroma_weight_l0_flag); -+ SHDRToSP(chroma_weight_l1_flag); -+ -+ for (int i = 0; i <= slice_param.num_ref_idx_l0_active_minus1; ++i) { -+ slice_param.luma_weight_l0[i] = -+ slice_hdr->pred_weight_table_l0.luma_weight[i]; -+ slice_param.luma_offset_l0[i] = -+ slice_hdr->pred_weight_table_l0.luma_offset[i]; -+ -+ for (int j = 0; j < 2; ++j) { -+ slice_param.chroma_weight_l0[i][j] = -+ slice_hdr->pred_weight_table_l0.chroma_weight[i][j]; -+ slice_param.chroma_offset_l0[i][j] = -+ slice_hdr->pred_weight_table_l0.chroma_offset[i][j]; -+ } -+ } -+ -+ if (slice_hdr->IsBSlice()) { -+ for (int i = 0; i <= slice_param.num_ref_idx_l1_active_minus1; ++i) { -+ slice_param.luma_weight_l1[i] = -+ slice_hdr->pred_weight_table_l1.luma_weight[i]; -+ slice_param.luma_offset_l1[i] = -+ slice_hdr->pred_weight_table_l1.luma_offset[i]; -+ -+ for (int j = 0; j < 2; ++j) { -+ slice_param.chroma_weight_l1[i][j] = -+ slice_hdr->pred_weight_table_l1.chroma_weight[i][j]; -+ slice_param.chroma_offset_l1[i][j] = -+ slice_hdr->pred_weight_table_l1.chroma_offset[i][j]; -+ } -+ } -+ } -+ } -+ -+ static_assert( -+ arraysize(slice_param.RefPicList0) == arraysize(slice_param.RefPicList1), -+ "Invalid RefPicList sizes"); -+ -+ for (size_t i = 0; i < arraysize(slice_param.RefPicList0); ++i) { -+ InitVAPicture(&slice_param.RefPicList0[i]); -+ InitVAPicture(&slice_param.RefPicList1[i]); -+ } -+ -+ for (size_t i = 0; -+ i < ref_pic_list0.size() && i < arraysize(slice_param.RefPicList0); -+ ++i) { -+ if (ref_pic_list0[i]) -+ FillVAPicture(&slice_param.RefPicList0[i], ref_pic_list0[i]); -+ } -+ for (size_t i = 0; -+ i < ref_pic_list1.size() && i < arraysize(slice_param.RefPicList1); -+ ++i) { -+ if (ref_pic_list1[i]) -+ FillVAPicture(&slice_param.RefPicList1[i], ref_pic_list1[i]); -+ } -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VASliceParameterBufferType, -+ sizeof(slice_param), &slice_param)) -+ return false; -+ -+ // Can't help it, blame libva... -+ void* non_const_ptr = const_cast(data); -+ return vaapi_wrapper_->SubmitBuffer(VASliceDataBufferType, size, -+ non_const_ptr); -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitDecode( -+ const scoped_refptr& pic) { -+ VLOGF(4) << "Decoding POC " << pic->pic_order_cnt; -+ scoped_refptr dec_surface = -+ H264PictureToVaapiDecodeSurface(pic); -+ -+ return vaapi_dec_->DecodeSurface(dec_surface); -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::OutputPicture( -+ const scoped_refptr& pic) { -+ scoped_refptr dec_surface = -+ H264PictureToVaapiDecodeSurface(pic); -+ dec_surface->set_visible_rect(pic->visible_rect); -+ vaapi_dec_->SurfaceReady(dec_surface); -+ -+ return true; -+} -+ -+void VaapiVideoDecodeAccelerator::VaapiH264Accelerator::Reset() { -+ vaapi_wrapper_->DestroyPendingBuffers(); -+} -+ -+scoped_refptr -+VaapiVideoDecodeAccelerator::VaapiH264Accelerator:: -+ H264PictureToVaapiDecodeSurface(const scoped_refptr& pic) { -+ VaapiH264Picture* vaapi_pic = pic->AsVaapiH264Picture(); -+ CHECK(vaapi_pic); -+ return vaapi_pic->dec_surface(); -+} -+ -+void VaapiVideoDecodeAccelerator::VaapiH264Accelerator::FillVAPicture( -+ VAPictureH264* va_pic, -+ scoped_refptr pic) { -+ VASurfaceID va_surface_id = VA_INVALID_SURFACE; -+ -+ if (!pic->nonexisting) { -+ scoped_refptr dec_surface = -+ H264PictureToVaapiDecodeSurface(pic); -+ va_surface_id = dec_surface->va_surface()->id(); -+ } -+ -+ va_pic->picture_id = va_surface_id; -+ va_pic->frame_idx = pic->frame_num; -+ va_pic->flags = 0; -+ -+ switch (pic->field) { -+ case H264Picture::FIELD_NONE: -+ break; -+ case H264Picture::FIELD_TOP: -+ va_pic->flags |= VA_PICTURE_H264_TOP_FIELD; -+ break; -+ case H264Picture::FIELD_BOTTOM: -+ va_pic->flags |= VA_PICTURE_H264_BOTTOM_FIELD; -+ break; -+ } -+ -+ if (pic->ref) { -+ va_pic->flags |= pic->long_term ? VA_PICTURE_H264_LONG_TERM_REFERENCE -+ : VA_PICTURE_H264_SHORT_TERM_REFERENCE; -+ } -+ -+ va_pic->TopFieldOrderCnt = pic->top_field_order_cnt; -+ va_pic->BottomFieldOrderCnt = pic->bottom_field_order_cnt; -+} -+ -+int VaapiVideoDecodeAccelerator::VaapiH264Accelerator::FillVARefFramesFromDPB( -+ const H264DPB& dpb, -+ VAPictureH264* va_pics, -+ int num_pics) { -+ H264Picture::Vector::const_reverse_iterator rit; -+ int i; -+ -+ // Return reference frames in reverse order of insertion. -+ // Libva does not document this, but other implementations (e.g. mplayer) -+ // do it this way as well. -+ for (rit = dpb.rbegin(), i = 0; rit != dpb.rend() && i < num_pics; ++rit) { -+ if ((*rit)->ref) -+ FillVAPicture(&va_pics[i++], *rit); -+ } -+ -+ return i; -+} -+ -+VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::VaapiVP8Accelerator( -+ VaapiVideoDecodeAccelerator* vaapi_dec, -+ VaapiWrapper* vaapi_wrapper) -+ : vaapi_wrapper_(vaapi_wrapper), vaapi_dec_(vaapi_dec) { -+ DCHECK(vaapi_wrapper_); -+ DCHECK(vaapi_dec_); -+} -+ -+VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::~VaapiVP8Accelerator() {} -+ -+scoped_refptr -+VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::CreateVP8Picture() { -+ scoped_refptr va_surface = vaapi_dec_->CreateSurface(); -+ if (!va_surface) -+ return nullptr; -+ -+ return new VaapiVP8Picture(std::move(va_surface)); -+} -+ -+#define ARRAY_MEMCPY_CHECKED(to, from) \ -+ do { \ -+ static_assert(sizeof(to) == sizeof(from), \ -+ #from " and " #to " arrays must be of same size"); \ -+ memcpy(to, from, sizeof(to)); \ -+ } while (0) -+ -+bool VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::SubmitDecode( -+ const scoped_refptr& pic, -+ const Vp8FrameHeader* frame_hdr, -+ const scoped_refptr& last_frame, -+ const scoped_refptr& golden_frame, -+ const scoped_refptr& alt_frame) { -+ VAIQMatrixBufferVP8 iq_matrix_buf; -+ memset(&iq_matrix_buf, 0, sizeof(VAIQMatrixBufferVP8)); -+ -+ const Vp8SegmentationHeader& sgmnt_hdr = frame_hdr->segmentation_hdr; -+ const Vp8QuantizationHeader& quant_hdr = frame_hdr->quantization_hdr; -+ static_assert(arraysize(iq_matrix_buf.quantization_index) == kMaxMBSegments, -+ "incorrect quantization matrix size"); -+ for (size_t i = 0; i < kMaxMBSegments; ++i) { -+ int q = quant_hdr.y_ac_qi; -+ -+ if (sgmnt_hdr.segmentation_enabled) { -+ if (sgmnt_hdr.segment_feature_mode == -+ Vp8SegmentationHeader::FEATURE_MODE_ABSOLUTE) -+ q = sgmnt_hdr.quantizer_update_value[i]; -+ else -+ q += sgmnt_hdr.quantizer_update_value[i]; -+ } -+ -+#define CLAMP_Q(q) std::min(std::max(q, 0), 127) -+ static_assert(arraysize(iq_matrix_buf.quantization_index[i]) == 6, -+ "incorrect quantization matrix size"); -+ iq_matrix_buf.quantization_index[i][0] = CLAMP_Q(q); -+ iq_matrix_buf.quantization_index[i][1] = CLAMP_Q(q + quant_hdr.y_dc_delta); -+ iq_matrix_buf.quantization_index[i][2] = CLAMP_Q(q + quant_hdr.y2_dc_delta); -+ iq_matrix_buf.quantization_index[i][3] = CLAMP_Q(q + quant_hdr.y2_ac_delta); -+ iq_matrix_buf.quantization_index[i][4] = CLAMP_Q(q + quant_hdr.uv_dc_delta); -+ iq_matrix_buf.quantization_index[i][5] = CLAMP_Q(q + quant_hdr.uv_ac_delta); -+#undef CLAMP_Q -+ } -+ -+ if (!vaapi_wrapper_->SubmitBuffer( -+ VAIQMatrixBufferType, sizeof(VAIQMatrixBufferVP8), &iq_matrix_buf)) -+ return false; -+ -+ VAProbabilityDataBufferVP8 prob_buf; -+ memset(&prob_buf, 0, sizeof(VAProbabilityDataBufferVP8)); -+ -+ const Vp8EntropyHeader& entr_hdr = frame_hdr->entropy_hdr; -+ ARRAY_MEMCPY_CHECKED(prob_buf.dct_coeff_probs, entr_hdr.coeff_probs); -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAProbabilityBufferType, -+ sizeof(VAProbabilityDataBufferVP8), -+ &prob_buf)) -+ return false; -+ -+ VAPictureParameterBufferVP8 pic_param; -+ memset(&pic_param, 0, sizeof(VAPictureParameterBufferVP8)); -+ pic_param.frame_width = frame_hdr->width; -+ pic_param.frame_height = frame_hdr->height; -+ -+ if (last_frame) { -+ scoped_refptr last_frame_surface = -+ VP8PictureToVaapiDecodeSurface(last_frame); -+ pic_param.last_ref_frame = last_frame_surface->va_surface()->id(); -+ } else { -+ pic_param.last_ref_frame = VA_INVALID_SURFACE; -+ } -+ -+ if (golden_frame) { -+ scoped_refptr golden_frame_surface = -+ VP8PictureToVaapiDecodeSurface(golden_frame); -+ pic_param.golden_ref_frame = golden_frame_surface->va_surface()->id(); -+ } else { -+ pic_param.golden_ref_frame = VA_INVALID_SURFACE; -+ } -+ -+ if (alt_frame) { -+ scoped_refptr alt_frame_surface = -+ VP8PictureToVaapiDecodeSurface(alt_frame); -+ pic_param.alt_ref_frame = alt_frame_surface->va_surface()->id(); -+ } else { -+ pic_param.alt_ref_frame = VA_INVALID_SURFACE; -+ } -+ -+ pic_param.out_of_loop_frame = VA_INVALID_SURFACE; -+ -+ const Vp8LoopFilterHeader& lf_hdr = frame_hdr->loopfilter_hdr; -+ -+#define FHDR_TO_PP_PF(a, b) pic_param.pic_fields.bits.a = (b) -+ FHDR_TO_PP_PF(key_frame, frame_hdr->IsKeyframe() ? 0 : 1); -+ FHDR_TO_PP_PF(version, frame_hdr->version); -+ FHDR_TO_PP_PF(segmentation_enabled, sgmnt_hdr.segmentation_enabled); -+ FHDR_TO_PP_PF(update_mb_segmentation_map, -+ sgmnt_hdr.update_mb_segmentation_map); -+ FHDR_TO_PP_PF(update_segment_feature_data, -+ sgmnt_hdr.update_segment_feature_data); -+ FHDR_TO_PP_PF(filter_type, lf_hdr.type); -+ FHDR_TO_PP_PF(sharpness_level, lf_hdr.sharpness_level); -+ FHDR_TO_PP_PF(loop_filter_adj_enable, lf_hdr.loop_filter_adj_enable); -+ FHDR_TO_PP_PF(mode_ref_lf_delta_update, lf_hdr.mode_ref_lf_delta_update); -+ FHDR_TO_PP_PF(sign_bias_golden, frame_hdr->sign_bias_golden); -+ FHDR_TO_PP_PF(sign_bias_alternate, frame_hdr->sign_bias_alternate); -+ FHDR_TO_PP_PF(mb_no_coeff_skip, frame_hdr->mb_no_skip_coeff); -+ FHDR_TO_PP_PF(loop_filter_disable, lf_hdr.level == 0); -+#undef FHDR_TO_PP_PF -+ -+ ARRAY_MEMCPY_CHECKED(pic_param.mb_segment_tree_probs, sgmnt_hdr.segment_prob); -+ -+ static_assert(arraysize(sgmnt_hdr.lf_update_value) == -+ arraysize(pic_param.loop_filter_level), -+ "loop filter level arrays mismatch"); -+ for (size_t i = 0; i < arraysize(sgmnt_hdr.lf_update_value); ++i) { -+ int lf_level = lf_hdr.level; -+ if (sgmnt_hdr.segmentation_enabled) { -+ if (sgmnt_hdr.segment_feature_mode == -+ Vp8SegmentationHeader::FEATURE_MODE_ABSOLUTE) -+ lf_level = sgmnt_hdr.lf_update_value[i]; -+ else -+ lf_level += sgmnt_hdr.lf_update_value[i]; -+ } -+ -+ // Clamp to [0..63] range. -+ lf_level = std::min(std::max(lf_level, 0), 63); -+ pic_param.loop_filter_level[i] = lf_level; -+ } -+ -+ static_assert( -+ arraysize(lf_hdr.ref_frame_delta) == -+ arraysize(pic_param.loop_filter_deltas_ref_frame) && -+ arraysize(lf_hdr.mb_mode_delta) == -+ arraysize(pic_param.loop_filter_deltas_mode) && -+ arraysize(lf_hdr.ref_frame_delta) == arraysize(lf_hdr.mb_mode_delta), -+ "loop filter deltas arrays size mismatch"); -+ for (size_t i = 0; i < arraysize(lf_hdr.ref_frame_delta); ++i) { -+ pic_param.loop_filter_deltas_ref_frame[i] = lf_hdr.ref_frame_delta[i]; -+ pic_param.loop_filter_deltas_mode[i] = lf_hdr.mb_mode_delta[i]; -+ } -+ -+#define FHDR_TO_PP(a) pic_param.a = frame_hdr->a -+ FHDR_TO_PP(prob_skip_false); -+ FHDR_TO_PP(prob_intra); -+ FHDR_TO_PP(prob_last); -+ FHDR_TO_PP(prob_gf); -+#undef FHDR_TO_PP -+ -+ ARRAY_MEMCPY_CHECKED(pic_param.y_mode_probs, entr_hdr.y_mode_probs); -+ ARRAY_MEMCPY_CHECKED(pic_param.uv_mode_probs, entr_hdr.uv_mode_probs); -+ ARRAY_MEMCPY_CHECKED(pic_param.mv_probs, entr_hdr.mv_probs); -+ -+ pic_param.bool_coder_ctx.range = frame_hdr->bool_dec_range; -+ pic_param.bool_coder_ctx.value = frame_hdr->bool_dec_value; -+ pic_param.bool_coder_ctx.count = frame_hdr->bool_dec_count; -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAPictureParameterBufferType, -+ sizeof(pic_param), &pic_param)) -+ return false; -+ -+ VASliceParameterBufferVP8 slice_param; -+ memset(&slice_param, 0, sizeof(slice_param)); -+ slice_param.slice_data_size = frame_hdr->frame_size; -+ slice_param.slice_data_offset = frame_hdr->first_part_offset; -+ slice_param.slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -+ slice_param.macroblock_offset = frame_hdr->macroblock_bit_offset; -+ // Number of DCT partitions plus control partition. -+ slice_param.num_of_partitions = frame_hdr->num_of_dct_partitions + 1; -+ -+ // Per VAAPI, this size only includes the size of the macroblock data in -+ // the first partition (in bytes), so we have to subtract the header size. -+ slice_param.partition_size[0] = -+ frame_hdr->first_part_size - ((frame_hdr->macroblock_bit_offset + 7) / 8); -+ -+ for (size_t i = 0; i < frame_hdr->num_of_dct_partitions; ++i) -+ slice_param.partition_size[i + 1] = frame_hdr->dct_partition_sizes[i]; -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VASliceParameterBufferType, -+ sizeof(VASliceParameterBufferVP8), -+ &slice_param)) -+ return false; -+ -+ void* non_const_ptr = const_cast(frame_hdr->data); -+ if (!vaapi_wrapper_->SubmitBuffer(VASliceDataBufferType, -+ frame_hdr->frame_size, non_const_ptr)) -+ return false; -+ -+ scoped_refptr dec_surface = -+ VP8PictureToVaapiDecodeSurface(pic); -+ -+ return vaapi_dec_->DecodeSurface(dec_surface); -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::OutputPicture( -+ const scoped_refptr& pic) { -+ scoped_refptr dec_surface = -+ VP8PictureToVaapiDecodeSurface(pic); -+ dec_surface->set_visible_rect(pic->visible_rect); -+ vaapi_dec_->SurfaceReady(dec_surface); -+ return true; -+} -+ -+scoped_refptr -+VaapiVideoDecodeAccelerator::VaapiVP8Accelerator:: -+ VP8PictureToVaapiDecodeSurface(const scoped_refptr& pic) { -+ VaapiVP8Picture* vaapi_pic = pic->AsVaapiVP8Picture(); -+ CHECK(vaapi_pic); -+ return vaapi_pic->dec_surface(); -+} -+ -+VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::VaapiVP9Accelerator( -+ VaapiVideoDecodeAccelerator* vaapi_dec, -+ VaapiWrapper* vaapi_wrapper) -+ : vaapi_wrapper_(vaapi_wrapper), vaapi_dec_(vaapi_dec) { -+ DCHECK(vaapi_wrapper_); -+ DCHECK(vaapi_dec_); -+} -+ -+VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::~VaapiVP9Accelerator() {} -+ -+scoped_refptr -+VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::CreateVP9Picture() { -+ scoped_refptr va_surface = vaapi_dec_->CreateSurface(); -+ if (!va_surface) -+ return nullptr; -+ -+ return new VaapiVP9Picture(std::move(va_surface)); -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::SubmitDecode( -+ const scoped_refptr& pic, -+ const Vp9SegmentationParams& seg, -+ const Vp9LoopFilterParams& lf, -+ const std::vector>& ref_pictures, -+ const base::Closure& done_cb) { -+ // |done_cb| should be null as we return false from IsFrameContextRequired(). -+ DCHECK(done_cb.is_null()); -+ -+ VADecPictureParameterBufferVP9 pic_param; -+ memset(&pic_param, 0, sizeof(pic_param)); -+ -+ const Vp9FrameHeader* frame_hdr = pic->frame_hdr.get(); -+ DCHECK(frame_hdr); -+ -+ pic_param.frame_width = base::checked_cast(frame_hdr->frame_width); -+ pic_param.frame_height = -+ base::checked_cast(frame_hdr->frame_height); -+ -+ CHECK_EQ(ref_pictures.size(), arraysize(pic_param.reference_frames)); -+ for (size_t i = 0; i < arraysize(pic_param.reference_frames); ++i) { -+ VASurfaceID va_surface_id; -+ if (ref_pictures[i]) { -+ scoped_refptr surface = -+ VP9PictureToVaapiDecodeSurface(ref_pictures[i]); -+ va_surface_id = surface->va_surface()->id(); -+ } else { -+ va_surface_id = VA_INVALID_SURFACE; -+ } -+ -+ pic_param.reference_frames[i] = va_surface_id; -+ } -+ -+#define FHDR_TO_PP_PF1(a) pic_param.pic_fields.bits.a = frame_hdr->a -+#define FHDR_TO_PP_PF2(a, b) pic_param.pic_fields.bits.a = b -+ FHDR_TO_PP_PF2(subsampling_x, frame_hdr->subsampling_x == 1); -+ FHDR_TO_PP_PF2(subsampling_y, frame_hdr->subsampling_y == 1); -+ FHDR_TO_PP_PF2(frame_type, frame_hdr->IsKeyframe() ? 0 : 1); -+ FHDR_TO_PP_PF1(show_frame); -+ FHDR_TO_PP_PF1(error_resilient_mode); -+ FHDR_TO_PP_PF1(intra_only); -+ FHDR_TO_PP_PF1(allow_high_precision_mv); -+ FHDR_TO_PP_PF2(mcomp_filter_type, frame_hdr->interpolation_filter); -+ FHDR_TO_PP_PF1(frame_parallel_decoding_mode); -+ FHDR_TO_PP_PF1(reset_frame_context); -+ FHDR_TO_PP_PF1(refresh_frame_context); -+ FHDR_TO_PP_PF2(frame_context_idx, frame_hdr->frame_context_idx_to_save_probs); -+ FHDR_TO_PP_PF2(segmentation_enabled, seg.enabled); -+ FHDR_TO_PP_PF2(segmentation_temporal_update, seg.temporal_update); -+ FHDR_TO_PP_PF2(segmentation_update_map, seg.update_map); -+ FHDR_TO_PP_PF2(last_ref_frame, frame_hdr->ref_frame_idx[0]); -+ FHDR_TO_PP_PF2(last_ref_frame_sign_bias, -+ frame_hdr->ref_frame_sign_bias[Vp9RefType::VP9_FRAME_LAST]); -+ FHDR_TO_PP_PF2(golden_ref_frame, frame_hdr->ref_frame_idx[1]); -+ FHDR_TO_PP_PF2(golden_ref_frame_sign_bias, -+ frame_hdr->ref_frame_sign_bias[Vp9RefType::VP9_FRAME_GOLDEN]); -+ FHDR_TO_PP_PF2(alt_ref_frame, frame_hdr->ref_frame_idx[2]); -+ FHDR_TO_PP_PF2(alt_ref_frame_sign_bias, -+ frame_hdr->ref_frame_sign_bias[Vp9RefType::VP9_FRAME_ALTREF]); -+ FHDR_TO_PP_PF2(lossless_flag, frame_hdr->quant_params.IsLossless()); -+#undef FHDR_TO_PP_PF2 -+#undef FHDR_TO_PP_PF1 -+ -+ pic_param.filter_level = lf.level; -+ pic_param.sharpness_level = lf.sharpness; -+ pic_param.log2_tile_rows = frame_hdr->tile_rows_log2; -+ pic_param.log2_tile_columns = frame_hdr->tile_cols_log2; -+ pic_param.frame_header_length_in_bytes = frame_hdr->uncompressed_header_size; -+ pic_param.first_partition_size = frame_hdr->header_size_in_bytes; -+ -+ ARRAY_MEMCPY_CHECKED(pic_param.mb_segment_tree_probs, seg.tree_probs); -+ ARRAY_MEMCPY_CHECKED(pic_param.segment_pred_probs, seg.pred_probs); -+ -+ pic_param.profile = frame_hdr->profile; -+ pic_param.bit_depth = frame_hdr->bit_depth; -+ DCHECK((pic_param.profile == 0 && pic_param.bit_depth == 8) || -+ (pic_param.profile == 2 && pic_param.bit_depth == 10)); -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAPictureParameterBufferType, -+ sizeof(pic_param), &pic_param)) -+ return false; -+ -+ VASliceParameterBufferVP9 slice_param; -+ memset(&slice_param, 0, sizeof(slice_param)); -+ slice_param.slice_data_size = frame_hdr->frame_size; -+ slice_param.slice_data_offset = 0; -+ slice_param.slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -+ -+ static_assert(arraysize(Vp9SegmentationParams::feature_enabled) == -+ arraysize(slice_param.seg_param), -+ "seg_param array of incorrect size"); -+ for (size_t i = 0; i < arraysize(slice_param.seg_param); ++i) { -+ VASegmentParameterVP9& seg_param = slice_param.seg_param[i]; -+#define SEG_TO_SP_SF(a, b) seg_param.segment_flags.fields.a = b -+ SEG_TO_SP_SF( -+ segment_reference_enabled, -+ seg.FeatureEnabled(i, Vp9SegmentationParams::SEG_LVL_REF_FRAME)); -+ SEG_TO_SP_SF(segment_reference, -+ seg.FeatureData(i, Vp9SegmentationParams::SEG_LVL_REF_FRAME)); -+ SEG_TO_SP_SF(segment_reference_skipped, -+ seg.FeatureEnabled(i, Vp9SegmentationParams::SEG_LVL_SKIP)); -+#undef SEG_TO_SP_SF -+ -+ ARRAY_MEMCPY_CHECKED(seg_param.filter_level, lf.lvl[i]); -+ -+ seg_param.luma_dc_quant_scale = seg.y_dequant[i][0]; -+ seg_param.luma_ac_quant_scale = seg.y_dequant[i][1]; -+ seg_param.chroma_dc_quant_scale = seg.uv_dequant[i][0]; -+ seg_param.chroma_ac_quant_scale = seg.uv_dequant[i][1]; -+ } -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VASliceParameterBufferType, -+ sizeof(slice_param), &slice_param)) -+ return false; -+ -+ void* non_const_ptr = const_cast(frame_hdr->data); -+ if (!vaapi_wrapper_->SubmitBuffer(VASliceDataBufferType, -+ frame_hdr->frame_size, non_const_ptr)) -+ return false; -+ -+ scoped_refptr dec_surface = -+ VP9PictureToVaapiDecodeSurface(pic); -+ -+ return vaapi_dec_->DecodeSurface(dec_surface); -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::OutputPicture( -+ const scoped_refptr& pic) { -+ scoped_refptr dec_surface = -+ VP9PictureToVaapiDecodeSurface(pic); -+ dec_surface->set_visible_rect(pic->visible_rect); -+ vaapi_dec_->SurfaceReady(dec_surface); -+ return true; -+} -+ -+bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::GetFrameContext( -+ const scoped_refptr& pic, -+ Vp9FrameContext* frame_ctx) { -+ NOTIMPLEMENTED() << "Frame context update not supported"; -+ return false; -+} -+ -+scoped_refptr -+VaapiVideoDecodeAccelerator::VaapiVP9Accelerator:: -+ VP9PictureToVaapiDecodeSurface(const scoped_refptr& pic) { -+ VaapiVP9Picture* vaapi_pic = pic->AsVaapiVP9Picture(); -+ CHECK(vaapi_pic); -+ return vaapi_pic->dec_surface(); -+} -+ -+// static -+VideoDecodeAccelerator::SupportedProfiles -+VaapiVideoDecodeAccelerator::GetSupportedProfiles() { -+ return VaapiWrapper::GetSupportedDecodeProfiles(); -+} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_video_decode_accelerator.h -@@ -0,0 +1,325 @@ -+// Copyright (c) 2012 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+// -+// This file contains an implementation of VideoDecoderAccelerator -+// that utilizes hardware video decoder present on Intel CPUs. -+ -+#ifndef MEDIA_GPU_VAAPI_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ -+#define MEDIA_GPU_VAAPI_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ -+ -+#include -+#include -+ -+#include -+#include -+#include -+#include -+#include -+ -+#include "base/containers/queue.h" -+#include "base/logging.h" -+#include "base/macros.h" -+#include "base/memory/linked_ptr.h" -+#include "base/memory/ref_counted.h" -+#include "base/memory/weak_ptr.h" -+#include "base/single_thread_task_runner.h" -+#include "base/synchronization/condition_variable.h" -+#include "base/synchronization/lock.h" -+#include "base/threading/thread.h" -+#include "media/base/bitstream_buffer.h" -+#include "media/gpu/gpu_video_decode_accelerator_helpers.h" -+#include "media/gpu/media_gpu_export.h" -+#include "media/gpu/shared_memory_region.h" -+#include "media/gpu/vaapi/vaapi_picture_factory.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+#include "media/video/picture.h" -+#include "media/video/video_decode_accelerator.h" -+ -+namespace gl { -+class GLImage; -+} -+ -+namespace media { -+ -+class AcceleratedVideoDecoder; -+class VaapiPicture; -+ -+// Class to provide video decode acceleration for Intel systems with hardware -+// support for it, and on which libva is available. -+// Decoding tasks are performed in a separate decoding thread. -+// -+// Threading/life-cycle: this object is created & destroyed on the GPU -+// ChildThread. A few methods on it are called on the decoder thread which is -+// stopped during |this->Destroy()|, so any tasks posted to the decoder thread -+// can assume |*this| is still alive. See |weak_this_| below for more details. -+class MEDIA_GPU_EXPORT VaapiVideoDecodeAccelerator -+ : public VideoDecodeAccelerator { -+ public: -+ // Wrapper of a VASurface with id and visible area. -+ class VaapiDecodeSurface; -+ -+ VaapiVideoDecodeAccelerator( -+ const MakeGLContextCurrentCallback& make_context_current_cb, -+ const BindGLImageCallback& bind_image_cb); -+ -+ ~VaapiVideoDecodeAccelerator() override; -+ -+ // VideoDecodeAccelerator implementation. -+ bool Initialize(const Config& config, Client* client) override; -+ void Decode(const BitstreamBuffer& bitstream_buffer) override; -+ void AssignPictureBuffers(const std::vector& buffers) override; -+#if defined(USE_OZONE) -+ void ImportBufferForPicture( -+ int32_t picture_buffer_id, -+ const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) override; -+#endif -+ void ReusePictureBuffer(int32_t picture_buffer_id) override; -+ void Flush() override; -+ void Reset() override; -+ void Destroy() override; -+ bool TryToSetupDecodeOnSeparateThread( -+ const base::WeakPtr& decode_client, -+ const scoped_refptr& decode_task_runner) -+ override; -+ -+ static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles(); -+ -+ private: -+ friend class VaapiVideoDecodeAcceleratorTest; -+ class VaapiH264Accelerator; -+ class VaapiVP8Accelerator; -+ class VaapiVP9Accelerator; -+ -+ // An input buffer with id provided by the client and awaiting consumption. -+ class InputBuffer; -+ -+ // Notify the client that an error has occurred and decoding cannot continue. -+ void NotifyError(Error error); -+ -+ // Queue a input buffer for decode. -+ void QueueInputBuffer(const BitstreamBuffer& bitstream_buffer); -+ -+ // Get a new input buffer from the queue and set it up in decoder. This will -+ // sleep if no input buffers are available. Return true if a new buffer has -+ // been set up, false if an early exit has been requested (due to initiated -+ // reset/flush/destroy). -+ bool GetInputBuffer_Locked(); -+ -+ // Signal the client that the current buffer has been read and can be -+ // returned. Will also release the mapping. -+ void ReturnCurrInputBuffer_Locked(); -+ -+ // Wait for more surfaces to become available. Return true once they do or -+ // false if an early exit has been requested (due to an initiated -+ // reset/flush/destroy). -+ bool WaitForSurfaces_Locked(); -+ -+ // Continue decoding given input buffers and sleep waiting for input/output -+ // as needed. Will exit if a new set of surfaces or reset/flush/destroy -+ // is requested. -+ void DecodeTask(); -+ -+ // Scheduled after receiving a flush request and executed after the current -+ // decoding task finishes decoding pending inputs. Makes the decoder return -+ // all remaining output pictures and puts it in an idle state, ready -+ // to resume if needed and schedules a FinishFlush. -+ void FlushTask(); -+ -+ // Scheduled by the FlushTask after decoder is flushed to put VAVDA into idle -+ // state and notify the client that flushing has been finished. -+ void FinishFlush(); -+ -+ // Scheduled after receiving a reset request and executed after the current -+ // decoding task finishes decoding the current frame. Puts the decoder into -+ // an idle state, ready to resume if needed, discarding decoded but not yet -+ // outputted pictures (decoder keeps ownership of their associated picture -+ // buffers). Schedules a FinishReset afterwards. -+ void ResetTask(); -+ -+ // Scheduled by ResetTask after it's done putting VAVDA into an idle state. -+ // Drops remaining input buffers and notifies the client that reset has been -+ // finished. -+ void FinishReset(); -+ -+ // Helper for Destroy(), doing all the actual work except for deleting self. -+ void Cleanup(); -+ -+ // Get a usable framebuffer configuration for use in binding textures -+ // or return false on failure. -+ bool InitializeFBConfig(); -+ -+ // Callback to be executed once we have a |va_surface| to be output and -+ // an available |picture| to use for output. -+ // Puts contents of |va_surface| into given |picture|, releases the surface -+ // and passes the resulting picture to client to output the given -+ // |visible_rect| part of it. -+ void OutputPicture(const scoped_refptr& va_surface, -+ int32_t input_id, -+ gfx::Rect visible_rect, -+ VaapiPicture* picture); -+ -+ // Try to OutputPicture() if we have both a ready surface and picture. -+ void TryOutputSurface(); -+ -+ // Called when a VASurface is no longer in use by the decoder or is not being -+ // synced/waiting to be synced to a picture. Returns it to available surfaces -+ // pool. -+ void RecycleVASurfaceID(VASurfaceID va_surface_id); -+ -+ // Initiate wait cycle for surfaces to be released before we release them -+ // and allocate new ones, as requested by the decoder. -+ void InitiateSurfaceSetChange(size_t num_pics, gfx::Size size); -+ -+ // Check if the surfaces have been released or post ourselves for later. -+ void TryFinishSurfaceSetChange(); -+ -+ // -+ // Below methods are used by accelerator implementations. -+ // -+ // Decode of |dec_surface| is ready to be submitted and all codec-specific -+ // settings are set in hardware. -+ bool DecodeSurface(const scoped_refptr& dec_surface); -+ -+ // |dec_surface| is ready to be outputted once decode is finished. -+ // This can be called before decode is actually done in hardware, and this -+ // method is responsible for maintaining the ordering, i.e. the surfaces have -+ // to be outputted in the same order as SurfaceReady is called. -+ // On Intel, we don't have to explicitly maintain the ordering however, as the -+ // driver will maintain ordering, as well as dependencies, and will process -+ // each submitted command in order, and run each command only if its -+ // dependencies are ready. -+ void SurfaceReady(const scoped_refptr& dec_surface); -+ -+ // Return a new VaapiDecodeSurface for decoding into, or nullptr if not -+ // available. -+ scoped_refptr CreateSurface(); -+ -+ // VAVDA state. -+ enum State { -+ // Initialize() not called yet or failed. -+ kUninitialized, -+ // DecodeTask running. -+ kDecoding, -+ // Resetting, waiting for decoder to finish current task and cleanup. -+ kResetting, -+ // Idle, decoder in state ready to start/resume decoding. -+ kIdle, -+ // Destroying, waiting for the decoder to finish current task. -+ kDestroying, -+ }; -+ -+ // Protects input buffer and surface queues and state_. -+ base::Lock lock_; -+ State state_; -+ Config::OutputMode output_mode_; -+ -+ // Queue of available InputBuffers (picture_buffer_ids). -+ base::queue> input_buffers_; -+ // Signalled when input buffers are queued onto |input_buffers_| queue. -+ base::ConditionVariable input_ready_; -+ -+ // Current input buffer at decoder. -+ std::unique_ptr curr_input_buffer_; -+ -+ // Queue for incoming output buffers (texture ids). -+ using OutputBuffers = base::queue; -+ OutputBuffers output_buffers_; -+ -+ std::unique_ptr vaapi_picture_factory_; -+ -+ scoped_refptr vaapi_wrapper_; -+ -+ // All allocated Pictures, regardless of their current state. Pictures are -+ // allocated once using |create_vaapi_picture_callback_| and destroyed at the -+ // end of decode. Comes after |vaapi_wrapper_| to ensure all pictures are -+ // destroyed before said |vaapi_wrapper_| is destroyed. -+ using Pictures = std::map>; -+ Pictures pictures_; -+ -+ // Return a VaapiPicture associated with given client-provided id. -+ VaapiPicture* PictureById(int32_t picture_buffer_id); -+ -+ // VA Surfaces no longer in use that can be passed back to the decoder for -+ // reuse, once it requests them. -+ std::list available_va_surfaces_; -+ // Signalled when output surfaces are queued onto the available_va_surfaces_ -+ // queue. -+ base::ConditionVariable surfaces_available_; -+ -+ // Pending output requests from the decoder. When it indicates that we should -+ // output a surface and we have an available Picture (i.e. texture) ready -+ // to use, we'll execute the callback passing the Picture. The callback -+ // will put the contents of the surface into the picture and return it to -+ // the client, releasing the surface as well. -+ // If we don't have any available Pictures at the time when the decoder -+ // requests output, we'll store the request on pending_output_cbs_ queue for -+ // later and run it once the client gives us more textures -+ // via ReusePictureBuffer(). -+ using OutputCB = base::Callback; -+ base::queue pending_output_cbs_; -+ -+ // ChildThread's task runner. -+ scoped_refptr task_runner_; -+ -+ // WeakPtr<> pointing to |this| for use in posting tasks from the decoder -+ // thread back to the ChildThread. Because the decoder thread is a member of -+ // this class, any task running on the decoder thread is guaranteed that this -+ // object is still alive. As a result, tasks posted from ChildThread to -+ // decoder thread should use base::Unretained(this), and tasks posted from the -+ // decoder thread to the ChildThread should use |weak_this_|. -+ base::WeakPtr weak_this_; -+ -+ // Callback used when creating VASurface objects. -+ VASurface::ReleaseCB va_surface_release_cb_; -+ -+ // To expose client callbacks from VideoDecodeAccelerator. -+ // NOTE: all calls to these objects *MUST* be executed on task_runner_. -+ std::unique_ptr> client_ptr_factory_; -+ base::WeakPtr client_; -+ -+ // Accelerators come after vaapi_wrapper_ to ensure they are destroyed first. -+ std::unique_ptr h264_accelerator_; -+ std::unique_ptr vp8_accelerator_; -+ std::unique_ptr vp9_accelerator_; -+ // After *_accelerator_ to ensure correct destruction order. -+ std::unique_ptr decoder_; -+ -+ base::Thread decoder_thread_; -+ // Use this to post tasks to |decoder_thread_| instead of -+ // |decoder_thread_.message_loop()| because the latter will be NULL once -+ // |decoder_thread_.Stop()| returns. -+ scoped_refptr decoder_thread_task_runner_; -+ -+ int num_frames_at_client_; -+ -+ // Whether we are waiting for any pending_output_cbs_ to be run before -+ // NotifyingFlushDone. -+ bool finish_flush_pending_; -+ -+ // Decoder requested a new surface set and we are waiting for all the surfaces -+ // to be returned before we can free them. -+ bool awaiting_va_surfaces_recycle_; -+ -+ // Last requested number/resolution of output picture buffers and their -+ // format. -+ size_t requested_num_pics_; -+ gfx::Size requested_pic_size_; -+ gfx::BufferFormat output_format_; -+ VideoCodecProfile profile_; -+ -+ // Callback to make GL context current. -+ MakeGLContextCurrentCallback make_context_current_cb_; -+ -+ // Callback to bind a GLImage to a given texture. -+ BindGLImageCallback bind_image_cb_; -+ -+ // The WeakPtrFactory for |weak_this_|. -+ base::WeakPtrFactory weak_this_factory_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_video_decode_accelerator_unittest.cc -@@ -0,0 +1,367 @@ -+// Copyright 2017 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_video_decode_accelerator.h" -+ -+#include "base/bind.h" -+#include "base/memory/ptr_util.h" -+#include "base/run_loop.h" -+#include "base/test/scoped_task_environment.h" -+#include "media/gpu/accelerated_video_decoder.h" -+#include "media/gpu/format_utils.h" -+#include "media/gpu/vaapi/vaapi_picture.h" -+#include "media/gpu/vaapi/vaapi_picture_factory.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+#include "testing/gmock/include/gmock/gmock.h" -+#include "testing/gtest/include/gtest/gtest.h" -+ -+using ::testing::_; -+using ::testing::DoAll; -+using ::testing::Invoke; -+using ::testing::Return; -+using ::testing::TestWithParam; -+using ::testing::ValuesIn; -+using ::testing::WithArgs; -+ -+namespace media { -+ -+namespace { -+ -+ACTION_P(RunClosure, closure) { -+ closure.Run(); -+} -+ -+constexpr VideoCodecProfile kCodecProfiles[] = {H264PROFILE_MIN, VP8PROFILE_MIN, -+ VP9PROFILE_MIN}; -+constexpr int kBitstreamId = 123; -+constexpr size_t kInputSize = 256; -+ -+} // namespace -+ -+class MockAcceleratedVideoDecoder : public AcceleratedVideoDecoder { -+ public: -+ MockAcceleratedVideoDecoder() = default; -+ ~MockAcceleratedVideoDecoder() override = default; -+ -+ MOCK_METHOD2(SetStream, void(const uint8_t* ptr, size_t size)); -+ MOCK_METHOD0(Flush, bool()); -+ MOCK_METHOD0(Reset, void()); -+ MOCK_METHOD0(Decode, DecodeResult()); -+ MOCK_CONST_METHOD0(GetPicSize, gfx::Size()); -+ MOCK_CONST_METHOD0(GetRequiredNumOfPictures, size_t()); -+}; -+ -+class MockVaapiWrapper : public VaapiWrapper { -+ public: -+ MockVaapiWrapper() = default; -+ MOCK_METHOD4( -+ CreateSurfaces, -+ bool(unsigned int, const gfx::Size&, size_t, std::vector*)); -+ MOCK_METHOD0(DestroySurfaces, void()); -+ -+ private: -+ ~MockVaapiWrapper() override = default; -+}; -+ -+class MockVaapiPicture : public VaapiPicture { -+ public: -+ MockVaapiPicture(const scoped_refptr& vaapi_wrapper, -+ const MakeGLContextCurrentCallback& make_context_current_cb, -+ const BindGLImageCallback& bind_image_cb, -+ int32_t picture_buffer_id, -+ const gfx::Size& size, -+ uint32_t texture_id, -+ uint32_t client_texture_id) -+ : VaapiPicture(vaapi_wrapper, -+ make_context_current_cb, -+ bind_image_cb, -+ picture_buffer_id, -+ size, -+ texture_id, -+ client_texture_id) {} -+ ~MockVaapiPicture() override = default; -+ -+ // VaapiPicture implementation. -+ bool Allocate(gfx::BufferFormat format) override { return true; } -+ bool ImportGpuMemoryBufferHandle( -+ gfx::BufferFormat format, -+ const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) override { -+ return true; -+ } -+ bool DownloadFromSurface( -+ const scoped_refptr& va_surface) override { -+ return true; -+ } -+ bool AllowOverlay() const override { return false; } -+}; -+ -+class MockVaapiPictureFactory : public VaapiPictureFactory { -+ public: -+ MockVaapiPictureFactory() = default; -+ ~MockVaapiPictureFactory() override = default; -+ -+ MOCK_METHOD2(MockCreateVaapiPicture, void(VaapiWrapper*, const gfx::Size&)); -+ std::unique_ptr Create( -+ const scoped_refptr& vaapi_wrapper, -+ const MakeGLContextCurrentCallback& make_context_current_cb, -+ const BindGLImageCallback& bind_image_cb, -+ int32_t picture_buffer_id, -+ const gfx::Size& size, -+ uint32_t texture_id, -+ uint32_t client_texture_id) override { -+ MockCreateVaapiPicture(vaapi_wrapper.get(), size); -+ return std::make_unique( -+ vaapi_wrapper, make_context_current_cb, bind_image_cb, -+ picture_buffer_id, size, texture_id, client_texture_id); -+ } -+}; -+ -+class VaapiVideoDecodeAcceleratorTest : public TestWithParam, -+ public VideoDecodeAccelerator::Client { -+ public: -+ VaapiVideoDecodeAcceleratorTest() -+ : vda_(base::Bind([] { return true; }), -+ base::Bind([](uint32_t client_texture_id, -+ uint32_t texture_target, -+ const scoped_refptr& image, -+ bool can_bind_to_sampler) { return true; })), -+ decoder_thread_("VaapiVideoDecodeAcceleratorTestThread"), -+ mock_decoder_(new MockAcceleratedVideoDecoder), -+ mock_vaapi_picture_factory_(new MockVaapiPictureFactory()), -+ mock_vaapi_wrapper_(new MockVaapiWrapper()), -+ weak_ptr_factory_(this) { -+ decoder_thread_.Start(); -+ -+ // Don't want to go through a vda_->Initialize() because it binds too many -+ // items of the environment. Instead, just start the decoder thread. -+ vda_.decoder_thread_task_runner_ = decoder_thread_.task_runner(); -+ -+ // Plug in all the mocks and ourselves as the |client_|. -+ vda_.decoder_.reset(mock_decoder_); -+ vda_.client_ = weak_ptr_factory_.GetWeakPtr(); -+ vda_.vaapi_wrapper_ = mock_vaapi_wrapper_; -+ vda_.vaapi_picture_factory_.reset(mock_vaapi_picture_factory_); -+ -+ vda_.state_ = VaapiVideoDecodeAccelerator::kIdle; -+ } -+ ~VaapiVideoDecodeAcceleratorTest() {} -+ -+ void SetUp() override { -+ in_shm_.reset(new base::SharedMemory); -+ ASSERT_TRUE(in_shm_->CreateAndMapAnonymous(kInputSize)); -+ } -+ -+ void SetVdaStateToUnitialized() { -+ vda_.state_ = VaapiVideoDecodeAccelerator::kUninitialized; -+ } -+ -+ void QueueInputBuffer(const BitstreamBuffer& bitstream_buffer) { -+ vda_.QueueInputBuffer(bitstream_buffer); -+ } -+ -+ void AssignPictureBuffers(const std::vector& picture_buffers) { -+ vda_.AssignPictureBuffers(picture_buffers); -+ } -+ -+ // Reset epilogue, needed to get |vda_| worker thread out of its Wait(). -+ void ResetSequence() { -+ base::RunLoop run_loop; -+ base::Closure quit_closure = run_loop.QuitClosure(); -+ EXPECT_CALL(*mock_decoder_, Reset()); -+ EXPECT_CALL(*this, NotifyResetDone()).WillOnce(RunClosure(quit_closure)); -+ vda_.Reset(); -+ run_loop.Run(); -+ } -+ -+ // VideoDecodeAccelerator::Client methods. -+ MOCK_METHOD1(NotifyInitializationComplete, void(bool)); -+ MOCK_METHOD5( -+ ProvidePictureBuffers, -+ void(uint32_t, VideoPixelFormat, uint32_t, const gfx::Size&, uint32_t)); -+ MOCK_METHOD1(DismissPictureBuffer, void(int32_t)); -+ MOCK_METHOD1(PictureReady, void(const Picture&)); -+ MOCK_METHOD1(NotifyEndOfBitstreamBuffer, void(int32_t)); -+ MOCK_METHOD0(NotifyFlushDone, void()); -+ MOCK_METHOD0(NotifyResetDone, void()); -+ MOCK_METHOD1(NotifyError, void(VideoDecodeAccelerator::Error)); -+ -+ base::test::ScopedTaskEnvironment scoped_task_environment_; -+ -+ // The class under test and a worker thread for it. -+ VaapiVideoDecodeAccelerator vda_; -+ base::Thread decoder_thread_; -+ -+ // Ownership passed to |vda_|, but we retain a pointer to it for MOCK checks. -+ MockAcceleratedVideoDecoder* mock_decoder_; -+ MockVaapiPictureFactory* mock_vaapi_picture_factory_; -+ -+ scoped_refptr mock_vaapi_wrapper_; -+ -+ std::unique_ptr in_shm_; -+ -+ private: -+ base::WeakPtrFactory weak_ptr_factory_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAcceleratorTest); -+}; -+ -+// This test checks that QueueInputBuffer() fails when state is kUnitialized. -+TEST_P(VaapiVideoDecodeAcceleratorTest, QueueInputBufferAndError) { -+ SetVdaStateToUnitialized(); -+ -+ base::SharedMemoryHandle handle; -+ handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -+ BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -+ -+ EXPECT_CALL(*this, -+ NotifyError(VaapiVideoDecodeAccelerator::PLATFORM_FAILURE)); -+ QueueInputBuffer(bitstream_buffer); -+} -+ -+// Verifies that Decode() returning kDecodeError ends up pinging NotifyError(). -+TEST_P(VaapiVideoDecodeAcceleratorTest, QueueInputBufferAndDecodeError) { -+ base::SharedMemoryHandle handle; -+ handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -+ BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -+ -+ base::RunLoop run_loop; -+ base::Closure quit_closure = run_loop.QuitClosure(); -+ EXPECT_CALL(*mock_decoder_, SetStream(_, kInputSize)); -+ EXPECT_CALL(*mock_decoder_, Decode()) -+ .WillOnce(Return(AcceleratedVideoDecoder::kDecodeError)); -+ EXPECT_CALL(*this, NotifyError(VaapiVideoDecodeAccelerator::PLATFORM_FAILURE)) -+ .WillOnce(RunClosure(quit_closure)); -+ -+ QueueInputBuffer(bitstream_buffer); -+ run_loop.Run(); -+} -+ -+// Tests usual startup sequence: a BitstreamBuffer is enqueued for decode, -+// |vda_| asks for PictureBuffers, that we provide, and then the same Decode() -+// is tried again. -+TEST_P(VaapiVideoDecodeAcceleratorTest, -+ QueueInputBufferAndAssignPictureBuffersAndDecode) { -+ // Try and QueueInputBuffer(), |vda_| will ping us to ProvidePictureBuffers(). -+ const uint32_t kNumPictures = 2; -+ const gfx::Size kPictureSize(64, 48); -+ { -+ base::SharedMemoryHandle handle; -+ handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -+ BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -+ -+ base::RunLoop run_loop; -+ base::Closure quit_closure = run_loop.QuitClosure(); -+ EXPECT_CALL(*mock_decoder_, SetStream(_, kInputSize)); -+ EXPECT_CALL(*mock_decoder_, Decode()) -+ .WillOnce(Return(AcceleratedVideoDecoder::kAllocateNewSurfaces)); -+ -+ EXPECT_CALL(*mock_decoder_, GetRequiredNumOfPictures()) -+ .WillOnce(Return(kNumPictures)); -+ EXPECT_CALL(*mock_decoder_, GetPicSize()).WillOnce(Return(kPictureSize)); -+ EXPECT_CALL(*mock_vaapi_wrapper_, DestroySurfaces()); -+ -+ EXPECT_CALL(*this, -+ ProvidePictureBuffers(kNumPictures, _, 1, kPictureSize, _)) -+ .WillOnce(RunClosure(quit_closure)); -+ -+ QueueInputBuffer(bitstream_buffer); -+ run_loop.Run(); -+ } -+ // AssignPictureBuffers() accordingly and expect another go at Decode(). -+ { -+ base::RunLoop run_loop; -+ base::Closure quit_closure = run_loop.QuitClosure(); -+ -+ const std::vector kPictureBuffers( -+ {{2, kPictureSize}, {3, kPictureSize}}); -+ EXPECT_EQ(kPictureBuffers.size(), kNumPictures); -+ -+ EXPECT_CALL(*mock_vaapi_wrapper_, -+ CreateSurfaces(_, kPictureSize, kNumPictures, _)) -+ .WillOnce(DoAll( -+ WithArgs<3>(Invoke([](std::vector* va_surface_ids) { -+ va_surface_ids->resize(kNumPictures); -+ })), -+ Return(true))); -+ EXPECT_CALL(*mock_vaapi_picture_factory_, -+ MockCreateVaapiPicture(mock_vaapi_wrapper_.get(), kPictureSize)) -+ .Times(2); -+ -+ EXPECT_CALL(*mock_decoder_, Decode()) -+ .WillOnce(Return(AcceleratedVideoDecoder::kRanOutOfStreamData)); -+ EXPECT_CALL(*this, NotifyEndOfBitstreamBuffer(kBitstreamId)) -+ .WillOnce(RunClosure(quit_closure)); -+ -+ AssignPictureBuffers(kPictureBuffers); -+ run_loop.Run(); -+ } -+ -+ ResetSequence(); -+} -+ -+// Verifies that Decode() replying kRanOutOfStreamData (to signal it's finished) -+// rolls to a NotifyEndOfBitstreamBuffer(). -+TEST_P(VaapiVideoDecodeAcceleratorTest, QueueInputBufferAndDecodeFinished) { -+ base::SharedMemoryHandle handle; -+ handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -+ BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -+ -+ { -+ base::RunLoop run_loop; -+ base::Closure quit_closure = run_loop.QuitClosure(); -+ EXPECT_CALL(*mock_decoder_, SetStream(_, kInputSize)); -+ EXPECT_CALL(*mock_decoder_, Decode()) -+ .WillOnce(Return(AcceleratedVideoDecoder::kRanOutOfStreamData)); -+ EXPECT_CALL(*this, NotifyEndOfBitstreamBuffer(kBitstreamId)) -+ .WillOnce(RunClosure(quit_closure)); -+ -+ QueueInputBuffer(bitstream_buffer); -+ run_loop.Run(); -+ } -+ -+ ResetSequence(); -+} -+ -+// Verify that it is possible to select DRM(egl) and TFP(glx) at runtime. -+TEST_P(VaapiVideoDecodeAcceleratorTest, SupportedPlatforms) { -+ EXPECT_EQ(VaapiPictureFactory::kVaapiImplementationNone, -+ mock_vaapi_picture_factory_->GetVaapiImplementation( -+ gl::kGLImplementationNone)); -+ EXPECT_EQ(VaapiPictureFactory::kVaapiImplementationDrm, -+ mock_vaapi_picture_factory_->GetVaapiImplementation( -+ gl::kGLImplementationEGLGLES2)); -+ -+#if defined(USE_X11) -+ EXPECT_EQ(VaapiPictureFactory::kVaapiImplementationX11, -+ mock_vaapi_picture_factory_->GetVaapiImplementation( -+ gl::kGLImplementationDesktopGL)); -+#endif -+} -+ -+// Verifies the expected buffer format for each output mode. -+TEST_P(VaapiVideoDecodeAcceleratorTest, PictureBufferFormat) { -+ gfx::BufferFormat allocate_format = -+ mock_vaapi_picture_factory_->GetBufferFormatForAllocateMode(); -+ gfx::BufferFormat import_format = -+ mock_vaapi_picture_factory_->GetBufferFormatForImportMode(); -+ -+#if defined(USE_OZONE) -+ EXPECT_EQ(gfx::BufferFormat::BGRX_8888, allocate_format); -+#else -+ EXPECT_EQ(gfx::BufferFormat::RGBX_8888, allocate_format); -+#endif // USE_OZONE -+ -+ EXPECT_EQ(gfx::BufferFormat::YVU_420, import_format); -+ -+ EXPECT_EQ(PIXEL_FORMAT_XRGB, -+ GfxBufferFormatToVideoPixelFormat(allocate_format)); -+ EXPECT_EQ(PIXEL_FORMAT_YV12, -+ GfxBufferFormatToVideoPixelFormat(import_format)); -+} -+ -+INSTANTIATE_TEST_CASE_P(/* No prefix. */, -+ VaapiVideoDecodeAcceleratorTest, -+ ValuesIn(kCodecProfiles)); -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_video_encode_accelerator.cc -@@ -0,0 +1,1102 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_video_encode_accelerator.h" -+ -+#include -+ -+#include -+#include -+ -+#include -+ -+#include "base/bind.h" -+#include "base/callback.h" -+#include "base/macros.h" -+#include "base/metrics/histogram_macros.h" -+#include "base/numerics/safe_conversions.h" -+#include "base/single_thread_task_runner.h" -+#include "base/threading/thread_task_runner_handle.h" -+#include "media/base/bind_to_current_loop.h" -+#include "media/gpu/h264_dpb.h" -+#include "media/gpu/shared_memory_region.h" -+ -+#define VLOGF(level) VLOG(level) << __func__ << "(): " -+#define DVLOGF(level) DVLOG(level) << __func__ << "(): " -+ -+#define NOTIFY_ERROR(error, msg) \ -+ do { \ -+ SetState(kError); \ -+ VLOGF(1) << msg; \ -+ VLOGF(1) << "Calling NotifyError(" << error << ")"; \ -+ NotifyError(error); \ -+ } while (0) -+ -+namespace media { -+ -+namespace { -+// Need 2 surfaces for each frame: one for input data and one for -+// reconstructed picture, which is later used for reference. -+const size_t kMinSurfacesToEncode = 2; -+ -+// Subjectively chosen. -+const size_t kNumInputBuffers = 4; -+const size_t kMaxNumReferenceFrames = 4; -+ -+// TODO(owenlin): Adjust the value after b/71367113 is fixed. -+const size_t kExtraOutputBufferSize = 32768; // bytes -+ -+// We need up to kMaxNumReferenceFrames surfaces for reference, plus one -+// for input and one for encode (which will be added to the set of reference -+// frames for subsequent frames). Actual execution of HW encode is done -+// in parallel, and we want to process more frames in the meantime. -+// To have kNumInputBuffers in flight, we need a full set of reference + -+// encode surfaces (i.e. kMaxNumReferenceFrames + kMinSurfacesToEncode), and -+// (kNumInputBuffers - 1) of kMinSurfacesToEncode for the remaining frames -+// in flight. -+const size_t kNumSurfaces = kMaxNumReferenceFrames + kMinSurfacesToEncode + -+ kMinSurfacesToEncode * (kNumInputBuffers - 1); -+ -+// An IDR every 2048 frames, an I frame every 256 and no B frames. -+// We choose IDR period to equal MaxFrameNum so it must be a power of 2. -+const int kIDRPeriod = 2048; -+const int kIPeriod = 256; -+const int kIPPeriod = 1; -+ -+const int kDefaultFramerate = 30; -+ -+// HRD parameters (ch. E.2.2 in spec). -+const int kBitRateScale = 0; // bit_rate_scale for SPS HRD parameters. -+const int kCPBSizeScale = 0; // cpb_size_scale for SPS HRD parameters. -+ -+const int kDefaultQP = 26; -+// All Intel codecs can do at least 4.1. -+const int kDefaultLevelIDC = 41; -+const int kChromaFormatIDC = 1; // 4:2:0 -+ -+// Arbitrarily chosen bitrate window size for rate control, in ms. -+const int kCPBWindowSizeMs = 1500; -+ -+// UMA errors that the VaapiVideoEncodeAccelerator class reports. -+enum VAVEAEncoderFailure { -+ VAAPI_ERROR = 0, -+ VAVEA_ENCODER_FAILURES_MAX, -+}; -+} -+ -+// Round |value| up to |alignment|, which must be a power of 2. -+static inline size_t RoundUpToPowerOf2(size_t value, size_t alignment) { -+ // Check that |alignment| is a power of 2. -+ DCHECK((alignment + (alignment - 1)) == (alignment | (alignment - 1))); -+ return ((value + (alignment - 1)) & ~(alignment - 1)); -+} -+ -+static void ReportToUMA(VAVEAEncoderFailure failure) { -+ UMA_HISTOGRAM_ENUMERATION("Media.VAVEA.EncoderFailure", failure, -+ VAVEA_ENCODER_FAILURES_MAX + 1); -+} -+ -+struct VaapiVideoEncodeAccelerator::InputFrameRef { -+ InputFrameRef(const scoped_refptr& frame, bool force_keyframe) -+ : frame(frame), force_keyframe(force_keyframe) {} -+ const scoped_refptr frame; -+ const bool force_keyframe; -+}; -+ -+struct VaapiVideoEncodeAccelerator::BitstreamBufferRef { -+ BitstreamBufferRef(int32_t id, std::unique_ptr shm) -+ : id(id), shm(std::move(shm)) {} -+ const int32_t id; -+ const std::unique_ptr shm; -+}; -+ -+VideoEncodeAccelerator::SupportedProfiles -+VaapiVideoEncodeAccelerator::GetSupportedProfiles() { -+ return VaapiWrapper::GetSupportedEncodeProfiles(); -+} -+ -+static unsigned int Log2OfPowerOf2(unsigned int x) { -+ CHECK_GT(x, 0u); -+ DCHECK_EQ(x & (x - 1), 0u); -+ -+ int log = 0; -+ while (x > 1) { -+ x >>= 1; -+ ++log; -+ } -+ return log; -+} -+ -+VaapiVideoEncodeAccelerator::VaapiVideoEncodeAccelerator() -+ : profile_(VIDEO_CODEC_PROFILE_UNKNOWN), -+ mb_width_(0), -+ mb_height_(0), -+ output_buffer_byte_size_(0), -+ state_(kUninitialized), -+ frame_num_(0), -+ idr_pic_id_(0), -+ bitrate_(0), -+ framerate_(0), -+ cpb_size_(0), -+ encoding_parameters_changed_(false), -+ encoder_thread_("VAVEAEncoderThread"), -+ child_task_runner_(base::ThreadTaskRunnerHandle::Get()), -+ weak_this_ptr_factory_(this) { -+ VLOGF(2); -+ weak_this_ = weak_this_ptr_factory_.GetWeakPtr(); -+ max_ref_idx_l0_size_ = kMaxNumReferenceFrames; -+ qp_ = kDefaultQP; -+ idr_period_ = kIDRPeriod; -+ i_period_ = kIPeriod; -+ ip_period_ = kIPPeriod; -+} -+ -+VaapiVideoEncodeAccelerator::~VaapiVideoEncodeAccelerator() { -+ VLOGF(2); -+ DCHECK(child_task_runner_->BelongsToCurrentThread()); -+ DCHECK(!encoder_thread_.IsRunning()); -+} -+ -+bool VaapiVideoEncodeAccelerator::Initialize( -+ VideoPixelFormat format, -+ const gfx::Size& input_visible_size, -+ VideoCodecProfile output_profile, -+ uint32_t initial_bitrate, -+ Client* client) { -+ DCHECK(child_task_runner_->BelongsToCurrentThread()); -+ DCHECK(!encoder_thread_.IsRunning()); -+ DCHECK_EQ(state_, kUninitialized); -+ -+ VLOGF(2) << "Initializing VAVEA, input_format: " -+ << VideoPixelFormatToString(format) -+ << ", input_visible_size: " << input_visible_size.ToString() -+ << ", output_profile: " << GetProfileName(output_profile) -+ << ", initial_bitrate: " << initial_bitrate; -+ -+ client_ptr_factory_.reset(new base::WeakPtrFactory(client)); -+ client_ = client_ptr_factory_->GetWeakPtr(); -+ -+ const SupportedProfiles& profiles = GetSupportedProfiles(); -+ auto profile = find_if(profiles.begin(), profiles.end(), -+ [output_profile](const SupportedProfile& profile) { -+ return profile.profile == output_profile; -+ }); -+ if (profile == profiles.end()) { -+ VLOGF(1) << "Unsupported output profile " << GetProfileName(output_profile); -+ return false; -+ } -+ if (input_visible_size.width() > profile->max_resolution.width() || -+ input_visible_size.height() > profile->max_resolution.height()) { -+ VLOGF(1) << "Input size too big: " << input_visible_size.ToString() -+ << ", max supported size: " << profile->max_resolution.ToString(); -+ return false; -+ } -+ -+ if (format != PIXEL_FORMAT_I420) { -+ VLOGF(1) << "Unsupported input format: " -+ << VideoPixelFormatToString(format); -+ return false; -+ } -+ -+ profile_ = output_profile; -+ visible_size_ = input_visible_size; -+ // 4:2:0 format has to be 2-aligned. -+ DCHECK_EQ(visible_size_.width() % 2, 0); -+ DCHECK_EQ(visible_size_.height() % 2, 0); -+ coded_size_ = gfx::Size(RoundUpToPowerOf2(visible_size_.width(), 16), -+ RoundUpToPowerOf2(visible_size_.height(), 16)); -+ mb_width_ = coded_size_.width() / 16; -+ mb_height_ = coded_size_.height() / 16; -+ output_buffer_byte_size_ = coded_size_.GetArea() + kExtraOutputBufferSize; -+ -+ UpdateRates(initial_bitrate, kDefaultFramerate); -+ -+ vaapi_wrapper_ = -+ VaapiWrapper::CreateForVideoCodec(VaapiWrapper::kEncode, output_profile, -+ base::Bind(&ReportToUMA, VAAPI_ERROR)); -+ if (!vaapi_wrapper_.get()) { -+ VLOGF(1) << "Failed initializing VAAPI for profile " -+ << GetProfileName(output_profile); -+ return false; -+ } -+ -+ if (!encoder_thread_.Start()) { -+ VLOGF(1) << "Failed to start encoder thread"; -+ return false; -+ } -+ encoder_thread_task_runner_ = encoder_thread_.task_runner(); -+ -+ // Finish the remaining initialization on the encoder thread. -+ encoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::InitializeTask, -+ base::Unretained(this))); -+ -+ return true; -+} -+ -+void VaapiVideoEncodeAccelerator::InitializeTask() { -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ DCHECK_EQ(state_, kUninitialized); -+ VLOGF(2); -+ -+ va_surface_release_cb_ = BindToCurrentLoop( -+ base::Bind(&VaapiVideoEncodeAccelerator::RecycleVASurfaceID, -+ base::Unretained(this))); -+ -+ if (!vaapi_wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, coded_size_, -+ kNumSurfaces, -+ &available_va_surface_ids_)) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed creating VASurfaces"); -+ return; -+ } -+ -+ UpdateSPS(); -+ GeneratePackedSPS(); -+ -+ UpdatePPS(); -+ GeneratePackedPPS(); -+ -+ child_task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&Client::RequireBitstreamBuffers, client_, kNumInputBuffers, -+ coded_size_, output_buffer_byte_size_)); -+ -+ SetState(kEncoding); -+} -+ -+void VaapiVideoEncodeAccelerator::RecycleVASurfaceID( -+ VASurfaceID va_surface_id) { -+ DVLOGF(4) << "va_surface_id: " << va_surface_id; -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ -+ available_va_surface_ids_.push_back(va_surface_id); -+ EncodeFrameTask(); -+} -+ -+void VaapiVideoEncodeAccelerator::BeginFrame(bool force_keyframe) { -+ current_pic_ = new H264Picture(); -+ -+ // If the current picture is an IDR picture, frame_num shall be equal to 0. -+ if (force_keyframe) -+ frame_num_ = 0; -+ -+ current_pic_->frame_num = frame_num_++; -+ frame_num_ %= idr_period_; -+ -+ if (current_pic_->frame_num == 0) { -+ current_pic_->idr = true; -+ // H264 spec mandates idr_pic_id to differ between two consecutive IDRs. -+ idr_pic_id_ ^= 1; -+ ref_pic_list0_.clear(); -+ } -+ -+ if (current_pic_->frame_num % i_period_ == 0) -+ current_pic_->type = H264SliceHeader::kISlice; -+ else -+ current_pic_->type = H264SliceHeader::kPSlice; -+ -+ if (current_pic_->type != H264SliceHeader::kBSlice) -+ current_pic_->ref = true; -+ -+ current_pic_->pic_order_cnt = current_pic_->frame_num * 2; -+ current_pic_->top_field_order_cnt = current_pic_->pic_order_cnt; -+ current_pic_->pic_order_cnt_lsb = current_pic_->pic_order_cnt; -+ -+ current_encode_job_->keyframe = current_pic_->idr; -+ -+ DVLOGF(4) << "Starting a new frame, type: " << current_pic_->type -+ << (force_keyframe ? " (forced keyframe)" : "") -+ << " frame_num: " << current_pic_->frame_num -+ << " POC: " << current_pic_->pic_order_cnt; -+} -+ -+void VaapiVideoEncodeAccelerator::EndFrame() { -+ DCHECK(current_pic_); -+ // Store the picture on the list of reference pictures and keep the list -+ // below maximum size, dropping oldest references. -+ if (current_pic_->ref) -+ ref_pic_list0_.push_front(current_encode_job_->recon_surface); -+ size_t max_num_ref_frames = -+ base::checked_cast(current_sps_.max_num_ref_frames); -+ while (ref_pic_list0_.size() > max_num_ref_frames) -+ ref_pic_list0_.pop_back(); -+ -+ submitted_encode_jobs_.push(make_linked_ptr(current_encode_job_.release())); -+} -+ -+static void InitVAPicture(VAPictureH264* va_pic) { -+ memset(va_pic, 0, sizeof(*va_pic)); -+ va_pic->picture_id = VA_INVALID_ID; -+ va_pic->flags = VA_PICTURE_H264_INVALID; -+} -+ -+bool VaapiVideoEncodeAccelerator::SubmitFrameParameters() { -+ DCHECK(current_pic_); -+ VAEncSequenceParameterBufferH264 seq_param; -+ memset(&seq_param, 0, sizeof(seq_param)); -+ -+#define SPS_TO_SP(a) seq_param.a = current_sps_.a; -+ SPS_TO_SP(seq_parameter_set_id); -+ SPS_TO_SP(level_idc); -+ -+ seq_param.intra_period = i_period_; -+ seq_param.intra_idr_period = idr_period_; -+ seq_param.ip_period = ip_period_; -+ seq_param.bits_per_second = bitrate_; -+ -+ SPS_TO_SP(max_num_ref_frames); -+ seq_param.picture_width_in_mbs = mb_width_; -+ seq_param.picture_height_in_mbs = mb_height_; -+ -+#define SPS_TO_SP_FS(a) seq_param.seq_fields.bits.a = current_sps_.a; -+ SPS_TO_SP_FS(chroma_format_idc); -+ SPS_TO_SP_FS(frame_mbs_only_flag); -+ SPS_TO_SP_FS(log2_max_frame_num_minus4); -+ SPS_TO_SP_FS(pic_order_cnt_type); -+ SPS_TO_SP_FS(log2_max_pic_order_cnt_lsb_minus4); -+#undef SPS_TO_SP_FS -+ -+ SPS_TO_SP(bit_depth_luma_minus8); -+ SPS_TO_SP(bit_depth_chroma_minus8); -+ -+ SPS_TO_SP(frame_cropping_flag); -+ if (current_sps_.frame_cropping_flag) { -+ SPS_TO_SP(frame_crop_left_offset); -+ SPS_TO_SP(frame_crop_right_offset); -+ SPS_TO_SP(frame_crop_top_offset); -+ SPS_TO_SP(frame_crop_bottom_offset); -+ } -+ -+ SPS_TO_SP(vui_parameters_present_flag); -+#define SPS_TO_SP_VF(a) seq_param.vui_fields.bits.a = current_sps_.a; -+ SPS_TO_SP_VF(timing_info_present_flag); -+#undef SPS_TO_SP_VF -+ SPS_TO_SP(num_units_in_tick); -+ SPS_TO_SP(time_scale); -+#undef SPS_TO_SP -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncSequenceParameterBufferType, -+ sizeof(seq_param), &seq_param)) -+ return false; -+ -+ VAEncPictureParameterBufferH264 pic_param; -+ memset(&pic_param, 0, sizeof(pic_param)); -+ -+ pic_param.CurrPic.picture_id = current_encode_job_->recon_surface->id(); -+ pic_param.CurrPic.TopFieldOrderCnt = current_pic_->top_field_order_cnt; -+ pic_param.CurrPic.BottomFieldOrderCnt = current_pic_->bottom_field_order_cnt; -+ pic_param.CurrPic.flags = 0; -+ -+ for (size_t i = 0; i < arraysize(pic_param.ReferenceFrames); ++i) -+ InitVAPicture(&pic_param.ReferenceFrames[i]); -+ -+ DCHECK_LE(ref_pic_list0_.size(), arraysize(pic_param.ReferenceFrames)); -+ RefPicList::const_iterator iter = ref_pic_list0_.begin(); -+ for (size_t i = 0; -+ i < arraysize(pic_param.ReferenceFrames) && iter != ref_pic_list0_.end(); -+ ++iter, ++i) { -+ pic_param.ReferenceFrames[i].picture_id = (*iter)->id(); -+ pic_param.ReferenceFrames[i].flags = 0; -+ } -+ -+ pic_param.coded_buf = current_encode_job_->coded_buffer; -+ pic_param.pic_parameter_set_id = current_pps_.pic_parameter_set_id; -+ pic_param.seq_parameter_set_id = current_pps_.seq_parameter_set_id; -+ pic_param.frame_num = current_pic_->frame_num; -+ pic_param.pic_init_qp = qp_; -+ pic_param.num_ref_idx_l0_active_minus1 = max_ref_idx_l0_size_ - 1; -+ pic_param.pic_fields.bits.idr_pic_flag = current_pic_->idr; -+ pic_param.pic_fields.bits.reference_pic_flag = current_pic_->ref; -+#define PPS_TO_PP_PF(a) pic_param.pic_fields.bits.a = current_pps_.a; -+ PPS_TO_PP_PF(entropy_coding_mode_flag); -+ PPS_TO_PP_PF(transform_8x8_mode_flag); -+ PPS_TO_PP_PF(deblocking_filter_control_present_flag); -+#undef PPS_TO_PP_PF -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPictureParameterBufferType, -+ sizeof(pic_param), &pic_param)) -+ return false; -+ -+ VAEncSliceParameterBufferH264 slice_param; -+ memset(&slice_param, 0, sizeof(slice_param)); -+ -+ slice_param.num_macroblocks = mb_width_ * mb_height_; -+ slice_param.macroblock_info = VA_INVALID_ID; -+ slice_param.slice_type = current_pic_->type; -+ slice_param.pic_parameter_set_id = current_pps_.pic_parameter_set_id; -+ slice_param.idr_pic_id = idr_pic_id_; -+ slice_param.pic_order_cnt_lsb = current_pic_->pic_order_cnt_lsb; -+ slice_param.num_ref_idx_active_override_flag = true; -+ -+ for (size_t i = 0; i < arraysize(slice_param.RefPicList0); ++i) -+ InitVAPicture(&slice_param.RefPicList0[i]); -+ -+ for (size_t i = 0; i < arraysize(slice_param.RefPicList1); ++i) -+ InitVAPicture(&slice_param.RefPicList1[i]); -+ -+ DCHECK_LE(ref_pic_list0_.size(), arraysize(slice_param.RefPicList0)); -+ iter = ref_pic_list0_.begin(); -+ for (size_t i = 0; -+ i < arraysize(slice_param.RefPicList0) && iter != ref_pic_list0_.end(); -+ ++iter, ++i) { -+ InitVAPicture(&slice_param.RefPicList0[i]); -+ slice_param.RefPicList0[i].picture_id = (*iter)->id(); -+ slice_param.RefPicList0[i].flags = 0; -+ } -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncSliceParameterBufferType, -+ sizeof(slice_param), &slice_param)) -+ return false; -+ -+ VAEncMiscParameterRateControl rate_control_param; -+ memset(&rate_control_param, 0, sizeof(rate_control_param)); -+ rate_control_param.bits_per_second = bitrate_; -+ rate_control_param.target_percentage = 90; -+ rate_control_param.window_size = kCPBWindowSizeMs; -+ rate_control_param.initial_qp = qp_; -+ rate_control_param.rc_flags.bits.disable_frame_skip = true; -+ -+ if (!vaapi_wrapper_->SubmitVAEncMiscParamBuffer( -+ VAEncMiscParameterTypeRateControl, sizeof(rate_control_param), -+ &rate_control_param)) -+ return false; -+ -+ VAEncMiscParameterFrameRate framerate_param; -+ memset(&framerate_param, 0, sizeof(framerate_param)); -+ framerate_param.framerate = framerate_; -+ if (!vaapi_wrapper_->SubmitVAEncMiscParamBuffer( -+ VAEncMiscParameterTypeFrameRate, sizeof(framerate_param), -+ &framerate_param)) -+ return false; -+ -+ VAEncMiscParameterHRD hrd_param; -+ memset(&hrd_param, 0, sizeof(hrd_param)); -+ hrd_param.buffer_size = cpb_size_; -+ hrd_param.initial_buffer_fullness = cpb_size_ / 2; -+ if (!vaapi_wrapper_->SubmitVAEncMiscParamBuffer( -+ VAEncMiscParameterTypeHRD, sizeof(hrd_param), &hrd_param)) -+ return false; -+ -+ return true; -+} -+ -+bool VaapiVideoEncodeAccelerator::SubmitHeadersIfNeeded() { -+ DCHECK(current_pic_); -+ if (current_pic_->type != H264SliceHeader::kISlice) -+ return true; -+ -+ // Submit SPS. -+ VAEncPackedHeaderParameterBuffer par_buffer; -+ memset(&par_buffer, 0, sizeof(par_buffer)); -+ par_buffer.type = VAEncPackedHeaderSequence; -+ par_buffer.bit_length = packed_sps_.BytesInBuffer() * 8; -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderParameterBufferType, -+ sizeof(par_buffer), &par_buffer)) -+ return false; -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderDataBufferType, -+ packed_sps_.BytesInBuffer(), -+ packed_sps_.data())) -+ return false; -+ -+ // Submit PPS. -+ memset(&par_buffer, 0, sizeof(par_buffer)); -+ par_buffer.type = VAEncPackedHeaderPicture; -+ par_buffer.bit_length = packed_pps_.BytesInBuffer() * 8; -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderParameterBufferType, -+ sizeof(par_buffer), &par_buffer)) -+ return false; -+ -+ if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderDataBufferType, -+ packed_pps_.BytesInBuffer(), -+ packed_pps_.data())) -+ return false; -+ -+ return true; -+} -+ -+bool VaapiVideoEncodeAccelerator::ExecuteEncode() { -+ DCHECK(current_pic_); -+ DVLOGF(4) << "Encoding frame_num: " << current_pic_->frame_num; -+ return vaapi_wrapper_->ExecuteAndDestroyPendingBuffers( -+ current_encode_job_->input_surface->id()); -+} -+ -+bool VaapiVideoEncodeAccelerator::UploadFrame( -+ const scoped_refptr& frame) { -+ return vaapi_wrapper_->UploadVideoFrameToSurface( -+ frame, current_encode_job_->input_surface->id()); -+} -+ -+void VaapiVideoEncodeAccelerator::TryToReturnBitstreamBuffer() { -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ -+ if (state_ != kEncoding) -+ return; -+ -+ while (!submitted_encode_jobs_.empty()) { -+ linked_ptr encode_job = submitted_encode_jobs_.front(); -+ // An null job indicates a flush command. -+ if (encode_job == nullptr) { -+ submitted_encode_jobs_.pop(); -+ DVLOGF(2) << "FlushDone"; -+ DCHECK(flush_callback_); -+ child_task_runner_->PostTask( -+ FROM_HERE, base::BindOnce(std::move(flush_callback_), true)); -+ continue; -+ } -+ -+ if (available_bitstream_buffers_.empty()) -+ break; -+ auto buffer = available_bitstream_buffers_.front(); -+ -+ available_bitstream_buffers_.pop(); -+ submitted_encode_jobs_.pop(); -+ -+ uint8_t* target_data = reinterpret_cast(buffer->shm->memory()); -+ -+ size_t data_size = 0; -+ if (!vaapi_wrapper_->DownloadAndDestroyCodedBuffer( -+ encode_job->coded_buffer, encode_job->input_surface->id(), -+ target_data, buffer->shm->size(), &data_size)) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed downloading coded buffer"); -+ return; -+ } -+ -+ DVLOGF(4) << "Returning bitstream buffer " -+ << (encode_job->keyframe ? "(keyframe)" : "") -+ << " id: " << buffer->id << " size: " << data_size; -+ -+ child_task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&Client::BitstreamBufferReady, client_, buffer->id, -+ data_size, encode_job->keyframe, encode_job->timestamp)); -+ break; -+ } -+} -+ -+void VaapiVideoEncodeAccelerator::Encode(const scoped_refptr& frame, -+ bool force_keyframe) { -+ DVLOGF(4) << "Frame timestamp: " << frame->timestamp().InMilliseconds() -+ << " force_keyframe: " << force_keyframe; -+ DCHECK(child_task_runner_->BelongsToCurrentThread()); -+ -+ encoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::EncodeTask, -+ base::Unretained(this), frame, force_keyframe)); -+} -+ -+bool VaapiVideoEncodeAccelerator::PrepareNextJob(base::TimeDelta timestamp) { -+ if (available_va_surface_ids_.size() < kMinSurfacesToEncode) -+ return false; -+ -+ DCHECK(!current_encode_job_); -+ current_encode_job_.reset(new EncodeJob()); -+ -+ if (!vaapi_wrapper_->CreateCodedBuffer(output_buffer_byte_size_, -+ ¤t_encode_job_->coded_buffer)) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed creating coded buffer"); -+ return false; -+ } -+ -+ current_encode_job_->timestamp = timestamp; -+ -+ current_encode_job_->input_surface = new VASurface( -+ available_va_surface_ids_.back(), coded_size_, -+ vaapi_wrapper_->va_surface_format(), va_surface_release_cb_); -+ available_va_surface_ids_.pop_back(); -+ -+ current_encode_job_->recon_surface = new VASurface( -+ available_va_surface_ids_.back(), coded_size_, -+ vaapi_wrapper_->va_surface_format(), va_surface_release_cb_); -+ available_va_surface_ids_.pop_back(); -+ -+ // Reference surfaces are needed until the job is done, but they get -+ // removed from ref_pic_list0_ when it's full at the end of job submission. -+ // Keep refs to them along with the job and only release after sync. -+ current_encode_job_->reference_surfaces = ref_pic_list0_; -+ -+ return true; -+} -+ -+void VaapiVideoEncodeAccelerator::EncodeTask( -+ const scoped_refptr& frame, -+ bool force_keyframe) { -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ DCHECK_NE(state_, kUninitialized); -+ -+ encoder_input_queue_.push( -+ make_linked_ptr(new InputFrameRef(frame, force_keyframe))); -+ EncodeFrameTask(); -+} -+ -+void VaapiVideoEncodeAccelerator::EncodeFrameTask() { -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ -+ if (state_ != kEncoding || encoder_input_queue_.empty()) -+ return; -+ -+ if (!PrepareNextJob(encoder_input_queue_.front()->frame->timestamp())) { -+ DVLOGF(4) << "Not ready for next frame yet"; -+ return; -+ } -+ -+ linked_ptr frame_ref = encoder_input_queue_.front(); -+ encoder_input_queue_.pop(); -+ -+ if (!UploadFrame(frame_ref->frame)) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed uploading source frame to HW."); -+ return; -+ } -+ -+ BeginFrame(frame_ref->force_keyframe || encoding_parameters_changed_); -+ encoding_parameters_changed_ = false; -+ -+ if (!SubmitFrameParameters()) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed submitting frame parameters."); -+ return; -+ } -+ -+ if (!SubmitHeadersIfNeeded()) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed submitting frame headers."); -+ return; -+ } -+ -+ if (!ExecuteEncode()) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed submitting encode job to HW."); -+ return; -+ } -+ -+ EndFrame(); -+ TryToReturnBitstreamBuffer(); -+} -+ -+void VaapiVideoEncodeAccelerator::UseOutputBitstreamBuffer( -+ const BitstreamBuffer& buffer) { -+ DVLOGF(4) << "id: " << buffer.id(); -+ DCHECK(child_task_runner_->BelongsToCurrentThread()); -+ -+ if (buffer.size() < output_buffer_byte_size_) { -+ NOTIFY_ERROR(kInvalidArgumentError, "Provided bitstream buffer too small"); -+ return; -+ } -+ -+ std::unique_ptr shm( -+ new SharedMemoryRegion(buffer, false)); -+ if (!shm->Map()) { -+ NOTIFY_ERROR(kPlatformFailureError, "Failed mapping shared memory."); -+ return; -+ } -+ -+ std::unique_ptr buffer_ref( -+ new BitstreamBufferRef(buffer.id(), std::move(shm))); -+ -+ encoder_thread_task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind(&VaapiVideoEncodeAccelerator::UseOutputBitstreamBufferTask, -+ base::Unretained(this), base::Passed(&buffer_ref))); -+} -+ -+void VaapiVideoEncodeAccelerator::UseOutputBitstreamBufferTask( -+ std::unique_ptr buffer_ref) { -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ DCHECK_NE(state_, kUninitialized); -+ -+ available_bitstream_buffers_.push(make_linked_ptr(buffer_ref.release())); -+ TryToReturnBitstreamBuffer(); -+} -+ -+void VaapiVideoEncodeAccelerator::RequestEncodingParametersChange( -+ uint32_t bitrate, -+ uint32_t framerate) { -+ VLOGF(2) << "bitrate: " << bitrate << " framerate: " << framerate; -+ DCHECK(child_task_runner_->BelongsToCurrentThread()); -+ -+ encoder_thread_task_runner_->PostTask( -+ FROM_HERE, -+ base::Bind( -+ &VaapiVideoEncodeAccelerator::RequestEncodingParametersChangeTask, -+ base::Unretained(this), bitrate, framerate)); -+} -+ -+void VaapiVideoEncodeAccelerator::UpdateRates(uint32_t bitrate, -+ uint32_t framerate) { -+ if (encoder_thread_.IsRunning()) -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ DCHECK_NE(bitrate, 0u); -+ DCHECK_NE(framerate, 0u); -+ bitrate_ = bitrate; -+ framerate_ = framerate; -+ cpb_size_ = bitrate_ * kCPBWindowSizeMs / 1000; -+} -+ -+void VaapiVideoEncodeAccelerator::RequestEncodingParametersChangeTask( -+ uint32_t bitrate, -+ uint32_t framerate) { -+ VLOGF(2) << "bitrate: " << bitrate << " framerate: " << framerate; -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ DCHECK_NE(state_, kUninitialized); -+ -+ // This is a workaround to zero being temporarily, as part of the initial -+ // setup, provided by the webrtc video encode and a zero bitrate and -+ // framerate not being accepted by VAAPI -+ // TODO: This code is common with v4l2_video_encode_accelerator.cc, perhaps -+ // it could be pulled up to RTCVideoEncoder -+ if (bitrate < 1) -+ bitrate = 1; -+ if (framerate < 1) -+ framerate = 1; -+ -+ if (bitrate_ == bitrate && framerate_ == framerate) -+ return; -+ -+ UpdateRates(bitrate, framerate); -+ -+ UpdateSPS(); -+ GeneratePackedSPS(); -+ -+ // Submit new parameters along with next frame that will be processed. -+ encoding_parameters_changed_ = true; -+} -+ -+void VaapiVideoEncodeAccelerator::Flush(FlushCallback flush_callback) { -+ DVLOGF(2); -+ DCHECK(child_task_runner_->BelongsToCurrentThread()); -+ if (flush_callback_) { -+ NOTIFY_ERROR(kIllegalStateError, "There is a pending flush"); -+ std::move(flush_callback).Run(false); -+ return; -+ } -+ flush_callback_ = std::move(flush_callback); -+ encoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::FlushTask, -+ base::Unretained(this))); -+} -+ -+void VaapiVideoEncodeAccelerator::FlushTask() { -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ -+ // Insert an null job to indicate a flush command. -+ submitted_encode_jobs_.push(linked_ptr(nullptr)); -+ TryToReturnBitstreamBuffer(); -+} -+ -+void VaapiVideoEncodeAccelerator::Destroy() { -+ DCHECK(child_task_runner_->BelongsToCurrentThread()); -+ -+ // Can't call client anymore after Destroy() returns. -+ client_ptr_factory_.reset(); -+ weak_this_ptr_factory_.InvalidateWeakPtrs(); -+ -+ // Early-exit encoder tasks if they are running and join the thread. -+ if (encoder_thread_.IsRunning()) { -+ encoder_thread_.task_runner()->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::DestroyTask, -+ base::Unretained(this))); -+ encoder_thread_.Stop(); -+ } -+ -+ if (flush_callback_) -+ std::move(flush_callback_).Run(false); -+ -+ delete this; -+} -+ -+void VaapiVideoEncodeAccelerator::DestroyTask() { -+ VLOGF(2); -+ DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -+ SetState(kError); -+} -+ -+void VaapiVideoEncodeAccelerator::UpdateSPS() { -+ memset(¤t_sps_, 0, sizeof(H264SPS)); -+ -+ // Spec A.2 and A.3. -+ switch (profile_) { -+ case H264PROFILE_BASELINE: -+ // Due to crbug.com/345569, we don't distinguish between constrained -+ // and non-constrained baseline profiles. Since many codecs can't do -+ // non-constrained, and constrained is usually what we mean (and it's a -+ // subset of non-constrained), default to it. -+ current_sps_.profile_idc = H264SPS::kProfileIDCBaseline; -+ current_sps_.constraint_set0_flag = true; -+ break; -+ case H264PROFILE_MAIN: -+ current_sps_.profile_idc = H264SPS::kProfileIDCMain; -+ current_sps_.constraint_set1_flag = true; -+ break; -+ case H264PROFILE_HIGH: -+ current_sps_.profile_idc = H264SPS::kProfileIDCHigh; -+ break; -+ default: -+ NOTIMPLEMENTED(); -+ return; -+ } -+ -+ current_sps_.level_idc = kDefaultLevelIDC; -+ current_sps_.seq_parameter_set_id = 0; -+ current_sps_.chroma_format_idc = kChromaFormatIDC; -+ -+ DCHECK_GE(idr_period_, 1u << 4); -+ current_sps_.log2_max_frame_num_minus4 = Log2OfPowerOf2(idr_period_) - 4; -+ current_sps_.pic_order_cnt_type = 0; -+ current_sps_.log2_max_pic_order_cnt_lsb_minus4 = -+ Log2OfPowerOf2(idr_period_ * 2) - 4; -+ current_sps_.max_num_ref_frames = max_ref_idx_l0_size_; -+ -+ current_sps_.frame_mbs_only_flag = true; -+ -+ DCHECK_GT(mb_width_, 0u); -+ DCHECK_GT(mb_height_, 0u); -+ current_sps_.pic_width_in_mbs_minus1 = mb_width_ - 1; -+ DCHECK(current_sps_.frame_mbs_only_flag); -+ current_sps_.pic_height_in_map_units_minus1 = mb_height_ - 1; -+ -+ if (visible_size_ != coded_size_) { -+ // Visible size differs from coded size, fill crop information. -+ current_sps_.frame_cropping_flag = true; -+ DCHECK(!current_sps_.separate_colour_plane_flag); -+ // Spec table 6-1. Only 4:2:0 for now. -+ DCHECK_EQ(current_sps_.chroma_format_idc, 1); -+ // Spec 7.4.2.1.1. Crop is in crop units, which is 2 pixels for 4:2:0. -+ const unsigned int crop_unit_x = 2; -+ const unsigned int crop_unit_y = 2 * (2 - current_sps_.frame_mbs_only_flag); -+ current_sps_.frame_crop_left_offset = 0; -+ current_sps_.frame_crop_right_offset = -+ (coded_size_.width() - visible_size_.width()) / crop_unit_x; -+ current_sps_.frame_crop_top_offset = 0; -+ current_sps_.frame_crop_bottom_offset = -+ (coded_size_.height() - visible_size_.height()) / crop_unit_y; -+ } -+ -+ current_sps_.vui_parameters_present_flag = true; -+ current_sps_.timing_info_present_flag = true; -+ current_sps_.num_units_in_tick = 1; -+ current_sps_.time_scale = framerate_ * 2; // See equation D-2 in spec. -+ current_sps_.fixed_frame_rate_flag = true; -+ -+ current_sps_.nal_hrd_parameters_present_flag = true; -+ // H.264 spec ch. E.2.2. -+ current_sps_.cpb_cnt_minus1 = 0; -+ current_sps_.bit_rate_scale = kBitRateScale; -+ current_sps_.cpb_size_scale = kCPBSizeScale; -+ current_sps_.bit_rate_value_minus1[0] = -+ (bitrate_ >> (kBitRateScale + H264SPS::kBitRateScaleConstantTerm)) - 1; -+ current_sps_.cpb_size_value_minus1[0] = -+ (cpb_size_ >> (kCPBSizeScale + H264SPS::kCPBSizeScaleConstantTerm)) - 1; -+ current_sps_.cbr_flag[0] = true; -+ current_sps_.initial_cpb_removal_delay_length_minus_1 = -+ H264SPS::kDefaultInitialCPBRemovalDelayLength - 1; -+ current_sps_.cpb_removal_delay_length_minus1 = -+ H264SPS::kDefaultInitialCPBRemovalDelayLength - 1; -+ current_sps_.dpb_output_delay_length_minus1 = -+ H264SPS::kDefaultDPBOutputDelayLength - 1; -+ current_sps_.time_offset_length = H264SPS::kDefaultTimeOffsetLength; -+ current_sps_.low_delay_hrd_flag = false; -+} -+ -+void VaapiVideoEncodeAccelerator::GeneratePackedSPS() { -+ packed_sps_.Reset(); -+ -+ packed_sps_.BeginNALU(H264NALU::kSPS, 3); -+ -+ packed_sps_.AppendBits(8, current_sps_.profile_idc); -+ packed_sps_.AppendBool(current_sps_.constraint_set0_flag); -+ packed_sps_.AppendBool(current_sps_.constraint_set1_flag); -+ packed_sps_.AppendBool(current_sps_.constraint_set2_flag); -+ packed_sps_.AppendBool(current_sps_.constraint_set3_flag); -+ packed_sps_.AppendBool(current_sps_.constraint_set4_flag); -+ packed_sps_.AppendBool(current_sps_.constraint_set5_flag); -+ packed_sps_.AppendBits(2, 0); // reserved_zero_2bits -+ packed_sps_.AppendBits(8, current_sps_.level_idc); -+ packed_sps_.AppendUE(current_sps_.seq_parameter_set_id); -+ -+ if (current_sps_.profile_idc == H264SPS::kProfileIDCHigh) { -+ packed_sps_.AppendUE(current_sps_.chroma_format_idc); -+ if (current_sps_.chroma_format_idc == 3) -+ packed_sps_.AppendBool(current_sps_.separate_colour_plane_flag); -+ packed_sps_.AppendUE(current_sps_.bit_depth_luma_minus8); -+ packed_sps_.AppendUE(current_sps_.bit_depth_chroma_minus8); -+ packed_sps_.AppendBool(current_sps_.qpprime_y_zero_transform_bypass_flag); -+ packed_sps_.AppendBool(current_sps_.seq_scaling_matrix_present_flag); -+ CHECK(!current_sps_.seq_scaling_matrix_present_flag); -+ } -+ -+ packed_sps_.AppendUE(current_sps_.log2_max_frame_num_minus4); -+ packed_sps_.AppendUE(current_sps_.pic_order_cnt_type); -+ if (current_sps_.pic_order_cnt_type == 0) -+ packed_sps_.AppendUE(current_sps_.log2_max_pic_order_cnt_lsb_minus4); -+ else if (current_sps_.pic_order_cnt_type == 1) { -+ CHECK(1); -+ } -+ -+ packed_sps_.AppendUE(current_sps_.max_num_ref_frames); -+ packed_sps_.AppendBool(current_sps_.gaps_in_frame_num_value_allowed_flag); -+ packed_sps_.AppendUE(current_sps_.pic_width_in_mbs_minus1); -+ packed_sps_.AppendUE(current_sps_.pic_height_in_map_units_minus1); -+ -+ packed_sps_.AppendBool(current_sps_.frame_mbs_only_flag); -+ if (!current_sps_.frame_mbs_only_flag) -+ packed_sps_.AppendBool(current_sps_.mb_adaptive_frame_field_flag); -+ -+ packed_sps_.AppendBool(current_sps_.direct_8x8_inference_flag); -+ -+ packed_sps_.AppendBool(current_sps_.frame_cropping_flag); -+ if (current_sps_.frame_cropping_flag) { -+ packed_sps_.AppendUE(current_sps_.frame_crop_left_offset); -+ packed_sps_.AppendUE(current_sps_.frame_crop_right_offset); -+ packed_sps_.AppendUE(current_sps_.frame_crop_top_offset); -+ packed_sps_.AppendUE(current_sps_.frame_crop_bottom_offset); -+ } -+ -+ packed_sps_.AppendBool(current_sps_.vui_parameters_present_flag); -+ if (current_sps_.vui_parameters_present_flag) { -+ packed_sps_.AppendBool(false); // aspect_ratio_info_present_flag -+ packed_sps_.AppendBool(false); // overscan_info_present_flag -+ packed_sps_.AppendBool(false); // video_signal_type_present_flag -+ packed_sps_.AppendBool(false); // chroma_loc_info_present_flag -+ -+ packed_sps_.AppendBool(current_sps_.timing_info_present_flag); -+ if (current_sps_.timing_info_present_flag) { -+ packed_sps_.AppendBits(32, current_sps_.num_units_in_tick); -+ packed_sps_.AppendBits(32, current_sps_.time_scale); -+ packed_sps_.AppendBool(current_sps_.fixed_frame_rate_flag); -+ } -+ -+ packed_sps_.AppendBool(current_sps_.nal_hrd_parameters_present_flag); -+ if (current_sps_.nal_hrd_parameters_present_flag) { -+ packed_sps_.AppendUE(current_sps_.cpb_cnt_minus1); -+ packed_sps_.AppendBits(4, current_sps_.bit_rate_scale); -+ packed_sps_.AppendBits(4, current_sps_.cpb_size_scale); -+ CHECK_LT(base::checked_cast(current_sps_.cpb_cnt_minus1), -+ arraysize(current_sps_.bit_rate_value_minus1)); -+ for (int i = 0; i <= current_sps_.cpb_cnt_minus1; ++i) { -+ packed_sps_.AppendUE(current_sps_.bit_rate_value_minus1[i]); -+ packed_sps_.AppendUE(current_sps_.cpb_size_value_minus1[i]); -+ packed_sps_.AppendBool(current_sps_.cbr_flag[i]); -+ } -+ packed_sps_.AppendBits( -+ 5, current_sps_.initial_cpb_removal_delay_length_minus_1); -+ packed_sps_.AppendBits(5, current_sps_.cpb_removal_delay_length_minus1); -+ packed_sps_.AppendBits(5, current_sps_.dpb_output_delay_length_minus1); -+ packed_sps_.AppendBits(5, current_sps_.time_offset_length); -+ } -+ -+ packed_sps_.AppendBool(false); // vcl_hrd_parameters_flag -+ if (current_sps_.nal_hrd_parameters_present_flag) -+ packed_sps_.AppendBool(current_sps_.low_delay_hrd_flag); -+ -+ packed_sps_.AppendBool(false); // pic_struct_present_flag -+ packed_sps_.AppendBool(true); // bitstream_restriction_flag -+ -+ packed_sps_.AppendBool(false); // motion_vectors_over_pic_boundaries_flag -+ packed_sps_.AppendUE(2); // max_bytes_per_pic_denom -+ packed_sps_.AppendUE(1); // max_bits_per_mb_denom -+ packed_sps_.AppendUE(16); // log2_max_mv_length_horizontal -+ packed_sps_.AppendUE(16); // log2_max_mv_length_vertical -+ -+ // Explicitly set max_num_reorder_frames to 0 to allow the decoder to -+ // output pictures early. -+ packed_sps_.AppendUE(0); // max_num_reorder_frames -+ -+ // The value of max_dec_frame_buffering shall be greater than or equal to -+ // max_num_ref_frames. -+ const unsigned int max_dec_frame_buffering = -+ current_sps_.max_num_ref_frames; -+ packed_sps_.AppendUE(max_dec_frame_buffering); -+ } -+ -+ packed_sps_.FinishNALU(); -+} -+ -+void VaapiVideoEncodeAccelerator::UpdatePPS() { -+ memset(¤t_pps_, 0, sizeof(H264PPS)); -+ -+ current_pps_.seq_parameter_set_id = current_sps_.seq_parameter_set_id; -+ current_pps_.pic_parameter_set_id = 0; -+ -+ current_pps_.entropy_coding_mode_flag = -+ current_sps_.profile_idc >= H264SPS::kProfileIDCMain; -+ -+ CHECK_GT(max_ref_idx_l0_size_, 0u); -+ current_pps_.num_ref_idx_l0_default_active_minus1 = max_ref_idx_l0_size_ - 1; -+ current_pps_.num_ref_idx_l1_default_active_minus1 = 0; -+ DCHECK_LE(qp_, 51u); -+ current_pps_.pic_init_qp_minus26 = qp_ - 26; -+ current_pps_.deblocking_filter_control_present_flag = true; -+ current_pps_.transform_8x8_mode_flag = -+ (current_sps_.profile_idc == H264SPS::kProfileIDCHigh); -+} -+ -+void VaapiVideoEncodeAccelerator::GeneratePackedPPS() { -+ packed_pps_.Reset(); -+ -+ packed_pps_.BeginNALU(H264NALU::kPPS, 3); -+ -+ packed_pps_.AppendUE(current_pps_.pic_parameter_set_id); -+ packed_pps_.AppendUE(current_pps_.seq_parameter_set_id); -+ packed_pps_.AppendBool(current_pps_.entropy_coding_mode_flag); -+ packed_pps_.AppendBool( -+ current_pps_.bottom_field_pic_order_in_frame_present_flag); -+ CHECK_EQ(current_pps_.num_slice_groups_minus1, 0); -+ packed_pps_.AppendUE(current_pps_.num_slice_groups_minus1); -+ -+ packed_pps_.AppendUE(current_pps_.num_ref_idx_l0_default_active_minus1); -+ packed_pps_.AppendUE(current_pps_.num_ref_idx_l1_default_active_minus1); -+ -+ packed_pps_.AppendBool(current_pps_.weighted_pred_flag); -+ packed_pps_.AppendBits(2, current_pps_.weighted_bipred_idc); -+ -+ packed_pps_.AppendSE(current_pps_.pic_init_qp_minus26); -+ packed_pps_.AppendSE(current_pps_.pic_init_qs_minus26); -+ packed_pps_.AppendSE(current_pps_.chroma_qp_index_offset); -+ -+ packed_pps_.AppendBool(current_pps_.deblocking_filter_control_present_flag); -+ packed_pps_.AppendBool(current_pps_.constrained_intra_pred_flag); -+ packed_pps_.AppendBool(current_pps_.redundant_pic_cnt_present_flag); -+ -+ packed_pps_.AppendBool(current_pps_.transform_8x8_mode_flag); -+ packed_pps_.AppendBool(current_pps_.pic_scaling_matrix_present_flag); -+ DCHECK(!current_pps_.pic_scaling_matrix_present_flag); -+ packed_pps_.AppendSE(current_pps_.second_chroma_qp_index_offset); -+ -+ packed_pps_.FinishNALU(); -+} -+ -+void VaapiVideoEncodeAccelerator::SetState(State state) { -+ // Only touch state on encoder thread, unless it's not running. -+ if (encoder_thread_.IsRunning() && -+ !encoder_thread_task_runner_->BelongsToCurrentThread()) { -+ encoder_thread_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::SetState, -+ base::Unretained(this), state)); -+ return; -+ } -+ -+ VLOGF(2) << "setting state to: " << state; -+ state_ = state; -+} -+ -+void VaapiVideoEncodeAccelerator::NotifyError(Error error) { -+ if (!child_task_runner_->BelongsToCurrentThread()) { -+ child_task_runner_->PostTask( -+ FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::NotifyError, -+ weak_this_, error)); -+ return; -+ } -+ -+ if (client_) { -+ client_->NotifyError(error); -+ client_ptr_factory_.reset(); -+ } -+} -+ -+VaapiVideoEncodeAccelerator::EncodeJob::EncodeJob() -+ : coded_buffer(VA_INVALID_ID), keyframe(false) {} -+ -+VaapiVideoEncodeAccelerator::EncodeJob::~EncodeJob() {} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_video_encode_accelerator.h -@@ -0,0 +1,275 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef MEDIA_GPU_VAAPI_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ -+#define MEDIA_GPU_VAAPI_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ -+ -+#include -+#include -+ -+#include -+#include -+ -+#include "base/containers/queue.h" -+#include "base/macros.h" -+#include "base/memory/linked_ptr.h" -+#include "base/threading/thread.h" -+#include "media/filters/h264_bitstream_buffer.h" -+#include "media/gpu/h264_dpb.h" -+#include "media/gpu/media_gpu_export.h" -+#include "media/gpu/vaapi/va_surface.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+#include "media/video/video_encode_accelerator.h" -+ -+namespace media { -+ -+// A VideoEncodeAccelerator implementation that uses VA-API -+// (http://www.freedesktop.org/wiki/Software/vaapi) for HW-accelerated -+// video encode. -+class MEDIA_GPU_EXPORT VaapiVideoEncodeAccelerator -+ : public VideoEncodeAccelerator { -+ public: -+ VaapiVideoEncodeAccelerator(); -+ ~VaapiVideoEncodeAccelerator() override; -+ -+ // VideoEncodeAccelerator implementation. -+ VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles() override; -+ bool Initialize(VideoPixelFormat format, -+ const gfx::Size& input_visible_size, -+ VideoCodecProfile output_profile, -+ uint32_t initial_bitrate, -+ Client* client) override; -+ void Encode(const scoped_refptr& frame, -+ bool force_keyframe) override; -+ void UseOutputBitstreamBuffer(const BitstreamBuffer& buffer) override; -+ void RequestEncodingParametersChange(uint32_t bitrate, -+ uint32_t framerate) override; -+ void Destroy() override; -+ void Flush(FlushCallback flush_callback) override; -+ -+ private: -+ // Reference picture list. -+ typedef std::list> RefPicList; -+ -+ // Encode job for one frame. Created when an input frame is awaiting and -+ // enough resources are available to proceed. Once the job is prepared and -+ // submitted to the hardware, it awaits on the submitted_encode_jobs_ queue -+ // for an output bitstream buffer to become available. Once one is ready, -+ // the encoded bytes are downloaded to it and job resources are released -+ // and become available for reuse. -+ struct EncodeJob { -+ // Input surface for video frame data. -+ scoped_refptr input_surface; -+ // Surface for a reconstructed picture, which is used for reference -+ // for subsequent frames. -+ scoped_refptr recon_surface; -+ // Buffer that will contain output bitstream for this frame. -+ VABufferID coded_buffer; -+ // Reference surfaces required to encode this picture. We keep references -+ // to them here, because we may discard some of them from ref_pic_list* -+ // before the HW job is done. -+ RefPicList reference_surfaces; -+ // True if this job will produce a keyframe. Used to report -+ // to BitstreamBufferReady(). -+ bool keyframe; -+ // Source timestamp. -+ base::TimeDelta timestamp; -+ -+ EncodeJob(); -+ ~EncodeJob(); -+ }; -+ -+ // Encoder state. -+ enum State { -+ kUninitialized, -+ kEncoding, -+ kError, -+ }; -+ -+ // Holds input frames coming from the client ready to be encoded. -+ struct InputFrameRef; -+ // Holds output buffers coming from the client ready to be filled. -+ struct BitstreamBufferRef; -+ -+ // Tasks for each of the VEA interface calls to be executed on the -+ // encoder thread. -+ void InitializeTask(); -+ void EncodeTask(const scoped_refptr& frame, bool force_keyframe); -+ void UseOutputBitstreamBufferTask( -+ std::unique_ptr buffer_ref); -+ void RequestEncodingParametersChangeTask(uint32_t bitrate, -+ uint32_t framerate); -+ void DestroyTask(); -+ void FlushTask(); -+ -+ // Prepare and schedule an encode job if we have an input to encode -+ // and enough resources to proceed. -+ void EncodeFrameTask(); -+ -+ // Fill current_sps_/current_pps_ with current values. -+ void UpdateSPS(); -+ void UpdatePPS(); -+ void UpdateRates(uint32_t bitrate, uint32_t framerate); -+ -+ // Generate packed SPS and PPS in packed_sps_/packed_pps_, using -+ // values in current_sps_/current_pps_. -+ void GeneratePackedSPS(); -+ void GeneratePackedPPS(); -+ -+ // Check if we have sufficient resources for a new encode job, claim them and -+ // fill current_encode_job_ with them. -+ // Return false if we cannot start a new job yet, true otherwise. -+ bool PrepareNextJob(base::TimeDelta timestamp); -+ -+ // Begin a new frame, making it a keyframe if |force_keyframe| is true, -+ // updating current_pic_. -+ void BeginFrame(bool force_keyframe); -+ -+ // End current frame, updating reference picture lists and storing current -+ // job in the jobs awaiting completion on submitted_encode_jobs_. -+ void EndFrame(); -+ -+ // Submit parameters for the current frame to the hardware. -+ bool SubmitFrameParameters(); -+ // Submit keyframe headers to the hardware if the current frame is a keyframe. -+ bool SubmitHeadersIfNeeded(); -+ -+ // Upload image data from |frame| to the input surface for current job. -+ bool UploadFrame(const scoped_refptr& frame); -+ -+ // Execute encode in hardware. This does not block and will return before -+ // the job is finished. -+ bool ExecuteEncode(); -+ -+ // Callback that returns a no longer used VASurfaceID to -+ // available_va_surface_ids_ for reuse. -+ void RecycleVASurfaceID(VASurfaceID va_surface_id); -+ -+ // Tries to return a bitstream buffer if both a submitted job awaits to -+ // be completed and we have bitstream buffers from the client available -+ // to download the encoded data to. -+ void TryToReturnBitstreamBuffer(); -+ -+ // Puts the encoder into en error state and notifies client about the error. -+ void NotifyError(Error error); -+ -+ // Sets the encoder state on the correct thread. -+ void SetState(State state); -+ -+ // VaapiWrapper is the owner of all HW resources (surfaces and buffers) -+ // and will free them on destruction. -+ scoped_refptr vaapi_wrapper_; -+ -+ // Input profile and sizes. -+ VideoCodecProfile profile_; -+ gfx::Size visible_size_; -+ gfx::Size coded_size_; // Macroblock-aligned. -+ // Width/height in macroblocks. -+ unsigned int mb_width_; -+ unsigned int mb_height_; -+ -+ // Maximum size of the reference list 0. -+ unsigned int max_ref_idx_l0_size_; -+ -+ // Initial QP. -+ unsigned int qp_; -+ -+ // IDR frame period. -+ unsigned int idr_period_; -+ // I frame period. -+ unsigned int i_period_; -+ // IP period, i.e. how often do we need to have either an I or a P frame in -+ // the stream. Period of 1 means we can have no B frames. -+ unsigned int ip_period_; -+ -+ // Size in bytes required for input bitstream buffers. -+ size_t output_buffer_byte_size_; -+ -+ // All of the members below must be accessed on the encoder_thread_, -+ // while it is running. -+ -+ // Encoder state. Encode tasks will only run in kEncoding state. -+ State state_; -+ -+ // frame_num to be used for the next frame. -+ unsigned int frame_num_; -+ // idr_pic_id to be used for the next frame. -+ unsigned int idr_pic_id_; -+ -+ // Current bitrate in bps. -+ unsigned int bitrate_; -+ // Current fps. -+ unsigned int framerate_; -+ // CPB size in bits, i.e. bitrate in kbps * window size in ms/1000. -+ unsigned int cpb_size_; -+ // True if the parameters have changed and we need to submit a keyframe -+ // with updated parameters. -+ bool encoding_parameters_changed_; -+ -+ // Job currently being prepared for encode. -+ std::unique_ptr current_encode_job_; -+ -+ // Current SPS, PPS and their packed versions. Packed versions are their NALUs -+ // in AnnexB format *without* emulation prevention three-byte sequences -+ // (those will be added by the driver). -+ H264SPS current_sps_; -+ H264BitstreamBuffer packed_sps_; -+ H264PPS current_pps_; -+ H264BitstreamBuffer packed_pps_; -+ -+ // Picture currently being prepared for encode. -+ scoped_refptr current_pic_; -+ -+ // VA surfaces available for reuse. -+ std::vector available_va_surface_ids_; -+ -+ // VA buffers for coded frames. -+ std::vector available_va_buffer_ids_; -+ -+ // Currently active reference surfaces. -+ RefPicList ref_pic_list0_; -+ -+ // Callback via which finished VA surfaces are returned to us. -+ VASurface::ReleaseCB va_surface_release_cb_; -+ -+ // VideoFrames passed from the client, waiting to be encoded. -+ base::queue> encoder_input_queue_; -+ -+ // BitstreamBuffers mapped, ready to be filled. -+ base::queue> available_bitstream_buffers_; -+ -+ // Jobs submitted for encode, awaiting bitstream buffers to become available. -+ // A pending flush command, indicated by a null job, will be also put in the -+ // queue. -+ base::queue> submitted_encode_jobs_; -+ -+ // Encoder thread. All tasks are executed on it. -+ base::Thread encoder_thread_; -+ scoped_refptr encoder_thread_task_runner_; -+ -+ const scoped_refptr child_task_runner_; -+ -+ // To expose client callbacks from VideoEncodeAccelerator. -+ // NOTE: all calls to these objects *MUST* be executed on -+ // child_task_runner_. -+ std::unique_ptr> client_ptr_factory_; -+ base::WeakPtr client_; -+ -+ // WeakPtr to post from the encoder thread back to the ChildThread, as it may -+ // outlive this. Posting from the ChildThread using base::Unretained(this) -+ // to the encoder thread is safe, because |this| always outlives the encoder -+ // thread (it's a member of this class). -+ base::WeakPtr weak_this_; -+ -+ // The completion callback of the Flush() function. -+ FlushCallback flush_callback_; -+ -+ base::WeakPtrFactory weak_this_ptr_factory_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiVideoEncodeAccelerator); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_wrapper.cc -@@ -0,0 +1,1372 @@ -+// Copyright 2013 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "media/gpu/vaapi/vaapi_wrapper.h" -+ -+#include -+#include -+ -+#include -+#include -+#include -+#include -+ -+#include "base/bind.h" -+#include "base/callback_helpers.h" -+#include "base/environment.h" -+#include "base/logging.h" -+#include "base/macros.h" -+#include "base/numerics/safe_conversions.h" -+#include "base/stl_util.h" -+#include "base/sys_info.h" -+#include "build/build_config.h" -+ -+// Auto-generated for dlopen libva libraries -+#include "media/gpu/vaapi/va_stubs.h" -+ -+#include "media/gpu/vaapi/vaapi_picture.h" -+#include "third_party/libyuv/include/libyuv.h" -+#include "ui/gfx/buffer_format_util.h" -+#include "ui/gfx/native_pixmap.h" -+#include "ui/gl/gl_bindings.h" -+#include "ui/gl/gl_implementation.h" -+ -+#if defined(USE_X11) -+#include -+#include "ui/gfx/x/x11_types.h" // nogncheck -+#endif -+ -+#if defined(USE_OZONE) -+#include "ui/ozone/public/ozone_platform.h" -+#include "ui/ozone/public/surface_factory_ozone.h" -+#endif -+ -+using media_gpu_vaapi::kModuleVa; -+using media_gpu_vaapi::kModuleVa_drm; -+#if defined(USE_X11) -+using media_gpu_vaapi::kModuleVa_x11; -+#endif -+using media_gpu_vaapi::InitializeStubs; -+using media_gpu_vaapi::StubPathMap; -+ -+#define LOG_VA_ERROR_AND_REPORT(va_error, err_msg) \ -+ do { \ -+ LOG(ERROR) << err_msg << " VA error: " << vaErrorStr(va_error); \ -+ report_error_to_uma_cb_.Run(); \ -+ } while (0) -+ -+#define VA_LOG_ON_ERROR(va_error, err_msg) \ -+ do { \ -+ if ((va_error) != VA_STATUS_SUCCESS) \ -+ LOG_VA_ERROR_AND_REPORT(va_error, err_msg); \ -+ } while (0) -+ -+#define VA_SUCCESS_OR_RETURN(va_error, err_msg, ret) \ -+ do { \ -+ if ((va_error) != VA_STATUS_SUCCESS) { \ -+ LOG_VA_ERROR_AND_REPORT(va_error, err_msg); \ -+ return (ret); \ -+ } \ -+ } while (0) -+ -+namespace { -+ -+uint32_t BufferFormatToVAFourCC(gfx::BufferFormat fmt) { -+ switch (fmt) { -+ case gfx::BufferFormat::BGRX_8888: -+ return VA_FOURCC_BGRX; -+ case gfx::BufferFormat::BGRA_8888: -+ return VA_FOURCC_BGRA; -+ case gfx::BufferFormat::RGBX_8888: -+ return VA_FOURCC_RGBX; -+ case gfx::BufferFormat::UYVY_422: -+ return VA_FOURCC_UYVY; -+ case gfx::BufferFormat::YVU_420: -+ return VA_FOURCC_YV12; -+ default: -+ NOTREACHED(); -+ return 0; -+ } -+} -+ -+uint32_t BufferFormatToVARTFormat(gfx::BufferFormat fmt) { -+ switch (fmt) { -+ case gfx::BufferFormat::UYVY_422: -+ return VA_RT_FORMAT_YUV422; -+ case gfx::BufferFormat::BGRX_8888: -+ case gfx::BufferFormat::BGRA_8888: -+ case gfx::BufferFormat::RGBX_8888: -+ return VA_RT_FORMAT_RGB32; -+ case gfx::BufferFormat::YVU_420: -+ return VA_RT_FORMAT_YUV420; -+ default: -+ NOTREACHED(); -+ return 0; -+ } -+} -+ -+} // namespace -+ -+namespace media { -+ -+namespace { -+ -+// Maximum framerate of encoded profile. This value is an arbitary limit -+// and not taken from HW documentation. -+const int kMaxEncoderFramerate = 30; -+ -+// Attributes required for encode. This only applies to video encode, not JPEG -+// encode. -+static const VAConfigAttrib kVideoEncodeVAConfigAttribs[] = { -+ {VAConfigAttribRateControl, VA_RC_CBR}, -+ {VAConfigAttribEncPackedHeaders, -+ VA_ENC_PACKED_HEADER_SEQUENCE | VA_ENC_PACKED_HEADER_PICTURE}, -+}; -+ -+// A map between VideoCodecProfile and VAProfile. -+static const struct { -+ VideoCodecProfile profile; -+ VAProfile va_profile; -+} kProfileMap[] = { -+ {H264PROFILE_BASELINE, VAProfileH264Baseline}, -+ {H264PROFILE_MAIN, VAProfileH264Main}, -+ // TODO(posciak): See if we can/want to support other variants of -+ // H264PROFILE_HIGH*. -+ {H264PROFILE_HIGH, VAProfileH264High}, -+ {VP8PROFILE_ANY, VAProfileVP8Version0_3}, -+ {VP9PROFILE_PROFILE0, VAProfileVP9Profile0}, -+ {VP9PROFILE_PROFILE1, VAProfileVP9Profile1}, -+ {VP9PROFILE_PROFILE2, VAProfileVP9Profile2}, -+ {VP9PROFILE_PROFILE3, VAProfileVP9Profile3}, -+}; -+ -+// This class is a wrapper around its |va_display_| (and its associated -+// |va_lock_|) to guarantee mutual exclusion and singleton behaviour. -+class VADisplayState { -+ public: -+ static VADisplayState* Get(); -+ -+ // Initialize static data before sandbox is enabled. -+ static void PreSandboxInitialization(); -+ -+ VADisplayState(); -+ ~VADisplayState() = delete; -+ -+ // |va_lock_| must be held on entry. -+ bool Initialize(); -+ void Deinitialize(VAStatus* status); -+ -+ base::Lock* va_lock() { return &va_lock_; } -+ VADisplay va_display() const { return va_display_; } -+ -+ void SetDrmFd(base::PlatformFile fd) { drm_fd_.reset(HANDLE_EINTR(dup(fd))); } -+ -+ private: -+ // Returns false on init failure. -+ static bool PostSandboxInitialization(); -+ -+ // Protected by |va_lock_|. -+ int refcount_; -+ -+ // Libva is not thread safe, so we have to do locking for it ourselves. -+ // This lock is to be taken for the duration of all VA-API calls and for -+ // the entire job submission sequence in ExecuteAndDestroyPendingBuffers(). -+ base::Lock va_lock_; -+ -+ // Drm fd used to obtain access to the driver interface by VA. -+ base::ScopedFD drm_fd_; -+ -+ // The VADisplay handle. -+ VADisplay va_display_; -+ -+ // True if vaInitialize() has been called successfully. -+ bool va_initialized_; -+}; -+ -+// static -+VADisplayState* VADisplayState::Get() { -+ static VADisplayState* display_state = new VADisplayState(); -+ return display_state; -+} -+ -+// static -+void VADisplayState::PreSandboxInitialization() { -+ const char kDriRenderNode0Path[] = "/dev/dri/renderD128"; -+ base::File drm_file = base::File( -+ base::FilePath::FromUTF8Unsafe(kDriRenderNode0Path), -+ base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE); -+ if (drm_file.IsValid()) -+ VADisplayState::Get()->SetDrmFd(drm_file.GetPlatformFile()); -+} -+ -+// static -+bool VADisplayState::PostSandboxInitialization() { -+ const std::string va_suffix(std::to_string(VA_MAJOR_VERSION + 1)); -+ StubPathMap paths; -+ -+ paths[kModuleVa].push_back(std::string("libva.so.") + va_suffix); -+ paths[kModuleVa_drm].push_back(std::string("libva-drm.so.") + va_suffix); -+#if defined(USE_X11) -+ // libva-x11 does not exist on libva >= 2 -+ if (VA_MAJOR_VERSION == 0) -+ paths[kModuleVa_x11].push_back("libva-x11.so.1"); -+#endif -+ -+ const bool success = InitializeStubs(paths); -+ if (!success) { -+ static const char kErrorMsg[] = "Failed to initialize VAAPI libs"; -+#if defined(OS_CHROMEOS) -+ // When Chrome runs on Linux with target_os="chromeos", do not log error -+ // message without VAAPI libraries. -+ LOG_IF(ERROR, base::SysInfo::IsRunningOnChromeOS()) << kErrorMsg; -+#else -+ DVLOG(1) << kErrorMsg; -+#endif -+ } -+ return success; -+} -+ -+VADisplayState::VADisplayState() -+ : refcount_(0), va_display_(nullptr), va_initialized_(false) {} -+ -+bool VADisplayState::Initialize() { -+ va_lock_.AssertAcquired(); -+ -+ static bool result = PostSandboxInitialization(); -+ if (!result) -+ return false; -+ -+ if (refcount_++ > 0) -+ return true; -+ -+ switch (gl::GetGLImplementation()) { -+ case gl::kGLImplementationEGLGLES2: -+ va_display_ = vaGetDisplayDRM(drm_fd_.get()); -+ break; -+ case gl::kGLImplementationDesktopGL: -+#if defined(USE_X11) -+ va_display_ = vaGetDisplay(gfx::GetXDisplay()); -+#else -+ LOG(WARNING) << "HW video decode acceleration not available without " -+ "DesktopGL (GLX)."; -+#endif // USE_X11 -+ break; -+ // Cannot infer platform from GL, try all available displays -+ case gl::kGLImplementationNone: -+#if defined(USE_X11) -+ va_display_ = vaGetDisplay(gfx::GetXDisplay()); -+ if (vaDisplayIsValid(va_display_)) -+ break; -+#endif // USE_X11 -+ va_display_ = vaGetDisplayDRM(drm_fd_.get()); -+ break; -+ -+ default: -+ LOG(WARNING) << "HW video decode acceleration not available for " -+ << gl::GetGLImplementationName(gl::GetGLImplementation()); -+ return false; -+ } -+ -+ if (!vaDisplayIsValid(va_display_)) { -+ LOG(ERROR) << "Could not get a valid VA display"; -+ return false; -+ } -+ -+ // Set VA logging level to enable error messages, unless already set -+ constexpr char libva_log_level_env[] = "LIBVA_MESSAGING_LEVEL"; -+ std::unique_ptr env(base::Environment::Create()); -+ if (!env->HasVar(libva_log_level_env)) -+ env->SetVar(libva_log_level_env, "1"); -+ -+ // The VAAPI version. -+ int major_version, minor_version; -+ VAStatus va_res = vaInitialize(va_display_, &major_version, &minor_version); -+ if (va_res != VA_STATUS_SUCCESS) { -+ LOG(ERROR) << "vaInitialize failed: " << vaErrorStr(va_res); -+ return false; -+ } -+ -+ va_initialized_ = true; -+ DVLOG(1) << "VAAPI version: " << major_version << "." << minor_version; -+ -+ if (major_version != VA_MAJOR_VERSION || minor_version != VA_MINOR_VERSION) { -+ LOG(ERROR) << "This build of Chromium requires VA-API version " -+ << VA_MAJOR_VERSION << "." << VA_MINOR_VERSION -+ << ", system version: " << major_version << "." << minor_version; -+ return false; -+ } -+ return true; -+} -+ -+void VADisplayState::Deinitialize(VAStatus* status) { -+ va_lock_.AssertAcquired(); -+ if (--refcount_ > 0) -+ return; -+ -+ // Must check if vaInitialize completed successfully, to work around a bug in -+ // libva. The bug was fixed upstream: -+ // http://lists.freedesktop.org/archives/libva/2013-July/001807.html -+ // TODO(mgiuca): Remove this check, and the |va_initialized_| variable, once -+ // the fix has rolled out sufficiently. -+ if (va_initialized_ && va_display_) -+ *status = vaTerminate(va_display_); -+ va_initialized_ = false; -+ va_display_ = nullptr; -+} -+ -+static std::vector GetRequiredAttribs( -+ VaapiWrapper::CodecMode mode, -+ VAProfile profile) { -+ std::vector required_attribs; -+ // VAConfigAttribRTFormat is common to both encode and decode |mode|s. -+ if (profile == VAProfileVP9Profile2 || profile == VAProfileVP9Profile3) { -+ required_attribs.push_back( -+ {VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420_10BPP}); -+ } else { -+ required_attribs.push_back({VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420}); -+ } -+ if (mode == VaapiWrapper::kEncode && profile != VAProfileJPEGBaseline) { -+ required_attribs.insert( -+ required_attribs.end(), kVideoEncodeVAConfigAttribs, -+ kVideoEncodeVAConfigAttribs + arraysize(kVideoEncodeVAConfigAttribs)); -+ } -+ return required_attribs; -+} -+ -+static VAEntrypoint GetVaEntryPoint(VaapiWrapper::CodecMode mode, -+ VAProfile profile) { -+ switch (mode) { -+ case VaapiWrapper::kDecode: -+ return VAEntrypointVLD; -+ case VaapiWrapper::kEncode: -+ if (profile == VAProfileJPEGBaseline) -+ return VAEntrypointEncPicture; -+ else -+ return VAEntrypointEncSlice; -+ case VaapiWrapper::kCodecModeMax: -+ NOTREACHED(); -+ return VAEntrypointVLD; -+ } -+} -+ -+// This class encapsulates reading and giving access to the list of supported -+// ProfileInfo entries, in a singleton way. -+class VASupportedProfiles { -+ public: -+ struct ProfileInfo { -+ VAProfile va_profile; -+ gfx::Size max_resolution; -+ }; -+ static VASupportedProfiles* Get(); -+ -+ std::vector GetSupportedProfileInfosForCodecMode( -+ VaapiWrapper::CodecMode mode); -+ -+ bool IsProfileSupported(VaapiWrapper::CodecMode mode, VAProfile va_profile); -+ -+ private: -+ VASupportedProfiles(); -+ ~VASupportedProfiles() = default; -+ -+ bool GetSupportedVAProfiles(std::vector* profiles); -+ -+ // Gets supported profile infos for |mode|. -+ std::vector GetSupportedProfileInfosForCodecModeInternal( -+ VaapiWrapper::CodecMode mode); -+ -+ // |va_lock_| must be held on entry in the following _Locked methods. -+ -+ // Checks if |va_profile| supports |entrypoint| or not. -+ bool IsEntrypointSupported_Locked(VAProfile va_profile, -+ VAEntrypoint entrypoint); -+ // Returns true if |va_profile| for |entrypoint| with |required_attribs| is -+ // supported. -+ bool AreAttribsSupported_Locked( -+ VAProfile va_profile, -+ VAEntrypoint entrypoint, -+ const std::vector& required_attribs); -+ // Gets maximum resolution for |va_profile| and |entrypoint| with -+ // |required_attribs|. If return value is true, |resolution| is the maximum -+ // resolution. -+ bool GetMaxResolution_Locked(VAProfile va_profile, -+ VAEntrypoint entrypoint, -+ std::vector& required_attribs, -+ gfx::Size* resolution); -+ -+ std::vector supported_profiles_[VaapiWrapper::kCodecModeMax]; -+ -+ // Pointer to VADisplayState's members |va_lock_| and its |va_display_|. -+ base::Lock* va_lock_; -+ VADisplay va_display_; -+ -+ const base::Closure report_error_to_uma_cb_; -+}; -+ -+// static -+VASupportedProfiles* VASupportedProfiles::Get() { -+ static VASupportedProfiles* profile_infos = new VASupportedProfiles(); -+ return profile_infos; -+} -+ -+std::vector -+VASupportedProfiles::GetSupportedProfileInfosForCodecMode( -+ VaapiWrapper::CodecMode mode) { -+ return supported_profiles_[mode]; -+} -+ -+bool VASupportedProfiles::IsProfileSupported(VaapiWrapper::CodecMode mode, -+ VAProfile va_profile) { -+ for (const auto& profile : supported_profiles_[mode]) { -+ if (profile.va_profile == va_profile) -+ return true; -+ } -+ return false; -+} -+ -+VASupportedProfiles::VASupportedProfiles() -+ : va_lock_(VADisplayState::Get()->va_lock()), -+ va_display_(nullptr), -+ report_error_to_uma_cb_(base::Bind(&base::DoNothing)) { -+ static_assert(arraysize(supported_profiles_) == VaapiWrapper::kCodecModeMax, -+ "The array size of supported profile is incorrect."); -+ { -+ base::AutoLock auto_lock(*va_lock_); -+ if (!VADisplayState::Get()->Initialize()) -+ return; -+ } -+ -+ va_display_ = VADisplayState::Get()->va_display(); -+ DCHECK(va_display_) << "VADisplayState hasn't been properly Initialize()d"; -+ -+ for (size_t i = 0; i < VaapiWrapper::kCodecModeMax; ++i) { -+ supported_profiles_[i] = GetSupportedProfileInfosForCodecModeInternal( -+ static_cast(i)); -+ } -+ -+ { -+ base::AutoLock auto_lock(*va_lock_); -+ VAStatus va_res = VA_STATUS_SUCCESS; -+ VADisplayState::Get()->Deinitialize(&va_res); -+ VA_LOG_ON_ERROR(va_res, "vaTerminate failed"); -+ va_display_ = nullptr; -+ } -+} -+ -+std::vector -+VASupportedProfiles::GetSupportedProfileInfosForCodecModeInternal( -+ VaapiWrapper::CodecMode mode) { -+ std::vector supported_profile_infos; -+ std::vector va_profiles; -+ if (!GetSupportedVAProfiles(&va_profiles)) -+ return supported_profile_infos; -+ -+ base::AutoLock auto_lock(*va_lock_); -+ for (const auto& va_profile : va_profiles) { -+ VAEntrypoint entrypoint = GetVaEntryPoint(mode, va_profile); -+ std::vector required_attribs = -+ GetRequiredAttribs(mode, va_profile); -+ if (!IsEntrypointSupported_Locked(va_profile, entrypoint)) -+ continue; -+ if (!AreAttribsSupported_Locked(va_profile, entrypoint, required_attribs)) -+ continue; -+ ProfileInfo profile_info; -+ if (!GetMaxResolution_Locked(va_profile, entrypoint, required_attribs, -+ &profile_info.max_resolution)) { -+ LOG(ERROR) << "GetMaxResolution failed for va_profile " << va_profile -+ << " and entrypoint " << entrypoint; -+ continue; -+ } -+ profile_info.va_profile = va_profile; -+ supported_profile_infos.push_back(profile_info); -+ } -+ return supported_profile_infos; -+} -+ -+bool VASupportedProfiles::GetSupportedVAProfiles( -+ std::vector* profiles) { -+ base::AutoLock auto_lock(*va_lock_); -+ // Query the driver for supported profiles. -+ const int max_profiles = vaMaxNumProfiles(va_display_); -+ std::vector supported_profiles( -+ base::checked_cast(max_profiles)); -+ -+ int num_supported_profiles; -+ VAStatus va_res = vaQueryConfigProfiles(va_display_, &supported_profiles[0], -+ &num_supported_profiles); -+ VA_SUCCESS_OR_RETURN(va_res, "vaQueryConfigProfiles failed", false); -+ if (num_supported_profiles < 0 || num_supported_profiles > max_profiles) { -+ LOG(ERROR) << "vaQueryConfigProfiles returned: " << num_supported_profiles; -+ return false; -+ } -+ -+ supported_profiles.resize(base::checked_cast(num_supported_profiles)); -+ *profiles = supported_profiles; -+ return true; -+} -+ -+bool VASupportedProfiles::IsEntrypointSupported_Locked( -+ VAProfile va_profile, -+ VAEntrypoint entrypoint) { -+ va_lock_->AssertAcquired(); -+ // Query the driver for supported entrypoints. -+ int max_entrypoints = vaMaxNumEntrypoints(va_display_); -+ std::vector supported_entrypoints( -+ base::checked_cast(max_entrypoints)); -+ -+ int num_supported_entrypoints; -+ VAStatus va_res = vaQueryConfigEntrypoints(va_display_, va_profile, -+ &supported_entrypoints[0], -+ &num_supported_entrypoints); -+ VA_SUCCESS_OR_RETURN(va_res, "vaQueryConfigEntrypoints failed", false); -+ if (num_supported_entrypoints < 0 || -+ num_supported_entrypoints > max_entrypoints) { -+ LOG(ERROR) << "vaQueryConfigEntrypoints returned: " -+ << num_supported_entrypoints; -+ return false; -+ } -+ -+ return base::ContainsValue(supported_entrypoints, entrypoint); -+} -+ -+bool VASupportedProfiles::AreAttribsSupported_Locked( -+ VAProfile va_profile, -+ VAEntrypoint entrypoint, -+ const std::vector& required_attribs) { -+ va_lock_->AssertAcquired(); -+ // Query the driver for required attributes. -+ std::vector attribs = required_attribs; -+ for (size_t i = 0; i < required_attribs.size(); ++i) -+ attribs[i].value = 0; -+ -+ VAStatus va_res = vaGetConfigAttributes(va_display_, va_profile, entrypoint, -+ &attribs[0], attribs.size()); -+ VA_SUCCESS_OR_RETURN(va_res, "vaGetConfigAttributes failed", false); -+ -+ for (size_t i = 0; i < required_attribs.size(); ++i) { -+ if (attribs[i].type != required_attribs[i].type || -+ (attribs[i].value & required_attribs[i].value) != -+ required_attribs[i].value) { -+ DVLOG(1) << "Unsupported value " << required_attribs[i].value -+ << " for attribute type " << required_attribs[i].type; -+ return false; -+ } -+ } -+ return true; -+} -+ -+bool VASupportedProfiles::GetMaxResolution_Locked( -+ VAProfile va_profile, -+ VAEntrypoint entrypoint, -+ std::vector& required_attribs, -+ gfx::Size* resolution) { -+ va_lock_->AssertAcquired(); -+ VAConfigID va_config_id; -+ VAStatus va_res = -+ vaCreateConfig(va_display_, va_profile, entrypoint, &required_attribs[0], -+ required_attribs.size(), &va_config_id); -+ VA_SUCCESS_OR_RETURN(va_res, "vaCreateConfig failed", false); -+ -+ // Calls vaQuerySurfaceAttributes twice. The first time is to get the number -+ // of attributes to prepare the space and the second time is to get all -+ // attributes. -+ unsigned int num_attribs; -+ va_res = vaQuerySurfaceAttributes(va_display_, va_config_id, nullptr, -+ &num_attribs); -+ VA_SUCCESS_OR_RETURN(va_res, "vaQuerySurfaceAttributes failed", false); -+ if (!num_attribs) -+ return false; -+ -+ std::vector attrib_list( -+ base::checked_cast(num_attribs)); -+ -+ va_res = vaQuerySurfaceAttributes(va_display_, va_config_id, &attrib_list[0], -+ &num_attribs); -+ VA_SUCCESS_OR_RETURN(va_res, "vaQuerySurfaceAttributes failed", false); -+ -+ resolution->SetSize(0, 0); -+ for (const auto& attrib : attrib_list) { -+ if (attrib.type == VASurfaceAttribMaxWidth) -+ resolution->set_width(attrib.value.value.i); -+ else if (attrib.type == VASurfaceAttribMaxHeight) -+ resolution->set_height(attrib.value.value.i); -+ } -+ if (resolution->IsEmpty()) { -+ LOG(ERROR) << "Wrong codec resolution: " << resolution->ToString(); -+ return false; -+ } -+ return true; -+} -+ -+// Maps VideoCodecProfile enum values to VaProfile values. This function -+// includes a workaround for https://crbug.com/345569: if va_profile is h264 -+// baseline and it is not supported, we try constrained baseline. -+VAProfile ProfileToVAProfile(VideoCodecProfile profile, -+ VaapiWrapper::CodecMode mode) { -+ VAProfile va_profile = VAProfileNone; -+ for (size_t i = 0; i < arraysize(kProfileMap); ++i) { -+ if (kProfileMap[i].profile == profile) { -+ va_profile = kProfileMap[i].va_profile; -+ break; -+ } -+ } -+ if (!VASupportedProfiles::Get()->IsProfileSupported(mode, va_profile) && -+ va_profile == VAProfileH264Baseline) { -+ // https://crbug.com/345569: ProfileIDToVideoCodecProfile() currently strips -+ // the information whether the profile is constrained or not, so we have no -+ // way to know here. Try for baseline first, but if it is not supported, -+ // try constrained baseline and hope this is what it actually is -+ // (which in practice is true for a great majority of cases). -+ if (VASupportedProfiles::Get()->IsProfileSupported( -+ mode, VAProfileH264ConstrainedBaseline)) { -+ va_profile = VAProfileH264ConstrainedBaseline; -+ DVLOG(1) << "Fall back to constrained baseline profile."; -+ } -+ } -+ return va_profile; -+} -+ -+void DestroyVAImage(VADisplay va_display, VAImage image) { -+ if (image.image_id != VA_INVALID_ID) -+ vaDestroyImage(va_display, image.image_id); -+} -+ -+} // namespace -+ -+VaapiWrapper::VaapiWrapper() -+ : va_surface_format_(0), -+ va_display_(NULL), -+ va_config_id_(VA_INVALID_ID), -+ va_context_id_(VA_INVALID_ID), -+ va_vpp_config_id_(VA_INVALID_ID), -+ va_vpp_context_id_(VA_INVALID_ID), -+ va_vpp_buffer_id_(VA_INVALID_ID) { -+ va_lock_ = VADisplayState::Get()->va_lock(); -+} -+ -+VaapiWrapper::~VaapiWrapper() { -+ DestroyPendingBuffers(); -+ DestroyCodedBuffers(); -+ DestroySurfaces(); -+ DeinitializeVpp(); -+ Deinitialize(); -+} -+ -+// static -+scoped_refptr VaapiWrapper::Create( -+ CodecMode mode, -+ VAProfile va_profile, -+ const base::Closure& report_error_to_uma_cb) { -+ if (!VASupportedProfiles::Get()->IsProfileSupported(mode, va_profile)) { -+ DVLOG(1) << "Unsupported va_profile: " << va_profile; -+ return nullptr; -+ } -+ -+ scoped_refptr vaapi_wrapper(new VaapiWrapper()); -+ if (vaapi_wrapper->VaInitialize(report_error_to_uma_cb)) { -+ if (vaapi_wrapper->Initialize(mode, va_profile)) -+ return vaapi_wrapper; -+ } -+ LOG(ERROR) << "Failed to create VaapiWrapper for va_profile: " << va_profile; -+ return nullptr; -+} -+ -+// static -+scoped_refptr VaapiWrapper::CreateForVideoCodec( -+ CodecMode mode, -+ VideoCodecProfile profile, -+ const base::Closure& report_error_to_uma_cb) { -+ VAProfile va_profile = ProfileToVAProfile(profile, mode); -+ return Create(mode, va_profile, report_error_to_uma_cb); -+} -+ -+// static -+VideoEncodeAccelerator::SupportedProfiles -+VaapiWrapper::GetSupportedEncodeProfiles() { -+ VideoEncodeAccelerator::SupportedProfiles profiles; -+ std::vector encode_profile_infos = -+ VASupportedProfiles::Get()->GetSupportedProfileInfosForCodecMode(kEncode); -+ -+ for (size_t i = 0; i < arraysize(kProfileMap); ++i) { -+ VAProfile va_profile = ProfileToVAProfile(kProfileMap[i].profile, kEncode); -+ if (va_profile == VAProfileNone) -+ continue; -+ for (const auto& profile_info : encode_profile_infos) { -+ if (profile_info.va_profile == va_profile) { -+ VideoEncodeAccelerator::SupportedProfile profile; -+ profile.profile = kProfileMap[i].profile; -+ profile.max_resolution = profile_info.max_resolution; -+ profile.max_framerate_numerator = kMaxEncoderFramerate; -+ profile.max_framerate_denominator = 1; -+ profiles.push_back(profile); -+ break; -+ } -+ } -+ } -+ return profiles; -+} -+ -+// static -+VideoDecodeAccelerator::SupportedProfiles -+VaapiWrapper::GetSupportedDecodeProfiles() { -+ VideoDecodeAccelerator::SupportedProfiles profiles; -+ std::vector decode_profile_infos = -+ VASupportedProfiles::Get()->GetSupportedProfileInfosForCodecMode(kDecode); -+ -+ for (size_t i = 0; i < arraysize(kProfileMap); ++i) { -+ VAProfile va_profile = ProfileToVAProfile(kProfileMap[i].profile, kDecode); -+ if (va_profile == VAProfileNone) -+ continue; -+ for (const auto& profile_info : decode_profile_infos) { -+ if (profile_info.va_profile == va_profile) { -+ VideoDecodeAccelerator::SupportedProfile profile; -+ profile.profile = kProfileMap[i].profile; -+ profile.max_resolution = profile_info.max_resolution; -+ profile.min_resolution.SetSize(16, 16); -+ profiles.push_back(profile); -+ break; -+ } -+ } -+ } -+ return profiles; -+} -+ -+// static -+bool VaapiWrapper::IsJpegDecodeSupported() { -+ return VASupportedProfiles::Get()->IsProfileSupported(kDecode, -+ VAProfileJPEGBaseline); -+} -+ -+// static -+bool VaapiWrapper::IsJpegEncodeSupported() { -+ return VASupportedProfiles::Get()->IsProfileSupported(kEncode, -+ VAProfileJPEGBaseline); -+} -+ -+void VaapiWrapper::TryToSetVADisplayAttributeToLocalGPU() { -+ base::AutoLock auto_lock(*va_lock_); -+ VADisplayAttribute item = {VADisplayAttribRenderMode, -+ 1, // At least support '_LOCAL_OVERLAY'. -+ -1, // The maximum possible support 'ALL'. -+ VA_RENDER_MODE_LOCAL_GPU, -+ VA_DISPLAY_ATTRIB_SETTABLE}; -+ -+ VAStatus va_res = vaSetDisplayAttributes(va_display_, &item, 1); -+ if (va_res != VA_STATUS_SUCCESS) -+ DVLOG(2) << "vaSetDisplayAttributes unsupported, ignoring by default."; -+} -+ -+bool VaapiWrapper::VaInitialize(const base::Closure& report_error_to_uma_cb) { -+ report_error_to_uma_cb_ = report_error_to_uma_cb; -+ { -+ base::AutoLock auto_lock(*va_lock_); -+ if (!VADisplayState::Get()->Initialize()) -+ return false; -+ } -+ -+ va_display_ = VADisplayState::Get()->va_display(); -+ DCHECK(va_display_) << "VADisplayState hasn't been properly Initialize()d"; -+ return true; -+} -+ -+bool VaapiWrapper::Initialize(CodecMode mode, VAProfile va_profile) { -+ TryToSetVADisplayAttributeToLocalGPU(); -+ -+ VAEntrypoint entrypoint = GetVaEntryPoint(mode, va_profile); -+ std::vector required_attribs = -+ GetRequiredAttribs(mode, va_profile); -+ base::AutoLock auto_lock(*va_lock_); -+ VAStatus va_res = -+ vaCreateConfig(va_display_, va_profile, entrypoint, &required_attribs[0], -+ required_attribs.size(), &va_config_id_); -+ VA_SUCCESS_OR_RETURN(va_res, "vaCreateConfig failed", false); -+ -+ return true; -+} -+ -+void VaapiWrapper::Deinitialize() { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ if (va_config_id_ != VA_INVALID_ID) { -+ VAStatus va_res = vaDestroyConfig(va_display_, va_config_id_); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyConfig failed"); -+ } -+ -+ VAStatus va_res = VA_STATUS_SUCCESS; -+ VADisplayState::Get()->Deinitialize(&va_res); -+ VA_LOG_ON_ERROR(va_res, "vaTerminate failed"); -+ -+ va_config_id_ = VA_INVALID_ID; -+ va_display_ = NULL; -+} -+ -+bool VaapiWrapper::CreateSurfaces(unsigned int va_format, -+ const gfx::Size& size, -+ size_t num_surfaces, -+ std::vector* va_surfaces) { -+ base::AutoLock auto_lock(*va_lock_); -+ DVLOG(2) << "Creating " << num_surfaces << " surfaces"; -+ -+ DCHECK(va_surfaces->empty()); -+ DCHECK(va_surface_ids_.empty()); -+ DCHECK_EQ(va_surface_format_, 0u); -+ va_surface_ids_.resize(num_surfaces); -+ -+ // Allocate surfaces in driver. -+ VAStatus va_res = -+ vaCreateSurfaces(va_display_, va_format, size.width(), size.height(), -+ &va_surface_ids_[0], va_surface_ids_.size(), NULL, 0); -+ -+ VA_LOG_ON_ERROR(va_res, "vaCreateSurfaces failed"); -+ if (va_res != VA_STATUS_SUCCESS) { -+ va_surface_ids_.clear(); -+ return false; -+ } -+ -+ // And create a context associated with them. -+ va_res = vaCreateContext(va_display_, va_config_id_, size.width(), -+ size.height(), VA_PROGRESSIVE, &va_surface_ids_[0], -+ va_surface_ids_.size(), &va_context_id_); -+ -+ VA_LOG_ON_ERROR(va_res, "vaCreateContext failed"); -+ if (va_res != VA_STATUS_SUCCESS) { -+ DestroySurfaces_Locked(); -+ return false; -+ } -+ -+ *va_surfaces = va_surface_ids_; -+ va_surface_format_ = va_format; -+ return true; -+} -+ -+void VaapiWrapper::DestroySurfaces() { -+ base::AutoLock auto_lock(*va_lock_); -+ DVLOG(2) << "Destroying " << va_surface_ids_.size() << " surfaces"; -+ -+ DestroySurfaces_Locked(); -+} -+ -+void VaapiWrapper::DestroySurfaces_Locked() { -+ va_lock_->AssertAcquired(); -+ -+ if (va_context_id_ != VA_INVALID_ID) { -+ VAStatus va_res = vaDestroyContext(va_display_, va_context_id_); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyContext failed"); -+ } -+ -+ if (!va_surface_ids_.empty()) { -+ VAStatus va_res = vaDestroySurfaces(va_display_, &va_surface_ids_[0], -+ va_surface_ids_.size()); -+ VA_LOG_ON_ERROR(va_res, "vaDestroySurfaces failed"); -+ } -+ -+ va_surface_ids_.clear(); -+ va_context_id_ = VA_INVALID_ID; -+ va_surface_format_ = 0; -+} -+ -+scoped_refptr VaapiWrapper::CreateUnownedSurface( -+ unsigned int va_format, -+ const gfx::Size& size, -+ const std::vector& va_attribs) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ std::vector attribs(va_attribs); -+ VASurfaceID va_surface_id; -+ VAStatus va_res = -+ vaCreateSurfaces(va_display_, va_format, size.width(), size.height(), -+ &va_surface_id, 1, &attribs[0], attribs.size()); -+ -+ scoped_refptr va_surface; -+ VA_SUCCESS_OR_RETURN(va_res, "Failed to create unowned VASurface", -+ va_surface); -+ -+ // This is safe to use Unretained() here, because the VDA takes care -+ // of the destruction order. All the surfaces will be destroyed -+ // before VaapiWrapper. -+ va_surface = new VASurface( -+ va_surface_id, size, va_format, -+ base::Bind(&VaapiWrapper::DestroyUnownedSurface, base::Unretained(this))); -+ -+ return va_surface; -+} -+ -+scoped_refptr VaapiWrapper::CreateVASurfaceForPixmap( -+ const scoped_refptr& pixmap) { -+ // Create a VASurface for a NativePixmap by importing the underlying dmabufs. -+ VASurfaceAttribExternalBuffers va_attrib_extbuf; -+ memset(&va_attrib_extbuf, 0, sizeof(va_attrib_extbuf)); -+ -+ va_attrib_extbuf.pixel_format = -+ BufferFormatToVAFourCC(pixmap->GetBufferFormat()); -+ gfx::Size size = pixmap->GetBufferSize(); -+ va_attrib_extbuf.width = size.width(); -+ va_attrib_extbuf.height = size.height(); -+ -+ size_t num_fds = pixmap->GetDmaBufFdCount(); -+ size_t num_planes = -+ gfx::NumberOfPlanesForBufferFormat(pixmap->GetBufferFormat()); -+ if (num_fds == 0 || num_fds > num_planes) { -+ LOG(ERROR) << "Invalid number of dmabuf fds: " << num_fds -+ << " , planes: " << num_planes; -+ return nullptr; -+ } -+ -+ for (size_t i = 0; i < num_planes; ++i) { -+ va_attrib_extbuf.pitches[i] = pixmap->GetDmaBufPitch(i); -+ va_attrib_extbuf.offsets[i] = pixmap->GetDmaBufOffset(i); -+ DVLOG(4) << "plane " << i << ": pitch: " << va_attrib_extbuf.pitches[i] -+ << " offset: " << va_attrib_extbuf.offsets[i]; -+ } -+ va_attrib_extbuf.num_planes = num_planes; -+ -+ std::vector fds(num_fds); -+ for (size_t i = 0; i < num_fds; ++i) { -+ int dmabuf_fd = pixmap->GetDmaBufFd(i); -+ if (dmabuf_fd < 0) { -+ LOG(ERROR) << "Failed to get dmabuf from an Ozone NativePixmap"; -+ return nullptr; -+ } -+ fds[i] = dmabuf_fd; -+ } -+ va_attrib_extbuf.buffers = fds.data(); -+ va_attrib_extbuf.num_buffers = fds.size(); -+ -+ va_attrib_extbuf.flags = 0; -+ va_attrib_extbuf.private_data = NULL; -+ -+ std::vector va_attribs(2); -+ -+ va_attribs[0].type = VASurfaceAttribMemoryType; -+ va_attribs[0].flags = VA_SURFACE_ATTRIB_SETTABLE; -+ va_attribs[0].value.type = VAGenericValueTypeInteger; -+ va_attribs[0].value.value.i = VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME; -+ -+ va_attribs[1].type = VASurfaceAttribExternalBufferDescriptor; -+ va_attribs[1].flags = VA_SURFACE_ATTRIB_SETTABLE; -+ va_attribs[1].value.type = VAGenericValueTypePointer; -+ va_attribs[1].value.value.p = &va_attrib_extbuf; -+ -+ scoped_refptr va_surface = CreateUnownedSurface( -+ BufferFormatToVARTFormat(pixmap->GetBufferFormat()), size, va_attribs); -+ if (!va_surface) { -+ LOG(ERROR) << "Failed to create VASurface for an Ozone NativePixmap"; -+ return nullptr; -+ } -+ -+ return va_surface; -+} -+ -+void VaapiWrapper::DestroyUnownedSurface(VASurfaceID va_surface_id) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VAStatus va_res = vaDestroySurfaces(va_display_, &va_surface_id, 1); -+ VA_LOG_ON_ERROR(va_res, "vaDestroySurfaces on surface failed"); -+} -+ -+bool VaapiWrapper::SubmitBuffer(VABufferType va_buffer_type, -+ size_t size, -+ void* buffer) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VABufferID buffer_id; -+ VAStatus va_res = vaCreateBuffer(va_display_, va_context_id_, va_buffer_type, -+ size, 1, buffer, &buffer_id); -+ VA_SUCCESS_OR_RETURN(va_res, "Failed to create a VA buffer", false); -+ -+ switch (va_buffer_type) { -+ case VASliceParameterBufferType: -+ case VASliceDataBufferType: -+ case VAEncSliceParameterBufferType: -+ pending_slice_bufs_.push_back(buffer_id); -+ break; -+ -+ default: -+ pending_va_bufs_.push_back(buffer_id); -+ break; -+ } -+ -+ return true; -+} -+ -+bool VaapiWrapper::SubmitVAEncMiscParamBuffer( -+ VAEncMiscParameterType misc_param_type, -+ size_t size, -+ void* buffer) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VABufferID buffer_id; -+ VAStatus va_res = vaCreateBuffer( -+ va_display_, va_context_id_, VAEncMiscParameterBufferType, -+ sizeof(VAEncMiscParameterBuffer) + size, 1, NULL, &buffer_id); -+ VA_SUCCESS_OR_RETURN(va_res, "Failed to create a VA buffer", false); -+ -+ void* data_ptr = NULL; -+ va_res = vaMapBuffer(va_display_, buffer_id, &data_ptr); -+ VA_LOG_ON_ERROR(va_res, "vaMapBuffer failed"); -+ if (va_res != VA_STATUS_SUCCESS) { -+ vaDestroyBuffer(va_display_, buffer_id); -+ return false; -+ } -+ -+ DCHECK(data_ptr); -+ -+ VAEncMiscParameterBuffer* misc_param = -+ reinterpret_cast(data_ptr); -+ misc_param->type = misc_param_type; -+ memcpy(misc_param->data, buffer, size); -+ va_res = vaUnmapBuffer(va_display_, buffer_id); -+ VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -+ -+ pending_va_bufs_.push_back(buffer_id); -+ return true; -+} -+ -+void VaapiWrapper::DestroyPendingBuffers() { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ for (const auto& pending_va_buf : pending_va_bufs_) { -+ VAStatus va_res = vaDestroyBuffer(va_display_, pending_va_buf); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -+ } -+ -+ for (const auto& pending_slice_buf : pending_slice_bufs_) { -+ VAStatus va_res = vaDestroyBuffer(va_display_, pending_slice_buf); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -+ } -+ -+ pending_va_bufs_.clear(); -+ pending_slice_bufs_.clear(); -+} -+ -+bool VaapiWrapper::CreateCodedBuffer(size_t size, VABufferID* buffer_id) { -+ base::AutoLock auto_lock(*va_lock_); -+ VAStatus va_res = -+ vaCreateBuffer(va_display_, va_context_id_, VAEncCodedBufferType, size, 1, -+ NULL, buffer_id); -+ VA_SUCCESS_OR_RETURN(va_res, "Failed to create a coded buffer", false); -+ -+ const auto is_new_entry = coded_buffers_.insert(*buffer_id).second; -+ DCHECK(is_new_entry); -+ return true; -+} -+ -+void VaapiWrapper::DestroyCodedBuffers() { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ for (std::set::const_iterator iter = coded_buffers_.begin(); -+ iter != coded_buffers_.end(); ++iter) { -+ VAStatus va_res = vaDestroyBuffer(va_display_, *iter); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -+ } -+ -+ coded_buffers_.clear(); -+} -+ -+bool VaapiWrapper::Execute(VASurfaceID va_surface_id) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ DVLOG(4) << "Pending VA bufs to commit: " << pending_va_bufs_.size(); -+ DVLOG(4) << "Pending slice bufs to commit: " << pending_slice_bufs_.size(); -+ DVLOG(4) << "Target VA surface " << va_surface_id; -+ -+ // Get ready to execute for given surface. -+ VAStatus va_res = vaBeginPicture(va_display_, va_context_id_, va_surface_id); -+ VA_SUCCESS_OR_RETURN(va_res, "vaBeginPicture failed", false); -+ -+ if (pending_va_bufs_.size() > 0) { -+ // Commit parameter and slice buffers. -+ va_res = vaRenderPicture(va_display_, va_context_id_, &pending_va_bufs_[0], -+ pending_va_bufs_.size()); -+ VA_SUCCESS_OR_RETURN(va_res, "vaRenderPicture for va_bufs failed", false); -+ } -+ -+ if (pending_slice_bufs_.size() > 0) { -+ va_res = -+ vaRenderPicture(va_display_, va_context_id_, &pending_slice_bufs_[0], -+ pending_slice_bufs_.size()); -+ VA_SUCCESS_OR_RETURN(va_res, "vaRenderPicture for slices failed", false); -+ } -+ -+ // Instruct HW codec to start processing committed buffers. -+ // Does not block and the job is not finished after this returns. -+ va_res = vaEndPicture(va_display_, va_context_id_); -+ VA_SUCCESS_OR_RETURN(va_res, "vaEndPicture failed", false); -+ -+ return true; -+} -+ -+bool VaapiWrapper::ExecuteAndDestroyPendingBuffers(VASurfaceID va_surface_id) { -+ bool result = Execute(va_surface_id); -+ DestroyPendingBuffers(); -+ return result; -+} -+ -+#if defined(USE_X11) -+bool VaapiWrapper::PutSurfaceIntoPixmap(VASurfaceID va_surface_id, -+ Pixmap x_pixmap, -+ gfx::Size dest_size) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VAStatus va_res = vaSyncSurface(va_display_, va_surface_id); -+ VA_SUCCESS_OR_RETURN(va_res, "Failed syncing surface", false); -+ -+ // Put the data into an X Pixmap. -+ va_res = vaPutSurface(va_display_, -+ va_surface_id, -+ x_pixmap, -+ 0, 0, dest_size.width(), dest_size.height(), -+ 0, 0, dest_size.width(), dest_size.height(), -+ NULL, 0, 0); -+ VA_SUCCESS_OR_RETURN(va_res, "Failed putting surface to pixmap", false); -+ return true; -+} -+#endif // USE_X11 -+ -+bool VaapiWrapper::GetVaImage(VASurfaceID va_surface_id, -+ VAImageFormat* format, -+ const gfx::Size& size, -+ VAImage* image, -+ void** mem) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VAStatus va_res = vaSyncSurface(va_display_, va_surface_id); -+ VA_SUCCESS_OR_RETURN(va_res, "Failed syncing surface", false); -+ -+ va_res = -+ vaCreateImage(va_display_, format, size.width(), size.height(), image); -+ VA_SUCCESS_OR_RETURN(va_res, "vaCreateImage failed", false); -+ -+ va_res = vaGetImage(va_display_, va_surface_id, 0, 0, size.width(), -+ size.height(), image->image_id); -+ VA_LOG_ON_ERROR(va_res, "vaGetImage failed"); -+ -+ if (va_res == VA_STATUS_SUCCESS) { -+ // Map the VAImage into memory -+ va_res = vaMapBuffer(va_display_, image->buf, mem); -+ VA_LOG_ON_ERROR(va_res, "vaMapBuffer failed"); -+ } -+ -+ if (va_res != VA_STATUS_SUCCESS) { -+ va_res = vaDestroyImage(va_display_, image->image_id); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyImage failed"); -+ return false; -+ } -+ -+ return true; -+} -+ -+void VaapiWrapper::ReturnVaImage(VAImage* image) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VAStatus va_res = vaUnmapBuffer(va_display_, image->buf); -+ VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -+ -+ va_res = vaDestroyImage(va_display_, image->image_id); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyImage failed"); -+} -+ -+bool VaapiWrapper::UploadVideoFrameToSurface( -+ const scoped_refptr& frame, -+ VASurfaceID va_surface_id) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VAImage image; -+ VAStatus va_res = vaDeriveImage(va_display_, va_surface_id, &image); -+ VA_SUCCESS_OR_RETURN(va_res, "vaDeriveImage failed", false); -+ base::ScopedClosureRunner vaimage_deleter( -+ base::Bind(&DestroyVAImage, va_display_, image)); -+ -+ if (image.format.fourcc != VA_FOURCC_NV12) { -+ LOG(ERROR) << "Unsupported image format: " << image.format.fourcc; -+ return false; -+ } -+ -+ if (gfx::Rect(image.width, image.height) < gfx::Rect(frame->coded_size())) { -+ LOG(ERROR) << "Buffer too small to fit the frame."; -+ return false; -+ } -+ -+ void* image_ptr = NULL; -+ va_res = vaMapBuffer(va_display_, image.buf, &image_ptr); -+ VA_SUCCESS_OR_RETURN(va_res, "vaMapBuffer failed", false); -+ DCHECK(image_ptr); -+ -+ int ret = 0; -+ { -+ base::AutoUnlock auto_unlock(*va_lock_); -+ ret = libyuv::I420ToNV12( -+ frame->data(VideoFrame::kYPlane), frame->stride(VideoFrame::kYPlane), -+ frame->data(VideoFrame::kUPlane), frame->stride(VideoFrame::kUPlane), -+ frame->data(VideoFrame::kVPlane), frame->stride(VideoFrame::kVPlane), -+ static_cast(image_ptr) + image.offsets[0], image.pitches[0], -+ static_cast(image_ptr) + image.offsets[1], image.pitches[1], -+ image.width, image.height); -+ } -+ -+ va_res = vaUnmapBuffer(va_display_, image.buf); -+ VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -+ -+ return ret == 0; -+} -+ -+bool VaapiWrapper::DownloadFromCodedBuffer(VABufferID buffer_id, -+ VASurfaceID sync_surface_id, -+ uint8_t* target_ptr, -+ size_t target_size, -+ size_t* coded_data_size) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ VAStatus va_res = vaSyncSurface(va_display_, sync_surface_id); -+ VA_SUCCESS_OR_RETURN(va_res, "Failed syncing surface", false); -+ -+ VACodedBufferSegment* buffer_segment = NULL; -+ va_res = vaMapBuffer(va_display_, buffer_id, -+ reinterpret_cast(&buffer_segment)); -+ VA_SUCCESS_OR_RETURN(va_res, "vaMapBuffer failed", false); -+ DCHECK(target_ptr); -+ -+ { -+ base::AutoUnlock auto_unlock(*va_lock_); -+ *coded_data_size = 0; -+ -+ while (buffer_segment) { -+ DCHECK(buffer_segment->buf); -+ -+ if (buffer_segment->size > target_size) { -+ LOG(ERROR) << "Insufficient output buffer size"; -+ break; -+ } -+ -+ memcpy(target_ptr, buffer_segment->buf, buffer_segment->size); -+ -+ target_ptr += buffer_segment->size; -+ *coded_data_size += buffer_segment->size; -+ target_size -= buffer_segment->size; -+ -+ buffer_segment = -+ reinterpret_cast(buffer_segment->next); -+ } -+ } -+ -+ va_res = vaUnmapBuffer(va_display_, buffer_id); -+ VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -+ return buffer_segment == NULL; -+} -+ -+bool VaapiWrapper::DownloadAndDestroyCodedBuffer(VABufferID buffer_id, -+ VASurfaceID sync_surface_id, -+ uint8_t* target_ptr, -+ size_t target_size, -+ size_t* coded_data_size) { -+ bool result = DownloadFromCodedBuffer(buffer_id, sync_surface_id, target_ptr, -+ target_size, coded_data_size); -+ -+ VAStatus va_res = vaDestroyBuffer(va_display_, buffer_id); -+ VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -+ const auto was_found = coded_buffers_.erase(buffer_id); -+ DCHECK(was_found); -+ -+ return result; -+} -+ -+bool VaapiWrapper::BlitSurface( -+ const scoped_refptr& va_surface_src, -+ const scoped_refptr& va_surface_dest) { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ // Initialize the post processing engine if not already done. -+ if (va_vpp_buffer_id_ == VA_INVALID_ID) { -+ if (!InitializeVpp_Locked()) -+ return false; -+ } -+ -+ VAProcPipelineParameterBuffer* pipeline_param; -+ VA_SUCCESS_OR_RETURN(vaMapBuffer(va_display_, va_vpp_buffer_id_, -+ reinterpret_cast(&pipeline_param)), -+ "Couldn't map vpp buffer", false); -+ -+ memset(pipeline_param, 0, sizeof *pipeline_param); -+ const gfx::Size src_size = va_surface_src->size(); -+ const gfx::Size dest_size = va_surface_dest->size(); -+ -+ VARectangle input_region; -+ input_region.x = input_region.y = 0; -+ input_region.width = src_size.width(); -+ input_region.height = src_size.height(); -+ pipeline_param->surface_region = &input_region; -+ pipeline_param->surface = va_surface_src->id(); -+ pipeline_param->surface_color_standard = VAProcColorStandardNone; -+ -+ VARectangle output_region; -+ output_region.x = output_region.y = 0; -+ output_region.width = dest_size.width(); -+ output_region.height = dest_size.height(); -+ pipeline_param->output_region = &output_region; -+ pipeline_param->output_background_color = 0xff000000; -+ pipeline_param->output_color_standard = VAProcColorStandardNone; -+ pipeline_param->filter_flags = VA_FILTER_SCALING_DEFAULT; -+ -+ VA_SUCCESS_OR_RETURN(vaUnmapBuffer(va_display_, va_vpp_buffer_id_), -+ "Couldn't unmap vpp buffer", false); -+ -+ VA_SUCCESS_OR_RETURN( -+ vaBeginPicture(va_display_, va_vpp_context_id_, va_surface_dest->id()), -+ "Couldn't begin picture", false); -+ -+ VA_SUCCESS_OR_RETURN( -+ vaRenderPicture(va_display_, va_vpp_context_id_, &va_vpp_buffer_id_, 1), -+ "Couldn't render picture", false); -+ -+ VA_SUCCESS_OR_RETURN(vaEndPicture(va_display_, va_vpp_context_id_), -+ "Couldn't end picture", false); -+ -+ return true; -+} -+ -+bool VaapiWrapper::InitializeVpp_Locked() { -+ va_lock_->AssertAcquired(); -+ -+ VA_SUCCESS_OR_RETURN( -+ vaCreateConfig(va_display_, VAProfileNone, VAEntrypointVideoProc, NULL, 0, -+ &va_vpp_config_id_), -+ "Couldn't create config", false); -+ -+ // The size of the picture for the context is irrelevant in the case -+ // of the VPP, just passing 1x1. -+ VA_SUCCESS_OR_RETURN(vaCreateContext(va_display_, va_vpp_config_id_, 1, 1, 0, -+ NULL, 0, &va_vpp_context_id_), -+ "Couldn't create context", false); -+ -+ VA_SUCCESS_OR_RETURN(vaCreateBuffer(va_display_, va_vpp_context_id_, -+ VAProcPipelineParameterBufferType, -+ sizeof(VAProcPipelineParameterBuffer), 1, -+ NULL, &va_vpp_buffer_id_), -+ "Couldn't create buffer", false); -+ -+ return true; -+} -+ -+void VaapiWrapper::DeinitializeVpp() { -+ base::AutoLock auto_lock(*va_lock_); -+ -+ if (va_vpp_buffer_id_ != VA_INVALID_ID) { -+ vaDestroyBuffer(va_display_, va_vpp_buffer_id_); -+ va_vpp_buffer_id_ = VA_INVALID_ID; -+ } -+ if (va_vpp_context_id_ != VA_INVALID_ID) { -+ vaDestroyContext(va_display_, va_vpp_context_id_); -+ va_vpp_context_id_ = VA_INVALID_ID; -+ } -+ if (va_vpp_config_id_ != VA_INVALID_ID) { -+ vaDestroyConfig(va_display_, va_vpp_config_id_); -+ va_vpp_config_id_ = VA_INVALID_ID; -+ } -+} -+ -+// static -+void VaapiWrapper::PreSandboxInitialization() { -+ VADisplayState::PreSandboxInitialization(); -+} -+ -+} // namespace media ---- /dev/null -+++ b/media/gpu/vaapi/vaapi_wrapper.h -@@ -0,0 +1,288 @@ -+// Copyright 2013 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+// -+// This file contains an implementation of VaapiWrapper, used by -+// VaapiVideoDecodeAccelerator and VaapiH264Decoder for decode, -+// and VaapiVideoEncodeAccelerator for encode, to interface -+// with libva (VA-API library for hardware video codec). -+ -+#ifndef MEDIA_GPU_VAAPI_VAAPI_WRAPPER_H_ -+#define MEDIA_GPU_VAAPI_VAAPI_WRAPPER_H_ -+ -+#include -+#include -+ -+#include -+#include -+ -+#include -+ -+#include "base/files/file.h" -+#include "base/macros.h" -+#include "base/memory/ref_counted.h" -+#include "base/synchronization/lock.h" -+#include "media/base/video_decoder_config.h" -+#include "media/base/video_frame.h" -+#include "media/gpu/media_gpu_export.h" -+#include "media/gpu/vaapi/va_surface.h" -+#include "media/video/jpeg_decode_accelerator.h" -+#include "media/video/video_decode_accelerator.h" -+#include "media/video/video_encode_accelerator.h" -+#include "ui/gfx/geometry/size.h" -+ -+#if defined(USE_X11) -+#include "ui/gfx/x/x11.h" -+#endif // USE_X11 -+ -+namespace gfx { -+class NativePixmap; -+} -+ -+namespace media { -+ -+// This class handles VA-API calls and ensures proper locking of VA-API calls -+// to libva, the userspace shim to the HW codec driver. libva is not -+// thread-safe, so we have to perform locking ourselves. This class is fully -+// synchronous and its methods can be called from any thread and may wait on -+// the va_lock_ while other, concurrent calls run. -+// -+// This class is responsible for managing VAAPI connection, contexts and state. -+// It is also responsible for managing and freeing VABuffers (not VASurfaces), -+// which are used to queue parameters and slice data to the HW codec, -+// as well as underlying memory for VASurfaces themselves. -+class MEDIA_GPU_EXPORT VaapiWrapper -+ : public base::RefCountedThreadSafe { -+ public: -+ enum CodecMode { -+ kDecode, -+ kEncode, -+ kCodecModeMax, -+ }; -+ -+ // Return an instance of VaapiWrapper initialized for |va_profile| and -+ // |mode|. |report_error_to_uma_cb| will be called independently from -+ // reporting errors to clients via method return values. -+ static scoped_refptr Create( -+ CodecMode mode, -+ VAProfile va_profile, -+ const base::Closure& report_error_to_uma_cb); -+ -+ // Create VaapiWrapper for VideoCodecProfile. It maps VideoCodecProfile -+ // |profile| to VAProfile. -+ // |report_error_to_uma_cb| will be called independently from reporting -+ // errors to clients via method return values. -+ static scoped_refptr CreateForVideoCodec( -+ CodecMode mode, -+ VideoCodecProfile profile, -+ const base::Closure& report_error_to_uma_cb); -+ -+ // Return the supported video encode profiles. -+ static VideoEncodeAccelerator::SupportedProfiles GetSupportedEncodeProfiles(); -+ -+ // Return the supported video decode profiles. -+ static VideoDecodeAccelerator::SupportedProfiles GetSupportedDecodeProfiles(); -+ -+ // Return true when JPEG decode is supported. -+ static bool IsJpegDecodeSupported(); -+ -+ // Return true when JPEG encode is supported. -+ static bool IsJpegEncodeSupported(); -+ -+ // Create |num_surfaces| backing surfaces in driver for VASurfaces of -+ // |va_format|, each of size |size|. Returns true when successful, with the -+ // created IDs in |va_surfaces| to be managed and later wrapped in -+ // VASurfaces. -+ // The client must DestroySurfaces() each time before calling this method -+ // again to free the allocated surfaces first, but is not required to do so -+ // at destruction time, as this will be done automatically from -+ // the destructor. -+ virtual bool CreateSurfaces(unsigned int va_format, -+ const gfx::Size& size, -+ size_t num_surfaces, -+ std::vector* va_surfaces); -+ -+ // Free all memory allocated in CreateSurfaces. -+ virtual void DestroySurfaces(); -+ -+ // Create a VASurface of |va_format|, |size| and using |va_attribs| -+ // attributes. The ownership of the surface is transferred to the -+ // caller. It differs from surfaces created using CreateSurfaces(), -+ // where VaapiWrapper is the owner of the surfaces. -+ scoped_refptr CreateUnownedSurface( -+ unsigned int va_format, -+ const gfx::Size& size, -+ const std::vector& va_attribs); -+ -+ // Create a VASurface for |pixmap|. The ownership of the surface is -+ // transferred to the caller. It differs from surfaces created using -+ // CreateSurfaces(), where VaapiWrapper is the owner of the surfaces. -+ scoped_refptr CreateVASurfaceForPixmap( -+ const scoped_refptr& pixmap); -+ -+ // Submit parameters or slice data of |va_buffer_type|, copying them from -+ // |buffer| of size |size|, into HW codec. The data in |buffer| is no -+ // longer needed and can be freed after this method returns. -+ // Data submitted via this method awaits in the HW codec until -+ // ExecuteAndDestroyPendingBuffers() is called to execute or -+ // DestroyPendingBuffers() is used to cancel a pending job. -+ bool SubmitBuffer(VABufferType va_buffer_type, size_t size, void* buffer); -+ -+ // Submit a VAEncMiscParameterBuffer of given |misc_param_type|, copying its -+ // data from |buffer| of size |size|, into HW codec. The data in |buffer| is -+ // no longer needed and can be freed after this method returns. -+ // Data submitted via this method awaits in the HW codec until -+ // ExecuteAndDestroyPendingBuffers() is called to execute or -+ // DestroyPendingBuffers() is used to cancel a pending job. -+ bool SubmitVAEncMiscParamBuffer(VAEncMiscParameterType misc_param_type, -+ size_t size, -+ void* buffer); -+ -+ // Cancel and destroy all buffers queued to the HW codec via SubmitBuffer(). -+ // Useful when a pending job is to be cancelled (on reset or error). -+ void DestroyPendingBuffers(); -+ -+ // Execute job in hardware on target |va_surface_id| and destroy pending -+ // buffers. Return false if Execute() fails. -+ bool ExecuteAndDestroyPendingBuffers(VASurfaceID va_surface_id); -+ -+#if defined(USE_X11) -+ // Put data from |va_surface_id| into |x_pixmap| of size -+ // |dest_size|, converting/scaling to it. -+ bool PutSurfaceIntoPixmap(VASurfaceID va_surface_id, -+ Pixmap x_pixmap, -+ gfx::Size dest_size); -+#endif // USE_X11 -+ -+ // Get a VAImage from a VASurface |va_surface_id| and map it into memory with -+ // given |format| and |size|. The output is |image| and the mapped memory is -+ // |mem|. If |format| doesn't equal to the internal format, the underlying -+ // implementation will do format conversion if supported. |size| should be -+ // smaller than or equal to the surface. If |size| is smaller, the image will -+ // be cropped. The VAImage should be released using the ReturnVaImage -+ // function. Returns true when successful. -+ bool GetVaImage(VASurfaceID va_surface_id, -+ VAImageFormat* format, -+ const gfx::Size& size, -+ VAImage* image, -+ void** mem); -+ -+ // Release the VAImage (and the associated memory mapping) obtained from -+ // GetVaImage(). -+ void ReturnVaImage(VAImage* image); -+ -+ // Upload contents of |frame| into |va_surface_id| for encode. -+ bool UploadVideoFrameToSurface(const scoped_refptr& frame, -+ VASurfaceID va_surface_id); -+ -+ // Create a buffer of |size| bytes to be used as encode output. -+ bool CreateCodedBuffer(size_t size, VABufferID* buffer_id); -+ -+ // Download the contents of the buffer with given |buffer_id| into a buffer of -+ // size |target_size|, pointed to by |target_ptr|. The number of bytes -+ // downloaded will be returned in |coded_data_size|. |sync_surface_id| will -+ // be used as a sync point, i.e. it will have to become idle before starting -+ // the download. |sync_surface_id| should be the source surface passed -+ // to the encode job. -+ bool DownloadFromCodedBuffer(VABufferID buffer_id, -+ VASurfaceID sync_surface_id, -+ uint8_t* target_ptr, -+ size_t target_size, -+ size_t* coded_data_size); -+ -+ // See DownloadFromCodedBuffer() for details. After downloading, it deletes -+ // the VA buffer with |buffer_id|. -+ bool DownloadAndDestroyCodedBuffer(VABufferID buffer_id, -+ VASurfaceID sync_surface_id, -+ uint8_t* target_ptr, -+ size_t target_size, -+ size_t* coded_data_size); -+ -+ // Destroy all previously-allocated (and not yet destroyed) coded buffers. -+ void DestroyCodedBuffers(); -+ -+ // Blits a VASurface |va_surface_src| into another VASurface -+ // |va_surface_dest| applying pixel format conversion and scaling -+ // if needed. -+ bool BlitSurface(const scoped_refptr& va_surface_src, -+ const scoped_refptr& va_surface_dest); -+ -+ // Initialize static data before sandbox is enabled. -+ static void PreSandboxInitialization(); -+ -+ // Get the created surfaces format. -+ unsigned int va_surface_format() const { return va_surface_format_; } -+ -+ protected: -+ VaapiWrapper(); -+ virtual ~VaapiWrapper(); -+ -+ private: -+ friend class base::RefCountedThreadSafe; -+ -+ bool Initialize(CodecMode mode, VAProfile va_profile); -+ void Deinitialize(); -+ bool VaInitialize(const base::Closure& report_error_to_uma_cb); -+ -+ // Free all memory allocated in CreateSurfaces. -+ void DestroySurfaces_Locked(); -+ // Destroys a |va_surface| created using CreateUnownedSurface. -+ void DestroyUnownedSurface(VASurfaceID va_surface_id); -+ -+ // Initialize the video post processing context with the |size| of -+ // the input pictures to be processed. -+ bool InitializeVpp_Locked(); -+ -+ // Deinitialize the video post processing context. -+ void DeinitializeVpp(); -+ -+ // Execute pending job in hardware and destroy pending buffers. Return false -+ // if vaapi driver refuses to accept parameter or slice buffers submitted -+ // by client, or if execution fails in hardware. -+ bool Execute(VASurfaceID va_surface_id); -+ -+ // Attempt to set render mode to "render to texture.". Failure is non-fatal. -+ void TryToSetVADisplayAttributeToLocalGPU(); -+ -+ // Pointer to VADisplayState's member |va_lock_|. Guaranteed to be valid for -+ // the lifetime of VaapiWrapper. -+ base::Lock* va_lock_; -+ -+ // Allocated ids for VASurfaces. -+ std::vector va_surface_ids_; -+ -+ // VA format of surfaces with va_surface_ids_. -+ unsigned int va_surface_format_; -+ -+ // VA handles. -+ // All valid after successful Initialize() and until Deinitialize(). -+ VADisplay va_display_; -+ VAConfigID va_config_id_; -+ // Created for the current set of va_surface_ids_ in CreateSurfaces() and -+ // valid until DestroySurfaces(). -+ VAContextID va_context_id_; -+ -+ // Data queued up for HW codec, to be committed on next execution. -+ std::vector pending_slice_bufs_; -+ std::vector pending_va_bufs_; -+ -+ // Bitstream buffers for encode. -+ std::set coded_buffers_; -+ -+ // Called to report codec errors to UMA. Errors to clients are reported via -+ // return values from public methods. -+ base::Closure report_error_to_uma_cb_; -+ -+ // VPP (Video Post Processing) context, this is used to convert -+ // pictures used by the decoder to RGBA pictures usable by GL or the -+ // display hardware. -+ VAConfigID va_vpp_config_id_; -+ VAContextID va_vpp_context_id_; -+ VABufferID va_vpp_buffer_id_; -+ -+ DISALLOW_COPY_AND_ASSIGN(VaapiWrapper); -+}; -+ -+} // namespace media -+ -+#endif // MEDIA_GPU_VAAPI_VAAPI_WRAPPER_H_ ---- a/media/gpu/vaapi_jpeg_decode_accelerator.cc -+++ /dev/null -@@ -1,325 +0,0 @@ --// Copyright 2015 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_jpeg_decode_accelerator.h" -- --#include --#include -- --#include --#include -- --#include "base/bind.h" --#include "base/logging.h" --#include "base/metrics/histogram_macros.h" --#include "base/threading/thread_task_runner_handle.h" --#include "base/trace_event/trace_event.h" --#include "gpu/ipc/service/gpu_channel.h" --#include "media/base/video_frame.h" --#include "media/filters/jpeg_parser.h" --#include "media/gpu/shared_memory_region.h" --#include "media/gpu/vaapi/vaapi_picture.h" --#include "third_party/libyuv/include/libyuv.h" -- --#define VLOGF(level) VLOG(level) << __func__ << "(): " --#define DVLOGF(level) DVLOG(level) << __func__ << "(): " -- --namespace media { -- --namespace { --// UMA errors that the VaapiJpegDecodeAccelerator class reports. --enum VAJDADecoderFailure { -- VAAPI_ERROR = 0, -- VAJDA_DECODER_FAILURES_MAX, --}; -- --static void ReportToUMA(VAJDADecoderFailure failure) { -- UMA_HISTOGRAM_ENUMERATION("Media.VAJDA.DecoderFailure", failure, -- VAJDA_DECODER_FAILURES_MAX + 1); --} -- --static unsigned int VaSurfaceFormatForJpeg( -- const JpegFrameHeader& frame_header) { -- // The range of sampling factor is [1, 4]. Pack them into integer to make the -- // matching code simpler. For example, 0x211 means the sampling factor are 2, -- // 1, 1 for 3 components. -- unsigned int h = 0, v = 0; -- for (int i = 0; i < frame_header.num_components; i++) { -- DCHECK_LE(frame_header.components[i].horizontal_sampling_factor, 4); -- DCHECK_LE(frame_header.components[i].vertical_sampling_factor, 4); -- h = h << 4 | frame_header.components[i].horizontal_sampling_factor; -- v = v << 4 | frame_header.components[i].vertical_sampling_factor; -- } -- -- switch (frame_header.num_components) { -- case 1: // Grey image -- return VA_RT_FORMAT_YUV400; -- -- case 3: // Y Cb Cr color image -- // See https://en.wikipedia.org/wiki/Chroma_subsampling for the -- // definition of these numbers. -- if (h == 0x211 && v == 0x211) -- return VA_RT_FORMAT_YUV420; -- -- if (h == 0x211 && v == 0x111) -- return VA_RT_FORMAT_YUV422; -- -- if (h == 0x111 && v == 0x111) -- return VA_RT_FORMAT_YUV444; -- -- if (h == 0x411 && v == 0x111) -- return VA_RT_FORMAT_YUV411; -- } -- VLOGF(1) << "Unsupported sampling factor: num_components=" -- << frame_header.num_components << ", h=" << std::hex << h -- << ", v=" << v; -- -- return 0; --} -- --} // namespace -- --VaapiJpegDecodeAccelerator::DecodeRequest::DecodeRequest( -- int32_t bitstream_buffer_id, -- std::unique_ptr shm, -- const scoped_refptr& video_frame) -- : bitstream_buffer_id(bitstream_buffer_id), -- shm(std::move(shm)), -- video_frame(video_frame) {} -- --VaapiJpegDecodeAccelerator::DecodeRequest::~DecodeRequest() {} -- --void VaapiJpegDecodeAccelerator::NotifyError(int32_t bitstream_buffer_id, -- Error error) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- VLOGF(1) << "Notifying of error " << error; -- DCHECK(client_); -- client_->NotifyError(bitstream_buffer_id, error); --} -- --void VaapiJpegDecodeAccelerator::NotifyErrorFromDecoderThread( -- int32_t bitstream_buffer_id, -- Error error) { -- DCHECK(decoder_task_runner_->BelongsToCurrentThread()); -- task_runner_->PostTask(FROM_HERE, -- base::Bind(&VaapiJpegDecodeAccelerator::NotifyError, -- weak_this_, bitstream_buffer_id, error)); --} -- --void VaapiJpegDecodeAccelerator::VideoFrameReady(int32_t bitstream_buffer_id) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- client_->VideoFrameReady(bitstream_buffer_id); --} -- --VaapiJpegDecodeAccelerator::VaapiJpegDecodeAccelerator( -- const scoped_refptr& io_task_runner) -- : task_runner_(base::ThreadTaskRunnerHandle::Get()), -- io_task_runner_(io_task_runner), -- decoder_thread_("VaapiJpegDecoderThread"), -- va_surface_id_(VA_INVALID_SURFACE), -- weak_this_factory_(this) { -- weak_this_ = weak_this_factory_.GetWeakPtr(); --} -- --VaapiJpegDecodeAccelerator::~VaapiJpegDecodeAccelerator() { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- VLOGF(2) << "Destroying VaapiJpegDecodeAccelerator"; -- -- weak_this_factory_.InvalidateWeakPtrs(); -- decoder_thread_.Stop(); --} -- --bool VaapiJpegDecodeAccelerator::Initialize(Client* client) { -- VLOGF(2); -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- client_ = client; -- -- vaapi_wrapper_ = -- VaapiWrapper::Create(VaapiWrapper::kDecode, VAProfileJPEGBaseline, -- base::Bind(&ReportToUMA, VAAPI_ERROR)); -- -- if (!vaapi_wrapper_.get()) { -- VLOGF(1) << "Failed initializing VAAPI"; -- return false; -- } -- -- if (!decoder_thread_.Start()) { -- VLOGF(1) << "Failed to start decoding thread."; -- return false; -- } -- decoder_task_runner_ = decoder_thread_.task_runner(); -- -- return true; --} -- --bool VaapiJpegDecodeAccelerator::OutputPicture( -- VASurfaceID va_surface_id, -- int32_t input_buffer_id, -- const scoped_refptr& video_frame) { -- DCHECK(decoder_task_runner_->BelongsToCurrentThread()); -- -- TRACE_EVENT1("jpeg", "VaapiJpegDecodeAccelerator::OutputPicture", -- "input_buffer_id", input_buffer_id); -- -- DVLOGF(4) << "Outputting VASurface " << va_surface_id -- << " into video_frame associated with input buffer id " -- << input_buffer_id; -- -- VAImage image; -- VAImageFormat format; -- const uint32_t kI420Fourcc = VA_FOURCC('I', '4', '2', '0'); -- memset(&image, 0, sizeof(image)); -- memset(&format, 0, sizeof(format)); -- format.fourcc = kI420Fourcc; -- format.byte_order = VA_LSB_FIRST; -- format.bits_per_pixel = 12; // 12 for I420 -- -- uint8_t* mem = nullptr; -- gfx::Size coded_size = video_frame->coded_size(); -- if (!vaapi_wrapper_->GetVaImage(va_surface_id, &format, coded_size, &image, -- reinterpret_cast(&mem))) { -- VLOGF(1) << "Cannot get VAImage"; -- return false; -- } -- -- // Copy image content from VAImage to VideoFrame. -- // The component order of VAImage I420 are Y, U, and V. -- DCHECK_EQ(image.num_planes, 3u); -- DCHECK_GE(image.width, coded_size.width()); -- DCHECK_GE(image.height, coded_size.height()); -- const uint8_t* src_y = mem + image.offsets[0]; -- const uint8_t* src_u = mem + image.offsets[1]; -- const uint8_t* src_v = mem + image.offsets[2]; -- size_t src_y_stride = image.pitches[0]; -- size_t src_u_stride = image.pitches[1]; -- size_t src_v_stride = image.pitches[2]; -- uint8_t* dst_y = video_frame->data(VideoFrame::kYPlane); -- uint8_t* dst_u = video_frame->data(VideoFrame::kUPlane); -- uint8_t* dst_v = video_frame->data(VideoFrame::kVPlane); -- size_t dst_y_stride = video_frame->stride(VideoFrame::kYPlane); -- size_t dst_u_stride = video_frame->stride(VideoFrame::kUPlane); -- size_t dst_v_stride = video_frame->stride(VideoFrame::kVPlane); -- -- if (libyuv::I420Copy(src_y, src_y_stride, // Y -- src_u, src_u_stride, // U -- src_v, src_v_stride, // V -- dst_y, dst_y_stride, // Y -- dst_u, dst_u_stride, // U -- dst_v, dst_v_stride, // V -- coded_size.width(), coded_size.height())) { -- VLOGF(1) << "I420Copy failed"; -- return false; -- } -- -- vaapi_wrapper_->ReturnVaImage(&image); -- -- task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::VideoFrameReady, -- weak_this_, input_buffer_id)); -- -- return true; --} -- --void VaapiJpegDecodeAccelerator::DecodeTask( -- const std::unique_ptr& request) { -- DVLOGF(4); -- DCHECK(decoder_task_runner_->BelongsToCurrentThread()); -- TRACE_EVENT0("jpeg", "DecodeTask"); -- -- JpegParseResult parse_result; -- if (!ParseJpegPicture( -- reinterpret_cast(request->shm->memory()), -- request->shm->size(), &parse_result)) { -- VLOGF(1) << "ParseJpegPicture failed"; -- NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -- PARSE_JPEG_FAILED); -- return; -- } -- -- unsigned int new_va_rt_format = -- VaSurfaceFormatForJpeg(parse_result.frame_header); -- if (!new_va_rt_format) { -- VLOGF(1) << "Unsupported subsampling"; -- NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -- UNSUPPORTED_JPEG); -- return; -- } -- -- // Reuse VASurface if size doesn't change. -- gfx::Size new_coded_size(parse_result.frame_header.coded_width, -- parse_result.frame_header.coded_height); -- if (new_coded_size != coded_size_ || va_surface_id_ == VA_INVALID_SURFACE || -- new_va_rt_format != va_rt_format_) { -- vaapi_wrapper_->DestroySurfaces(); -- va_surface_id_ = VA_INVALID_SURFACE; -- va_rt_format_ = new_va_rt_format; -- -- std::vector va_surfaces; -- if (!vaapi_wrapper_->CreateSurfaces(va_rt_format_, new_coded_size, 1, -- &va_surfaces)) { -- VLOGF(1) << "Create VA surface failed"; -- NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -- PLATFORM_FAILURE); -- return; -- } -- va_surface_id_ = va_surfaces[0]; -- coded_size_ = new_coded_size; -- } -- -- if (!VaapiJpegDecoder::Decode(vaapi_wrapper_.get(), parse_result, -- va_surface_id_)) { -- VLOGF(1) << "Decode JPEG failed"; -- NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -- PLATFORM_FAILURE); -- return; -- } -- -- if (!OutputPicture(va_surface_id_, request->bitstream_buffer_id, -- request->video_frame)) { -- VLOGF(1) << "Output picture failed"; -- NotifyErrorFromDecoderThread(request->bitstream_buffer_id, -- PLATFORM_FAILURE); -- return; -- } --} -- --void VaapiJpegDecodeAccelerator::Decode( -- const BitstreamBuffer& bitstream_buffer, -- const scoped_refptr& video_frame) { -- DCHECK(io_task_runner_->BelongsToCurrentThread()); -- TRACE_EVENT1("jpeg", "Decode", "input_id", bitstream_buffer.id()); -- -- DVLOGF(4) << "Mapping new input buffer id: " << bitstream_buffer.id() -- << " size: " << bitstream_buffer.size(); -- -- // SharedMemoryRegion will take over the |bitstream_buffer.handle()|. -- std::unique_ptr shm( -- new SharedMemoryRegion(bitstream_buffer, true)); -- -- if (bitstream_buffer.id() < 0) { -- VLOGF(1) << "Invalid bitstream_buffer, id: " << bitstream_buffer.id(); -- NotifyErrorFromDecoderThread(bitstream_buffer.id(), INVALID_ARGUMENT); -- return; -- } -- -- if (!shm->Map()) { -- VLOGF(1) << "Failed to map input buffer"; -- NotifyErrorFromDecoderThread(bitstream_buffer.id(), UNREADABLE_INPUT); -- return; -- } -- -- std::unique_ptr request( -- new DecodeRequest(bitstream_buffer.id(), std::move(shm), video_frame)); -- -- decoder_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask, -- base::Unretained(this), base::Passed(&request))); --} -- --bool VaapiJpegDecodeAccelerator::IsSupported() { -- return VaapiWrapper::IsJpegDecodeSupported(); --} -- --} // namespace media ---- a/media/gpu/vaapi_jpeg_decode_accelerator.h -+++ /dev/null -@@ -1,121 +0,0 @@ --// Copyright 2015 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#ifndef MEDIA_GPU_VAAPI_JPEG_DECODE_ACCELERATOR_H_ --#define MEDIA_GPU_VAAPI_JPEG_DECODE_ACCELERATOR_H_ -- --#include -- --#include -- --#include "base/macros.h" --#include "base/memory/linked_ptr.h" --#include "base/memory/weak_ptr.h" --#include "base/single_thread_task_runner.h" --#include "base/synchronization/lock.h" --#include "base/threading/thread.h" --#include "media/base/bitstream_buffer.h" --#include "media/gpu/media_gpu_export.h" --#include "media/gpu/shared_memory_region.h" --#include "media/gpu/vaapi_jpeg_decoder.h" --#include "media/gpu/vaapi_wrapper.h" --#include "media/video/jpeg_decode_accelerator.h" -- --namespace media { -- --// Class to provide JPEG decode acceleration for Intel systems with hardware --// support for it, and on which libva is available. --// Decoding tasks are performed in a separate decoding thread. --// --// Threading/life-cycle: this object is created & destroyed on the GPU --// ChildThread. A few methods on it are called on the decoder thread which is --// stopped during |this->Destroy()|, so any tasks posted to the decoder thread --// can assume |*this| is still alive. See |weak_this_| below for more details. --class MEDIA_GPU_EXPORT VaapiJpegDecodeAccelerator -- : public JpegDecodeAccelerator { -- public: -- VaapiJpegDecodeAccelerator( -- const scoped_refptr& io_task_runner); -- ~VaapiJpegDecodeAccelerator() override; -- -- // JpegDecodeAccelerator implementation. -- bool Initialize(JpegDecodeAccelerator::Client* client) override; -- void Decode(const BitstreamBuffer& bitstream_buffer, -- const scoped_refptr& video_frame) override; -- bool IsSupported() override; -- -- private: -- // An input buffer and the corresponding output video frame awaiting -- // consumption, provided by the client. -- struct DecodeRequest { -- DecodeRequest(int32_t bitstream_buffer_id, -- std::unique_ptr shm, -- const scoped_refptr& video_frame); -- ~DecodeRequest(); -- -- int32_t bitstream_buffer_id; -- std::unique_ptr shm; -- scoped_refptr video_frame; -- }; -- -- // Notifies the client that an error has occurred and decoding cannot -- // continue. -- void NotifyError(int32_t bitstream_buffer_id, Error error); -- void NotifyErrorFromDecoderThread(int32_t bitstream_buffer_id, Error error); -- void VideoFrameReady(int32_t bitstream_buffer_id); -- -- // Processes one decode |request|. -- void DecodeTask(const std::unique_ptr& request); -- -- // Puts contents of |va_surface| into given |video_frame|, releases the -- // surface and passes the |input_buffer_id| of the resulting picture to -- // client for output. -- bool OutputPicture(VASurfaceID va_surface_id, -- int32_t input_buffer_id, -- const scoped_refptr& video_frame); -- -- // ChildThread's task runner. -- scoped_refptr task_runner_; -- -- // GPU IO task runner. -- scoped_refptr io_task_runner_; -- -- // The client of this class. -- Client* client_; -- -- // WeakPtr<> pointing to |this| for use in posting tasks from the decoder -- // thread back to the ChildThread. Because the decoder thread is a member of -- // this class, any task running on the decoder thread is guaranteed that this -- // object is still alive. As a result, tasks posted from ChildThread to -- // decoder thread should use base::Unretained(this), and tasks posted from the -- // decoder thread to the ChildThread should use |weak_this_|. -- base::WeakPtr weak_this_; -- -- scoped_refptr vaapi_wrapper_; -- -- // Comes after vaapi_wrapper_ to ensure its destructor is executed before -- // |vaapi_wrapper_| is destroyed. -- std::unique_ptr decoder_; -- base::Thread decoder_thread_; -- // Use this to post tasks to |decoder_thread_| instead of -- // |decoder_thread_.task_runner()| because the latter will be NULL once -- // |decoder_thread_.Stop()| returns. -- scoped_refptr decoder_task_runner_; -- -- // The current VA surface for decoding. -- VASurfaceID va_surface_id_; -- // The coded size associated with |va_surface_id_|. -- gfx::Size coded_size_; -- // The VA RT format associated with |va_surface_id_|. -- unsigned int va_rt_format_; -- -- // The WeakPtrFactory for |weak_this_|. -- base::WeakPtrFactory weak_this_factory_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiJpegDecodeAccelerator); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VAAPI_JPEG_DECODE_ACCELERATOR_H_ ---- a/media/gpu/vaapi_jpeg_decoder.cc -+++ /dev/null -@@ -1,229 +0,0 @@ --// Copyright 2015 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_jpeg_decoder.h" -- --#include --#include -- --#include "base/logging.h" --#include "base/macros.h" --#include "media/filters/jpeg_parser.h" -- --namespace media { -- --// VAAPI only support subset of JPEG profiles. This function determines a given --// parsed JPEG result is supported or not. --static bool IsVaapiSupportedJpeg(const JpegParseResult& jpeg) { -- if (jpeg.frame_header.visible_width < 1 || -- jpeg.frame_header.visible_height < 1) { -- DLOG(ERROR) << "width(" << jpeg.frame_header.visible_width -- << ") and height(" << jpeg.frame_header.visible_height -- << ") should be at least 1"; -- return false; -- } -- -- // Size 64k*64k is the maximum in the JPEG standard. VAAPI doesn't support -- // resolutions larger than 16k*16k. -- const int kMaxDimension = 16384; -- if (jpeg.frame_header.coded_width > kMaxDimension || -- jpeg.frame_header.coded_height > kMaxDimension) { -- DLOG(ERROR) << "VAAPI doesn't support size(" -- << jpeg.frame_header.coded_width << "*" -- << jpeg.frame_header.coded_height << ") larger than " -- << kMaxDimension << "*" << kMaxDimension; -- return false; -- } -- -- if (jpeg.frame_header.num_components != 3) { -- DLOG(ERROR) << "VAAPI doesn't support num_components(" -- << static_cast(jpeg.frame_header.num_components) -- << ") != 3"; -- return false; -- } -- -- if (jpeg.frame_header.components[0].horizontal_sampling_factor < -- jpeg.frame_header.components[1].horizontal_sampling_factor || -- jpeg.frame_header.components[0].horizontal_sampling_factor < -- jpeg.frame_header.components[2].horizontal_sampling_factor) { -- DLOG(ERROR) << "VAAPI doesn't supports horizontal sampling factor of Y" -- << " smaller than Cb and Cr"; -- return false; -- } -- -- if (jpeg.frame_header.components[0].vertical_sampling_factor < -- jpeg.frame_header.components[1].vertical_sampling_factor || -- jpeg.frame_header.components[0].vertical_sampling_factor < -- jpeg.frame_header.components[2].vertical_sampling_factor) { -- DLOG(ERROR) << "VAAPI doesn't supports vertical sampling factor of Y" -- << " smaller than Cb and Cr"; -- return false; -- } -- -- return true; --} -- --static void FillPictureParameters( -- const JpegFrameHeader& frame_header, -- VAPictureParameterBufferJPEGBaseline* pic_param) { -- memset(pic_param, 0, sizeof(*pic_param)); -- pic_param->picture_width = frame_header.coded_width; -- pic_param->picture_height = frame_header.coded_height; -- pic_param->num_components = frame_header.num_components; -- -- for (int i = 0; i < pic_param->num_components; i++) { -- pic_param->components[i].component_id = frame_header.components[i].id; -- pic_param->components[i].h_sampling_factor = -- frame_header.components[i].horizontal_sampling_factor; -- pic_param->components[i].v_sampling_factor = -- frame_header.components[i].vertical_sampling_factor; -- pic_param->components[i].quantiser_table_selector = -- frame_header.components[i].quantization_table_selector; -- } --} -- --static void FillIQMatrix(const JpegQuantizationTable* q_table, -- VAIQMatrixBufferJPEGBaseline* iq_matrix) { -- memset(iq_matrix, 0, sizeof(*iq_matrix)); -- static_assert(kJpegMaxQuantizationTableNum == -- arraysize(iq_matrix->load_quantiser_table), -- "max number of quantization table mismatched"); -- for (size_t i = 0; i < kJpegMaxQuantizationTableNum; i++) { -- if (!q_table[i].valid) -- continue; -- iq_matrix->load_quantiser_table[i] = 1; -- static_assert( -- arraysize(iq_matrix->quantiser_table[i]) == arraysize(q_table[i].value), -- "number of quantization entries mismatched"); -- for (size_t j = 0; j < arraysize(q_table[i].value); j++) -- iq_matrix->quantiser_table[i][j] = q_table[i].value[j]; -- } --} -- --static void FillHuffmanTable(const JpegHuffmanTable* dc_table, -- const JpegHuffmanTable* ac_table, -- VAHuffmanTableBufferJPEGBaseline* huffman_table) { -- memset(huffman_table, 0, sizeof(*huffman_table)); -- // Use default huffman tables if not specified in header. -- bool has_huffman_table = false; -- for (size_t i = 0; i < kJpegMaxHuffmanTableNumBaseline; i++) { -- if (dc_table[i].valid || ac_table[i].valid) { -- has_huffman_table = true; -- break; -- } -- } -- if (!has_huffman_table) { -- dc_table = kDefaultDcTable; -- ac_table = kDefaultAcTable; -- } -- -- static_assert(kJpegMaxHuffmanTableNumBaseline == -- arraysize(huffman_table->load_huffman_table), -- "max number of huffman table mismatched"); -- static_assert(sizeof(huffman_table->huffman_table[0].num_dc_codes) == -- sizeof(dc_table[0].code_length), -- "size of huffman table code length mismatch"); -- static_assert(sizeof(huffman_table->huffman_table[0].dc_values[0]) == -- sizeof(dc_table[0].code_value[0]), -- "size of huffman table code value mismatch"); -- for (size_t i = 0; i < kJpegMaxHuffmanTableNumBaseline; i++) { -- if (!dc_table[i].valid || !ac_table[i].valid) -- continue; -- huffman_table->load_huffman_table[i] = 1; -- -- memcpy(huffman_table->huffman_table[i].num_dc_codes, -- dc_table[i].code_length, -- sizeof(huffman_table->huffman_table[i].num_dc_codes)); -- memcpy(huffman_table->huffman_table[i].dc_values, dc_table[i].code_value, -- sizeof(huffman_table->huffman_table[i].dc_values)); -- memcpy(huffman_table->huffman_table[i].num_ac_codes, -- ac_table[i].code_length, -- sizeof(huffman_table->huffman_table[i].num_ac_codes)); -- memcpy(huffman_table->huffman_table[i].ac_values, ac_table[i].code_value, -- sizeof(huffman_table->huffman_table[i].ac_values)); -- } --} -- --static void FillSliceParameters( -- const JpegParseResult& parse_result, -- VASliceParameterBufferJPEGBaseline* slice_param) { -- memset(slice_param, 0, sizeof(*slice_param)); -- slice_param->slice_data_size = parse_result.data_size; -- slice_param->slice_data_offset = 0; -- slice_param->slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -- slice_param->slice_horizontal_position = 0; -- slice_param->slice_vertical_position = 0; -- slice_param->num_components = parse_result.scan.num_components; -- for (int i = 0; i < slice_param->num_components; i++) { -- slice_param->components[i].component_selector = -- parse_result.scan.components[i].component_selector; -- slice_param->components[i].dc_table_selector = -- parse_result.scan.components[i].dc_selector; -- slice_param->components[i].ac_table_selector = -- parse_result.scan.components[i].ac_selector; -- } -- slice_param->restart_interval = parse_result.restart_interval; -- -- // Cast to int to prevent overflow. -- int max_h_factor = -- parse_result.frame_header.components[0].horizontal_sampling_factor; -- int max_v_factor = -- parse_result.frame_header.components[0].vertical_sampling_factor; -- int mcu_cols = parse_result.frame_header.coded_width / (max_h_factor * 8); -- DCHECK_GT(mcu_cols, 0); -- int mcu_rows = parse_result.frame_header.coded_height / (max_v_factor * 8); -- DCHECK_GT(mcu_rows, 0); -- slice_param->num_mcus = mcu_rows * mcu_cols; --} -- --// static --bool VaapiJpegDecoder::Decode(VaapiWrapper* vaapi_wrapper, -- const JpegParseResult& parse_result, -- VASurfaceID va_surface) { -- DCHECK_NE(va_surface, VA_INVALID_SURFACE); -- if (!IsVaapiSupportedJpeg(parse_result)) -- return false; -- -- // Set picture parameters. -- VAPictureParameterBufferJPEGBaseline pic_param; -- FillPictureParameters(parse_result.frame_header, &pic_param); -- if (!vaapi_wrapper->SubmitBuffer(VAPictureParameterBufferType, -- sizeof(pic_param), &pic_param)) -- return false; -- -- // Set quantization table. -- VAIQMatrixBufferJPEGBaseline iq_matrix; -- FillIQMatrix(parse_result.q_table, &iq_matrix); -- if (!vaapi_wrapper->SubmitBuffer(VAIQMatrixBufferType, sizeof(iq_matrix), -- &iq_matrix)) -- return false; -- -- // Set huffman table. -- VAHuffmanTableBufferJPEGBaseline huffman_table; -- FillHuffmanTable(parse_result.dc_table, parse_result.ac_table, -- &huffman_table); -- if (!vaapi_wrapper->SubmitBuffer(VAHuffmanTableBufferType, -- sizeof(huffman_table), &huffman_table)) -- return false; -- -- // Set slice parameters. -- VASliceParameterBufferJPEGBaseline slice_param; -- FillSliceParameters(parse_result, &slice_param); -- if (!vaapi_wrapper->SubmitBuffer(VASliceParameterBufferType, -- sizeof(slice_param), &slice_param)) -- return false; -- -- // Set scan data. -- if (!vaapi_wrapper->SubmitBuffer(VASliceDataBufferType, -- parse_result.data_size, -- const_cast(parse_result.data))) -- return false; -- -- if (!vaapi_wrapper->ExecuteAndDestroyPendingBuffers(va_surface)) -- return false; -- -- return true; --} -- --} // namespace media ---- a/media/gpu/vaapi_jpeg_decoder.h -+++ /dev/null -@@ -1,43 +0,0 @@ --// Copyright 2015 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#ifndef MEDIA_GPU_VAAPI_JPEG_DECODER_H_ --#define MEDIA_GPU_VAAPI_JPEG_DECODER_H_ -- --#include "base/macros.h" --#include "media/gpu/media_gpu_export.h" --#include "media/gpu/vaapi_wrapper.h" -- --namespace media { -- --struct JpegParseResult; -- --// A JPEG decoder that utilizes VA-API hardware video decode acceleration on --// Intel systems. Provides functionality to allow plugging VAAPI HW --// acceleration into the JpegDecodeAccelerator framework. --// --// Clients of this class are expected to manage VA surfaces created via --// VaapiWrapper, parse JPEG picture via ParseJpegPicture, and then pass --// them to this class. --class MEDIA_GPU_EXPORT VaapiJpegDecoder { -- public: -- // Decode a JPEG picture. It will fill VA-API parameters and call -- // corresponding VA-API methods according to parsed JPEG result -- // |parse_result|. Decoded data will be outputted to the given |va_surface|. -- // Return false on failure. -- // |vaapi_wrapper| should be initialized in kDecode mode with -- // VAProfileJPEGBaseline profile. -- // |va_surface| should be created with size at least as large as the picture -- // size. -- static bool Decode(VaapiWrapper* vaapi_wrapper, -- const JpegParseResult& parse_result, -- VASurfaceID va_surface); -- -- private: -- DISALLOW_IMPLICIT_CONSTRUCTORS(VaapiJpegDecoder); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VAAPI_JPEG_DECODER_H_ ---- a/media/gpu/vaapi_jpeg_decoder_unittest.cc -+++ /dev/null -@@ -1,139 +0,0 @@ --// Copyright 2015 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include --#include -- --#include -- --// This has to be included first. --// See http://code.google.com/p/googletest/issues/detail?id=371 --#include "testing/gtest/include/gtest/gtest.h" -- --#include "base/at_exit.h" --#include "base/bind.h" --#include "base/files/file_util.h" --#include "base/logging.h" --#include "base/md5.h" --#include "base/path_service.h" --#include "base/strings/string_piece.h" --#include "media/base/test_data_util.h" --#include "media/base/video_frame.h" --#include "media/filters/jpeg_parser.h" --#include "media/gpu/vaapi_jpeg_decoder.h" -- --namespace media { --namespace { -- --const char* kTestFilename = "pixel-1280x720.jpg"; --const char* kExpectedMd5Sum = "6e9e1716073c9a9a1282e3f0e0dab743"; -- --void LogOnError() { -- LOG(FATAL) << "Oh noes! Decoder failed"; --} -- --class VaapiJpegDecoderTest : public ::testing::Test { -- protected: -- VaapiJpegDecoderTest() {} -- -- void SetUp() override { -- base::Closure report_error_cb = base::Bind(&LogOnError); -- wrapper_ = VaapiWrapper::Create(VaapiWrapper::kDecode, -- VAProfileJPEGBaseline, report_error_cb); -- ASSERT_TRUE(wrapper_); -- -- base::FilePath input_file = GetTestDataFilePath(kTestFilename); -- -- ASSERT_TRUE(base::ReadFileToString(input_file, &jpeg_data_)) -- << "failed to read input data from " << input_file.value(); -- } -- -- void TearDown() override { wrapper_ = nullptr; } -- -- bool VerifyDecode(const JpegParseResult& parse_result, -- const std::string& md5sum); -- -- protected: -- scoped_refptr wrapper_; -- std::string jpeg_data_; --}; -- --bool VaapiJpegDecoderTest::VerifyDecode(const JpegParseResult& parse_result, -- const std::string& expected_md5sum) { -- gfx::Size size(parse_result.frame_header.coded_width, -- parse_result.frame_header.coded_height); -- -- std::vector va_surfaces; -- if (!wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, size, 1, &va_surfaces)) -- return false; -- -- if (!VaapiJpegDecoder::Decode(wrapper_.get(), parse_result, va_surfaces[0])) { -- LOG(ERROR) << "Decode failed"; -- return false; -- } -- -- VAImage image; -- VAImageFormat format; -- const uint32_t kI420Fourcc = VA_FOURCC('I', '4', '2', '0'); -- memset(&image, 0, sizeof(image)); -- memset(&format, 0, sizeof(format)); -- format.fourcc = kI420Fourcc; -- format.byte_order = VA_LSB_FIRST; -- format.bits_per_pixel = 12; // 12 for I420 -- -- void* mem; -- if (!wrapper_->GetVaImage(va_surfaces[0], &format, size, &image, &mem)) { -- LOG(ERROR) << "Cannot get VAImage"; -- return false; -- } -- EXPECT_EQ(kI420Fourcc, image.format.fourcc); -- -- base::StringPiece result(reinterpret_cast(mem), -- VideoFrame::AllocationSize(PIXEL_FORMAT_I420, size)); -- EXPECT_EQ(expected_md5sum, base::MD5String(result)); -- -- wrapper_->ReturnVaImage(&image); -- -- return true; --} -- --TEST_F(VaapiJpegDecoderTest, DecodeSuccess) { -- JpegParseResult parse_result; -- ASSERT_TRUE( -- ParseJpegPicture(reinterpret_cast(jpeg_data_.data()), -- jpeg_data_.size(), &parse_result)); -- -- EXPECT_TRUE(VerifyDecode(parse_result, kExpectedMd5Sum)); --} -- --TEST_F(VaapiJpegDecoderTest, DecodeFail) { -- JpegParseResult parse_result; -- ASSERT_TRUE( -- ParseJpegPicture(reinterpret_cast(jpeg_data_.data()), -- jpeg_data_.size(), &parse_result)); -- -- // Not supported by VAAPI. -- parse_result.frame_header.num_components = 1; -- parse_result.scan.num_components = 1; -- -- gfx::Size size(parse_result.frame_header.coded_width, -- parse_result.frame_header.coded_height); -- -- std::vector va_surfaces; -- ASSERT_TRUE( -- wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, size, 1, &va_surfaces)); -- -- EXPECT_FALSE( -- VaapiJpegDecoder::Decode(wrapper_.get(), parse_result, va_surfaces[0])); --} -- --} // namespace --} // namespace media -- --int main(int argc, char** argv) { -- testing::InitGoogleTest(&argc, argv); -- base::AtExitManager exit_manager; -- media::VaapiWrapper::PreSandboxInitialization(); -- return RUN_ALL_TESTS(); --} ---- a/media/gpu/vaapi_jpeg_encode_accelerator.cc -+++ /dev/null -@@ -1,268 +0,0 @@ --// Copyright 2017 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_jpeg_encode_accelerator.h" -- --#include -- --#include --#include -- --#include "base/bind.h" --#include "base/logging.h" --#include "base/metrics/histogram_macros.h" --#include "base/sequence_checker.h" --#include "base/task_scheduler/post_task.h" --#include "base/threading/thread_task_runner_handle.h" --#include "base/trace_event/trace_event.h" --#include "media/base/bind_to_current_loop.h" --#include "media/base/video_frame.h" --#include "media/gpu/vaapi_jpeg_encoder.h" -- --namespace media { -- --namespace { -- --// UMA results that the VaapiJpegEncodeAccelerator class reports. --// These values are persisted to logs, and should therefore never be renumbered --// nor reused. --enum VAJEAEncoderResult { -- VAAPI_SUCCESS = 0, -- VAAPI_ERROR, -- VAJEA_ENCODER_RESULT_MAX = VAAPI_ERROR, --}; -- --static void ReportToUMA(VAJEAEncoderResult result) { -- UMA_HISTOGRAM_ENUMERATION("Media.VAJEA.EncoderResult", result, -- VAJEAEncoderResult::VAJEA_ENCODER_RESULT_MAX + 1); --} --} // namespace -- --VaapiJpegEncodeAccelerator::EncodeRequest::EncodeRequest( -- scoped_refptr video_frame, -- std::unique_ptr shm, -- int quality) -- : video_frame(std::move(video_frame)), -- shm(std::move(shm)), -- quality(quality) {} -- --VaapiJpegEncodeAccelerator::EncodeRequest::~EncodeRequest() {} -- --class VaapiJpegEncodeAccelerator::Encoder { -- public: -- Encoder(scoped_refptr vaapi_wrapper, -- base::RepeatingCallback video_frame_ready_cb, -- base::RepeatingCallback notify_error_cb); -- ~Encoder(); -- -- // Processes one encode |request|. -- void EncodeTask(std::unique_ptr request); -- -- private: -- // |cached_output_buffer_id_| is the last allocated VABuffer during -- // EncodeTask() and |cached_output_buffer_size_| is the size of it. -- // If the next call to EncodeTask() does not require a buffer bigger than -- // |cached_output_buffer_size_|, |cached_output_buffer_id_| will be reused. -- size_t cached_output_buffer_size_; -- VABufferID cached_output_buffer_id_; -- -- std::unique_ptr jpeg_encoder_; -- scoped_refptr vaapi_wrapper_; -- -- base::RepeatingCallback video_frame_ready_cb_; -- base::RepeatingCallback notify_error_cb_; -- -- SEQUENCE_CHECKER(sequence_checker_); -- -- DISALLOW_COPY_AND_ASSIGN(Encoder); --}; -- --VaapiJpegEncodeAccelerator::Encoder::Encoder( -- scoped_refptr vaapi_wrapper, -- base::RepeatingCallback video_frame_ready_cb, -- base::RepeatingCallback notify_error_cb) -- : cached_output_buffer_size_(0), -- jpeg_encoder_(new VaapiJpegEncoder(vaapi_wrapper)), -- vaapi_wrapper_(std::move(vaapi_wrapper)), -- video_frame_ready_cb_(std::move(video_frame_ready_cb)), -- notify_error_cb_(std::move(notify_error_cb)) { -- DETACH_FROM_SEQUENCE(sequence_checker_); --} -- --VaapiJpegEncodeAccelerator::Encoder::~Encoder() { -- DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); --} -- --void VaapiJpegEncodeAccelerator::Encoder::EncodeTask( -- std::unique_ptr request) { -- TRACE_EVENT0("jpeg", "EncodeTask"); -- DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -- -- const int video_frame_id = request->video_frame->unique_id(); -- gfx::Size input_size = request->video_frame->coded_size(); -- std::vector va_surfaces; -- if (!vaapi_wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, input_size, 1, -- &va_surfaces)) { -- VLOG(1) << "Failed to create VA surface"; -- notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -- return; -- } -- VASurfaceID va_surface_id = va_surfaces[0]; -- -- if (!vaapi_wrapper_->UploadVideoFrameToSurface(request->video_frame, -- va_surface_id)) { -- VLOG(1) << "Failed to upload video frame to VA surface"; -- notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -- return; -- } -- -- // Create output buffer for encoding result. -- size_t max_coded_buffer_size = -- VaapiJpegEncoder::GetMaxCodedBufferSize(input_size); -- if (max_coded_buffer_size > cached_output_buffer_size_) { -- vaapi_wrapper_->DestroyCodedBuffers(); -- cached_output_buffer_size_ = 0; -- -- VABufferID output_buffer_id; -- if (!vaapi_wrapper_->CreateCodedBuffer(max_coded_buffer_size, -- &output_buffer_id)) { -- VLOG(1) << "Failed to create VA buffer for encoding output"; -- notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -- return; -- } -- cached_output_buffer_size_ = max_coded_buffer_size; -- cached_output_buffer_id_ = output_buffer_id; -- } -- -- if (!jpeg_encoder_->Encode(input_size, request->quality, va_surface_id, -- cached_output_buffer_id_)) { -- VLOG(1) << "Encode JPEG failed"; -- notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -- return; -- } -- -- // Get the encoded output. DownloadFromCodedBuffer() is a blocking call. It -- // would wait until encoding is finished. -- size_t encoded_size = 0; -- if (!vaapi_wrapper_->DownloadFromCodedBuffer( -- cached_output_buffer_id_, va_surface_id, -- static_cast(request->shm->memory()), request->shm->size(), -- &encoded_size)) { -- VLOG(1) << "Failed to retrieve output image from VA coded buffer"; -- notify_error_cb_.Run(video_frame_id, PLATFORM_FAILURE); -- } -- -- video_frame_ready_cb_.Run(request->video_frame->unique_id(), encoded_size); --} -- --VaapiJpegEncodeAccelerator::VaapiJpegEncodeAccelerator( -- scoped_refptr io_task_runner) -- : task_runner_(base::ThreadTaskRunnerHandle::Get()), -- io_task_runner_(std::move(io_task_runner)), -- weak_this_factory_(this) { -- weak_this_ = weak_this_factory_.GetWeakPtr(); --} -- --VaapiJpegEncodeAccelerator::~VaapiJpegEncodeAccelerator() { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- DVLOG(1) << "Destroying VaapiJpegEncodeAccelerator"; -- -- weak_this_factory_.InvalidateWeakPtrs(); -- encoder_task_runner_->DeleteSoon(FROM_HERE, std::move(encoder_)); --} -- --void VaapiJpegEncodeAccelerator::NotifyError(int video_frame_id, -- Status status) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- DLOG(ERROR) << "Notifying error: " << status; -- DCHECK(client_); -- client_->NotifyError(video_frame_id, status); --} -- --void VaapiJpegEncodeAccelerator::VideoFrameReady(int video_frame_id, -- size_t encoded_picture_size) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- ReportToUMA(VAJEAEncoderResult::VAAPI_SUCCESS); -- -- client_->VideoFrameReady(video_frame_id, encoded_picture_size); --} -- --JpegEncodeAccelerator::Status VaapiJpegEncodeAccelerator::Initialize( -- JpegEncodeAccelerator::Client* client) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- if (!VaapiWrapper::IsJpegEncodeSupported()) { -- return HW_JPEG_ENCODE_NOT_SUPPORTED; -- } -- -- client_ = client; -- scoped_refptr vaapi_wrapper = VaapiWrapper::Create( -- VaapiWrapper::kEncode, VAProfileJPEGBaseline, -- base::Bind(&ReportToUMA, VAJEAEncoderResult::VAAPI_ERROR)); -- -- if (!vaapi_wrapper) { -- VLOG(1) << "Failed initializing VAAPI"; -- return PLATFORM_FAILURE; -- } -- -- encoder_task_runner_ = base::CreateSingleThreadTaskRunnerWithTraits( -- {base::MayBlock(), base::TaskPriority::USER_BLOCKING}); -- if (!encoder_task_runner_) { -- VLOG(1) << "Failed to create encoder task runner."; -- return THREAD_CREATION_FAILED; -- } -- -- encoder_ = std::make_unique( -- std::move(vaapi_wrapper), -- BindToCurrentLoop(base::BindRepeating( -- &VaapiJpegEncodeAccelerator::VideoFrameReady, weak_this_)), -- BindToCurrentLoop(base::BindRepeating( -- &VaapiJpegEncodeAccelerator::NotifyError, weak_this_))); -- -- return ENCODE_OK; --} -- --size_t VaapiJpegEncodeAccelerator::GetMaxCodedBufferSize( -- const gfx::Size& picture_size) { -- return VaapiJpegEncoder::GetMaxCodedBufferSize(picture_size); --} -- --void VaapiJpegEncodeAccelerator::Encode( -- scoped_refptr video_frame, -- int quality, -- const BitstreamBuffer& bitstream_buffer) { -- DCHECK(io_task_runner_->BelongsToCurrentThread()); -- -- int video_frame_id = video_frame->unique_id(); -- TRACE_EVENT1("jpeg", "Encode", "input_id", video_frame_id); -- -- // TODO(shenghao): support other YUV formats. -- if (video_frame->format() != VideoPixelFormat::PIXEL_FORMAT_I420) { -- VLOG(1) << "Unsupported input format: " << video_frame->format(); -- task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiJpegEncodeAccelerator::NotifyError, -- weak_this_, video_frame_id, INVALID_ARGUMENT)); -- return; -- } -- -- // SharedMemoryRegion will take ownership of the |bitstream_buffer.handle()|. -- auto shm = std::make_unique(bitstream_buffer, false); -- if (!shm->Map()) { -- VLOG(1) << "Failed to map output buffer"; -- task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiJpegEncodeAccelerator::NotifyError, weak_this_, -- video_frame_id, INACCESSIBLE_OUTPUT_BUFFER)); -- return; -- } -- -- auto request = std::make_unique(std::move(video_frame), -- std::move(shm), quality); -- encoder_task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiJpegEncodeAccelerator::Encoder::EncodeTask, -- base::Unretained(encoder_.get()), base::Passed(&request))); --} -- --} // namespace media ---- a/media/gpu/vaapi_jpeg_encode_accelerator.h -+++ /dev/null -@@ -1,96 +0,0 @@ --// Copyright 2017 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#ifndef MEDIA_GPU_VAAPI_JPEG_ENCODE_ACCELERATOR_H_ --#define MEDIA_GPU_VAAPI_JPEG_ENCODE_ACCELERATOR_H_ -- --#include -- --#include "base/macros.h" --#include "base/memory/weak_ptr.h" --#include "base/single_thread_task_runner.h" --#include "media/base/bitstream_buffer.h" --#include "media/gpu/media_gpu_export.h" --#include "media/gpu/shared_memory_region.h" --#include "media/gpu/vaapi_wrapper.h" --#include "media/video/jpeg_encode_accelerator.h" -- --namespace media { -- --// Class to provide JPEG encode acceleration for Intel systems with hardware --// support for it, and on which libva is available. --// Encoding tasks are performed in a separate encoding thread. --// --// Threading/life-cycle: this object is created & destroyed on the GPU --// ChildThread. Methods in nested class Encoder are called on the encoder --// thread which is stopped during destructor, so the callbacks bound with --// a weak this can be run on the encoder thread because it can assume --// VaapiJpegEncodeAccelerator is still alive. --class MEDIA_GPU_EXPORT VaapiJpegEncodeAccelerator -- : public JpegEncodeAccelerator { -- public: -- explicit VaapiJpegEncodeAccelerator( -- scoped_refptr io_task_runner); -- ~VaapiJpegEncodeAccelerator() override; -- -- // JpegEncodeAccelerator implementation. -- Status Initialize(JpegEncodeAccelerator::Client* client) override; -- size_t GetMaxCodedBufferSize(const gfx::Size& picture_size) override; -- -- // Currently only I420 format is supported for |video_frame|. -- void Encode(scoped_refptr video_frame, -- int quality, -- const BitstreamBuffer& bitstream_buffer) override; -- -- private: -- // An input video frame and the corresponding output buffer awaiting -- // consumption, provided by the client. -- struct EncodeRequest { -- EncodeRequest(scoped_refptr video_frame, -- std::unique_ptr shm, -- int quality); -- ~EncodeRequest(); -- -- scoped_refptr video_frame; -- std::unique_ptr shm; -- int quality; -- -- DISALLOW_COPY_AND_ASSIGN(EncodeRequest); -- }; -- -- // The Encoder class is a collection of methods that run on -- // |encoder_task_runner_|. -- class Encoder; -- -- // Notifies the client that an error has occurred and encoding cannot -- // continue. -- void NotifyError(int video_frame_id, Status status); -- -- void VideoFrameReady(int video_frame_id, size_t encoded_picture_size); -- -- // ChildThread's task runner. -- scoped_refptr task_runner_; -- -- // GPU IO task runner. -- scoped_refptr io_task_runner_; -- -- // The client of this class. -- Client* client_; -- -- // Use this to post tasks to encoder thread. -- scoped_refptr encoder_task_runner_; -- -- std::unique_ptr encoder_; -- -- // |weak_this_| is used to post tasks from |encoder_task_runner_| to -- // |task_runner_|. -- base::WeakPtr weak_this_; -- base::WeakPtrFactory weak_this_factory_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiJpegEncodeAccelerator); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VAAPI_JPEG_ENCODE_ACCELERATOR_H_ ---- a/media/gpu/vaapi_jpeg_encoder.cc -+++ /dev/null -@@ -1,427 +0,0 @@ --// Copyright 2017 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_jpeg_encoder.h" -- --#include --#include --#include -- --#include "base/logging.h" --#include "base/macros.h" --#include "base/numerics/safe_conversions.h" --#include "media/filters/jpeg_parser.h" --#include "media/gpu/vaapi_wrapper.h" -- --#define ARRAY_MEMCPY_CHECKED(to, from) \ -- do { \ -- static_assert(sizeof(to) == sizeof(from), \ -- #from " and " #to " arrays must be of same size"); \ -- memcpy(to, from, sizeof(to)); \ -- } while (0) -- --namespace media { -- --namespace { -- --// JPEG header only uses 2 bytes to represent width and height. --const int kMaxDimension = 65535; --const size_t kDctSize2 = 64; --const size_t kNumDcRunSizeBits = 16; --const size_t kNumAcRunSizeBits = 16; --const size_t kNumDcCodeWordsHuffVal = 12; --const size_t kNumAcCodeWordsHuffVal = 162; --const size_t kJpegHeaderSize = 83 + (kDctSize2 * 2) + (kNumDcRunSizeBits * 2) + -- (kNumDcCodeWordsHuffVal * 2) + -- (kNumAcRunSizeBits * 2) + -- (kNumAcCodeWordsHuffVal * 2); -- --const uint8_t kZigZag8x8[64] = { -- 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, -- 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, -- 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, -- 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63}; -- --const JpegQuantizationTable kDefaultQuantTable[2] = { -- // Table K.1 Luminance quantization table values. -- { -- true, -- {16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, -- 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, -- 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, -- 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99}, -- }, -- // Table K.2 Chrominance quantization table values. -- { -- true, -- {17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, -- 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, -- 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, -- 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}, -- }, --}; -- --using JPEGHeader = uint8_t[kJpegHeaderSize]; -- --void FillPictureParameters(const gfx::Size& input_size, -- int quality, -- VABufferID output_buffer_id, -- VAEncPictureParameterBufferJPEG* pic_param) { -- pic_param->picture_width = input_size.width(); -- pic_param->picture_height = input_size.height(); -- pic_param->num_components = 3; -- -- // Output buffer. -- pic_param->coded_buf = output_buffer_id; -- pic_param->quality = quality; -- // Profile = Baseline. -- pic_param->pic_flags.bits.profile = 0; -- // Sequential encoding. -- pic_param->pic_flags.bits.progressive = 0; -- // Uses Huffman coding. -- pic_param->pic_flags.bits.huffman = 1; -- // Input format is interleaved (YUV). -- pic_param->pic_flags.bits.interleaved = 0; -- // Non-differential Encoding. -- pic_param->pic_flags.bits.differential = 0; -- // Only 8 bit sample depth is currently supported. -- pic_param->sample_bit_depth = 8; -- pic_param->num_scan = 1; --} -- --void FillQMatrix(VAQMatrixBufferJPEG* q_matrix) { -- // Fill the raw, unscaled quantization tables for libva. The VAAPI driver is -- // responsible for scaling the quantization tables based on picture -- // parameter quality. -- const JpegQuantizationTable& luminance = kDefaultQuantTable[0]; -- static_assert( -- arraysize(luminance.value) == arraysize(q_matrix->lum_quantiser_matrix), -- "Luminance quantization table size mismatch."); -- static_assert(arraysize(kZigZag8x8) == arraysize(luminance.value), -- "Luminance quantization table size mismatch."); -- q_matrix->load_lum_quantiser_matrix = 1; -- for (size_t i = 0; i < arraysize(kZigZag8x8); i++) { -- q_matrix->lum_quantiser_matrix[i] = luminance.value[kZigZag8x8[i]]; -- } -- -- const JpegQuantizationTable& chrominance = kDefaultQuantTable[1]; -- static_assert(arraysize(chrominance.value) == -- arraysize(q_matrix->chroma_quantiser_matrix), -- "Chrominance quantization table size mismatch."); -- static_assert(arraysize(kZigZag8x8) == arraysize(chrominance.value), -- "Chrominance quantization table size mismatch."); -- q_matrix->load_chroma_quantiser_matrix = 1; -- for (size_t i = 0; i < arraysize(kZigZag8x8); i++) { -- q_matrix->chroma_quantiser_matrix[i] = chrominance.value[kZigZag8x8[i]]; -- } --} -- --void FillHuffmanTableParameters( -- VAHuffmanTableBufferJPEGBaseline* huff_table_param) { -- static_assert(arraysize(kDefaultDcTable) == arraysize(kDefaultAcTable), -- "DC table and AC table size mismatch."); -- static_assert( -- arraysize(kDefaultDcTable) == arraysize(huff_table_param->huffman_table), -- "DC table and destination table size mismatch."); -- -- for (size_t i = 0; i < arraysize(kDefaultDcTable); ++i) { -- const JpegHuffmanTable& dcTable = kDefaultDcTable[i]; -- const JpegHuffmanTable& acTable = kDefaultAcTable[i]; -- huff_table_param->load_huffman_table[i] = true; -- -- // Load DC Table. -- ARRAY_MEMCPY_CHECKED(huff_table_param->huffman_table[i].num_dc_codes, -- dcTable.code_length); -- // |code_values| of JpegHuffmanTable needs to hold DC and AC code values -- // so it has different size than -- // |huff_table_param->huffman_table[i].dc_values|. Therefore we can't use -- // ARRAY_MEMCPY_CHECKED() here. -- static_assert(arraysize(huff_table_param->huffman_table[i].dc_values) <= -- arraysize(dcTable.code_value), -- "DC table code value array too small."); -- memcpy(huff_table_param->huffman_table[i].dc_values, &dcTable.code_value[0], -- sizeof(huff_table_param->huffman_table[i].dc_values)); -- -- // Load AC Table. -- ARRAY_MEMCPY_CHECKED(huff_table_param->huffman_table[i].num_ac_codes, -- acTable.code_length); -- ARRAY_MEMCPY_CHECKED(huff_table_param->huffman_table[i].ac_values, -- acTable.code_value); -- -- memset(huff_table_param->huffman_table[i].pad, 0, -- sizeof(huff_table_param->huffman_table[i].pad)); -- } --} -- --void FillSliceParameters(VAEncSliceParameterBufferJPEG* slice_param) { -- slice_param->restart_interval = 0; -- slice_param->num_components = 3; -- -- slice_param->components[0].component_selector = 1; -- slice_param->components[0].dc_table_selector = 0; -- slice_param->components[0].ac_table_selector = 0; -- -- slice_param->components[1].component_selector = 2; -- slice_param->components[1].dc_table_selector = 1; -- slice_param->components[1].ac_table_selector = 1; -- -- slice_param->components[2].component_selector = 3; -- slice_param->components[2].dc_table_selector = 1; -- slice_param->components[2].ac_table_selector = 1; --} -- --size_t FillJpegHeader(const gfx::Size& input_size, -- int quality, -- JPEGHeader& header) { -- unsigned int width = input_size.width(); -- unsigned int height = input_size.height(); -- -- size_t idx = 0; -- -- // Start Of Input. -- static const uint8_t kSOI[] = {0xFF, JPEG_SOI}; -- memcpy(header, kSOI, sizeof(kSOI)); -- idx += sizeof(kSOI); -- -- // Application Segment - JFIF standard 1.01. -- // TODO(shenghao): Use Exif (JPEG_APP1) instead. -- static const uint8_t kAppSegment[] = { -- 0xFF, JPEG_APP0, 0x00, -- 0x10, // Segment length:16 (2-byte). -- 0x4A, // J -- 0x46, // F -- 0x49, // I -- 0x46, // F -- 0x00, // 0 -- 0x01, // Major version. -- 0x01, // Minor version. -- 0x01, // Density units 0:no units, 1:pixels per inch, -- // 2: pixels per cm. -- 0x00, -- 0x48, // X density (2-byte). -- 0x00, -- 0x48, // Y density (2-byte). -- 0x00, // Thumbnail width. -- 0x00 // Thumbnail height. -- }; -- memcpy(header + idx, kAppSegment, sizeof(kAppSegment)); -- idx += sizeof(kAppSegment); -- -- if (quality <= 0) { -- quality = 1; -- } -- -- // Normalize quality factor. -- // Unlike VAQMatrixBufferJPEG, we have to scale quantization table in JPEG -- // header by ourselves. -- uint32_t quality_normalized = base::saturated_cast( -- (quality < 50) ? (5000 / quality) : (200 - (quality * 2))); -- -- // Quantization Tables. -- for (size_t i = 0; i < 2; ++i) { -- const uint8_t kQuantSegment[] = { -- 0xFF, JPEG_DQT, 0x00, -- 0x03 + kDctSize2, // Segment length:67 (2-byte). -- static_cast(i) // Precision (4-bit high) = 0, -- // Index (4-bit low) = i. -- }; -- memcpy(header + idx, kQuantSegment, sizeof(kQuantSegment)); -- idx += sizeof(kQuantSegment); -- -- const JpegQuantizationTable& quant_table = kDefaultQuantTable[i]; -- for (size_t j = 0; j < kDctSize2; ++j) { -- uint32_t scaled_quant_value = -- (quant_table.value[kZigZag8x8[j]] * quality_normalized) / 100; -- scaled_quant_value = std::min(255u, std::max(1u, scaled_quant_value)); -- header[idx++] = static_cast(scaled_quant_value); -- } -- } -- -- // Start of Frame - Baseline. -- const uint8_t kStartOfFrame[] = { -- 0xFF, -- JPEG_SOF0, // Baseline. -- 0x00, -- 0x11, // Segment length:17 (2-byte). -- 8, // Data precision. -- static_cast((height >> 8) & 0xFF), -- static_cast(height & 0xFF), -- static_cast((width >> 8) & 0xFF), -- static_cast(width & 0xFF), -- 0x03, // Number of Components. -- }; -- memcpy(header + idx, kStartOfFrame, sizeof(kStartOfFrame)); -- idx += sizeof(kStartOfFrame); -- for (uint8_t i = 0; i < 3; ++i) { -- // These are the values for U and V planes. -- uint8_t h_sample_factor = 1; -- uint8_t v_sample_factor = 1; -- uint8_t quant_table_number = 1; -- if (!i) { -- // These are the values for Y plane. -- h_sample_factor = 2; -- v_sample_factor = 2; -- quant_table_number = 0; -- } -- -- header[idx++] = i + 1; -- // Horizontal Sample Factor (4-bit high), -- // Vertical Sample Factor (4-bit low). -- header[idx++] = (h_sample_factor << 4) | v_sample_factor; -- header[idx++] = quant_table_number; -- } -- -- static const uint8_t kDcSegment[] = { -- 0xFF, JPEG_DHT, 0x00, -- 0x1F, // Segment length:31 (2-byte). -- }; -- static const uint8_t kAcSegment[] = { -- 0xFF, JPEG_DHT, 0x00, -- 0xB5, // Segment length:181 (2-byte). -- }; -- -- // Huffman Tables. -- for (size_t i = 0; i < 2; ++i) { -- // DC Table. -- memcpy(header + idx, kDcSegment, sizeof(kDcSegment)); -- idx += sizeof(kDcSegment); -- -- // Type (4-bit high) = 0:DC, Index (4-bit low). -- header[idx++] = static_cast(i); -- -- const JpegHuffmanTable& dcTable = kDefaultDcTable[i]; -- for (size_t j = 0; j < kNumDcRunSizeBits; ++j) -- header[idx++] = dcTable.code_length[j]; -- for (size_t j = 0; j < kNumDcCodeWordsHuffVal; ++j) -- header[idx++] = dcTable.code_value[j]; -- -- // AC Table. -- memcpy(header + idx, kAcSegment, sizeof(kAcSegment)); -- idx += sizeof(kAcSegment); -- -- // Type (4-bit high) = 1:AC, Index (4-bit low). -- header[idx++] = 0x10 | static_cast(i); -- -- const JpegHuffmanTable& acTable = kDefaultAcTable[i]; -- for (size_t j = 0; j < kNumAcRunSizeBits; ++j) -- header[idx++] = acTable.code_length[j]; -- for (size_t j = 0; j < kNumAcCodeWordsHuffVal; ++j) -- header[idx++] = acTable.code_value[j]; -- } -- -- // Start of Scan. -- static const uint8_t kStartOfScan[] = { -- 0xFF, JPEG_SOS, 0x00, -- 0x0C, // Segment Length:12 (2-byte). -- 0x03 // Number of components in scan. -- }; -- memcpy(header + idx, kStartOfScan, sizeof(kStartOfScan)); -- idx += sizeof(kStartOfScan); -- -- for (uint8_t i = 0; i < 3; ++i) { -- uint8_t dc_table_number = 1; -- uint8_t ac_table_number = 1; -- if (!i) { -- dc_table_number = 0; -- ac_table_number = 0; -- } -- -- header[idx++] = i + 1; -- // DC Table Selector (4-bit high), AC Table Selector (4-bit low). -- header[idx++] = (dc_table_number << 4) | ac_table_number; -- } -- header[idx++] = 0x00; // 0 for Baseline. -- header[idx++] = 0x3F; // 63 for Baseline. -- header[idx++] = 0x00; // 0 for Baseline. -- -- return idx << 3; --} -- --} // namespace -- --VaapiJpegEncoder::VaapiJpegEncoder(scoped_refptr vaapi_wrapper) -- : vaapi_wrapper_(vaapi_wrapper), -- q_matrix_cached_(nullptr), -- huff_table_param_cached_(nullptr), -- slice_param_cached_(nullptr) {} -- --VaapiJpegEncoder::~VaapiJpegEncoder() {} -- --size_t VaapiJpegEncoder::GetMaxCodedBufferSize(const gfx::Size& size) { -- return size.GetArea() * 3 / 2 + kJpegHeaderSize; --} -- --bool VaapiJpegEncoder::Encode(const gfx::Size& input_size, -- int quality, -- VASurfaceID surface_id, -- VABufferID output_buffer_id) { -- DCHECK_NE(surface_id, VA_INVALID_SURFACE); -- -- if (input_size.width() > kMaxDimension || -- input_size.height() > kMaxDimension) { -- return false; -- } -- -- // Set picture parameters. -- VAEncPictureParameterBufferJPEG pic_param; -- FillPictureParameters(input_size, quality, output_buffer_id, &pic_param); -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPictureParameterBufferType, -- sizeof(pic_param), &pic_param)) { -- return false; -- } -- -- if (!q_matrix_cached_) { -- q_matrix_cached_.reset(new VAQMatrixBufferJPEG()); -- FillQMatrix(q_matrix_cached_.get()); -- } -- if (!vaapi_wrapper_->SubmitBuffer(VAQMatrixBufferType, -- sizeof(*q_matrix_cached_), -- q_matrix_cached_.get())) { -- return false; -- } -- -- if (!huff_table_param_cached_) { -- huff_table_param_cached_.reset(new VAHuffmanTableBufferJPEGBaseline()); -- FillHuffmanTableParameters(huff_table_param_cached_.get()); -- } -- if (!vaapi_wrapper_->SubmitBuffer(VAHuffmanTableBufferType, -- sizeof(*huff_table_param_cached_), -- huff_table_param_cached_.get())) { -- return false; -- } -- -- // Set slice parameters. -- if (!slice_param_cached_) { -- slice_param_cached_.reset(new VAEncSliceParameterBufferJPEG()); -- FillSliceParameters(slice_param_cached_.get()); -- } -- if (!vaapi_wrapper_->SubmitBuffer(VAEncSliceParameterBufferType, -- sizeof(*slice_param_cached_), -- slice_param_cached_.get())) { -- return false; -- } -- -- JPEGHeader header_data; -- size_t length_in_bits = FillJpegHeader(input_size, quality, header_data); -- -- VAEncPackedHeaderParameterBuffer header_param; -- memset(&header_param, 0, sizeof(header_param)); -- header_param.type = VAEncPackedHeaderRawData; -- header_param.bit_length = length_in_bits; -- header_param.has_emulation_bytes = 0; -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderParameterBufferType, -- sizeof(header_param), &header_param)) { -- return false; -- } -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderDataBufferType, -- (length_in_bits + 7) / 8, header_data)) { -- return false; -- } -- -- // Submit the |surface_id| which contains input YUV frame and begin encoding. -- return vaapi_wrapper_->ExecuteAndDestroyPendingBuffers(surface_id); --} -- --} // namespace media ---- a/media/gpu/vaapi_jpeg_encoder.h -+++ /dev/null -@@ -1,65 +0,0 @@ --// Copyright 2017 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#ifndef MEDIA_GPU_VAAPI_JPEG_ENCODER_H_ --#define MEDIA_GPU_VAAPI_JPEG_ENCODER_H_ -- --#include --#include -- --#include "base/macros.h" --#include "base/memory/scoped_refptr.h" --#include "media/gpu/media_gpu_export.h" --#include "ui/gfx/geometry/size.h" -- --namespace media { -- --class VaapiWrapper; -- --// A collection of methods that utilize VA-API hardware video encode --// acceleration on Intel systems. Provides functionality to allow plugging VAAPI --// HW acceleration into the JpegEncodeAccelerator framework. --// --// Clients are expected to manage VA surfaces and VA buffers created via --// VaapiWrapper, and pass them to this class. --class MEDIA_GPU_EXPORT VaapiJpegEncoder { -- public: -- // |vaapi_wrapper| should be initialized in VaapiWrapper::kEncode -- // mode with VAProfileJPEGBaseline profile. -- explicit VaapiJpegEncoder(scoped_refptr vaapi_wrapper); -- ~VaapiJpegEncoder(); -- -- // Encode a JPEG picture. It will fill VA-API parameters and call -- // corresponding VA-API methods according to |input_size|. -- // |quality| is the JPEG image quality -- // |surface_id| is the VA surface that contains input image. -- // |output_buffer_id| is the ID of VA buffer that encoded image will be -- // stored. The size of it should be at least as large as -- // GetMaxCodedBufferSize(). -- // Return false on failure. -- bool Encode(const gfx::Size& input_size, -- int quality, -- VASurfaceID surface_id, -- VABufferID output_buffer_id); -- -- // Gets the maximum possible encoded result size. -- // |size| is the dimension of the YUV image to be encoded. -- static size_t GetMaxCodedBufferSize(const gfx::Size& size); -- -- private: -- scoped_refptr vaapi_wrapper_; -- -- // |q_matrix_cached_|, |huff_table_param_cached_| and |slice_param_cached_| -- // are created when Encode() is called the first time. After that, they will -- // directly be used for all the subsequent Encode() calls. -- std::unique_ptr q_matrix_cached_; -- std::unique_ptr huff_table_param_cached_; -- std::unique_ptr slice_param_cached_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiJpegEncoder); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VAAPI_JPEG_ENCODER_H_ ---- a/media/gpu/vaapi_video_decode_accelerator.cc -+++ /dev/null -@@ -1,1871 +0,0 @@ --// Copyright (c) 2012 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_video_decode_accelerator.h" -- --#include -- --#include -- --#include -- --#include "base/bind.h" --#include "base/files/scoped_file.h" --#include "base/logging.h" --#include "base/macros.h" --#include "base/metrics/histogram_macros.h" --#include "base/stl_util.h" --#include "base/strings/string_util.h" --#include "base/synchronization/waitable_event.h" --#include "base/threading/thread_task_runner_handle.h" --#include "base/trace_event/trace_event.h" --#include "gpu/ipc/service/gpu_channel.h" --#include "media/base/bind_to_current_loop.h" --#include "media/gpu/accelerated_video_decoder.h" --#include "media/gpu/format_utils.h" --#include "media/gpu/h264_decoder.h" --#include "media/gpu/vaapi/vaapi_picture.h" --#include "media/gpu/vp8_decoder.h" --#include "media/gpu/vp9_decoder.h" --#include "media/video/picture.h" --#include "ui/gl/gl_image.h" -- --#define DVLOGF(level) DVLOG(level) << __func__ << "(): " --#define VLOGF(level) VLOG(level) << __func__ << "(): " -- --namespace media { -- --namespace { --// UMA errors that the VaapiVideoDecodeAccelerator class reports. --enum VAVDADecoderFailure { -- VAAPI_ERROR = 0, -- VAVDA_DECODER_FAILURES_MAX, --}; --// from ITU-T REC H.264 spec --// section 8.5.6 --// "Inverse scanning process for 4x4 transform coefficients and scaling lists" --static const int kZigzagScan4x4[16] = {0, 1, 4, 8, 5, 2, 3, 6, -- 9, 12, 13, 10, 7, 11, 14, 15}; -- --// section 8.5.7 --// "Inverse scanning process for 8x8 transform coefficients and scaling lists" --static const uint8_t kZigzagScan8x8[64] = { -- 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, -- 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, -- 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, -- 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63}; -- --// Returns the preferred VA_RT_FORMAT for the given |profile|. --unsigned int GetVaFormatForVideoCodecProfile(VideoCodecProfile profile) { -- if (profile == VP9PROFILE_PROFILE2 || profile == VP9PROFILE_PROFILE3) -- return VA_RT_FORMAT_YUV420_10BPP; -- return VA_RT_FORMAT_YUV420; --} -- --} // namespace -- --static void ReportToUMA(VAVDADecoderFailure failure) { -- UMA_HISTOGRAM_ENUMERATION("Media.VAVDA.DecoderFailure", failure, -- VAVDA_DECODER_FAILURES_MAX + 1); --} -- --#define RETURN_AND_NOTIFY_ON_FAILURE(result, log, error_code, ret) \ -- do { \ -- if (!(result)) { \ -- VLOGF(1) << log; \ -- NotifyError(error_code); \ -- return ret; \ -- } \ -- } while (0) -- --class VaapiVideoDecodeAccelerator::VaapiDecodeSurface -- : public base::RefCountedThreadSafe { -- public: -- VaapiDecodeSurface(int32_t bitstream_id, -- const scoped_refptr& va_surface); -- -- int32_t bitstream_id() const { return bitstream_id_; } -- scoped_refptr va_surface() { return va_surface_; } -- gfx::Rect visible_rect() const { return visible_rect_; } -- -- void set_visible_rect(const gfx::Rect& visible_rect) { -- visible_rect_ = visible_rect; -- } -- -- private: -- friend class base::RefCountedThreadSafe; -- ~VaapiDecodeSurface(); -- -- const int32_t bitstream_id_; -- const scoped_refptr va_surface_; -- gfx::Rect visible_rect_; --}; -- --VaapiVideoDecodeAccelerator::VaapiDecodeSurface::VaapiDecodeSurface( -- int32_t bitstream_id, -- const scoped_refptr& va_surface) -- : bitstream_id_(bitstream_id), va_surface_(va_surface) {} -- --VaapiVideoDecodeAccelerator::VaapiDecodeSurface::~VaapiDecodeSurface() {} -- --class VaapiH264Picture : public H264Picture { -- public: -- explicit VaapiH264Picture( -- scoped_refptr surface) -- : dec_surface_(surface) {} -- -- VaapiH264Picture* AsVaapiH264Picture() override { return this; } -- scoped_refptr dec_surface() { -- return dec_surface_; -- } -- -- private: -- ~VaapiH264Picture() override {} -- -- scoped_refptr dec_surface_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiH264Picture); --}; -- --class VaapiVideoDecodeAccelerator::VaapiH264Accelerator -- : public H264Decoder::H264Accelerator { -- public: -- VaapiH264Accelerator(VaapiVideoDecodeAccelerator* vaapi_dec, -- VaapiWrapper* vaapi_wrapper); -- ~VaapiH264Accelerator() override; -- -- // H264Decoder::H264Accelerator implementation. -- scoped_refptr CreateH264Picture() override; -- -- bool SubmitFrameMetadata(const H264SPS* sps, -- const H264PPS* pps, -- const H264DPB& dpb, -- const H264Picture::Vector& ref_pic_listp0, -- const H264Picture::Vector& ref_pic_listb0, -- const H264Picture::Vector& ref_pic_listb1, -- const scoped_refptr& pic) override; -- -- bool SubmitSlice(const H264PPS* pps, -- const H264SliceHeader* slice_hdr, -- const H264Picture::Vector& ref_pic_list0, -- const H264Picture::Vector& ref_pic_list1, -- const scoped_refptr& pic, -- const uint8_t* data, -- size_t size) override; -- -- bool SubmitDecode(const scoped_refptr& pic) override; -- bool OutputPicture(const scoped_refptr& pic) override; -- -- void Reset() override; -- -- private: -- scoped_refptr H264PictureToVaapiDecodeSurface( -- const scoped_refptr& pic); -- -- void FillVAPicture(VAPictureH264* va_pic, scoped_refptr pic); -- int FillVARefFramesFromDPB(const H264DPB& dpb, -- VAPictureH264* va_pics, -- int num_pics); -- -- VaapiWrapper* vaapi_wrapper_; -- VaapiVideoDecodeAccelerator* vaapi_dec_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiH264Accelerator); --}; -- --class VaapiVP8Picture : public VP8Picture { -- public: -- explicit VaapiVP8Picture( -- scoped_refptr surface) -- : dec_surface_(surface) {} -- -- VaapiVP8Picture* AsVaapiVP8Picture() override { return this; } -- scoped_refptr dec_surface() { -- return dec_surface_; -- } -- -- private: -- ~VaapiVP8Picture() override {} -- -- scoped_refptr dec_surface_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiVP8Picture); --}; -- --class VaapiVideoDecodeAccelerator::VaapiVP8Accelerator -- : public VP8Decoder::VP8Accelerator { -- public: -- VaapiVP8Accelerator(VaapiVideoDecodeAccelerator* vaapi_dec, -- VaapiWrapper* vaapi_wrapper); -- ~VaapiVP8Accelerator() override; -- -- // VP8Decoder::VP8Accelerator implementation. -- scoped_refptr CreateVP8Picture() override; -- -- bool SubmitDecode(const scoped_refptr& pic, -- const Vp8FrameHeader* frame_hdr, -- const scoped_refptr& last_frame, -- const scoped_refptr& golden_frame, -- const scoped_refptr& alt_frame) override; -- -- bool OutputPicture(const scoped_refptr& pic) override; -- -- private: -- scoped_refptr VP8PictureToVaapiDecodeSurface( -- const scoped_refptr& pic); -- -- VaapiWrapper* vaapi_wrapper_; -- VaapiVideoDecodeAccelerator* vaapi_dec_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiVP8Accelerator); --}; -- --class VaapiVP9Picture : public VP9Picture { -- public: -- explicit VaapiVP9Picture( -- scoped_refptr surface) -- : dec_surface_(surface) {} -- -- VaapiVP9Picture* AsVaapiVP9Picture() override { return this; } -- scoped_refptr dec_surface() { -- return dec_surface_; -- } -- -- private: -- ~VaapiVP9Picture() override {} -- -- scoped_refptr dec_surface_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiVP9Picture); --}; -- --class VaapiVideoDecodeAccelerator::VaapiVP9Accelerator -- : public VP9Decoder::VP9Accelerator { -- public: -- VaapiVP9Accelerator(VaapiVideoDecodeAccelerator* vaapi_dec, -- VaapiWrapper* vaapi_wrapper); -- ~VaapiVP9Accelerator() override; -- -- // VP9Decoder::VP9Accelerator implementation. -- scoped_refptr CreateVP9Picture() override; -- -- bool SubmitDecode(const scoped_refptr& pic, -- const Vp9SegmentationParams& seg, -- const Vp9LoopFilterParams& lf, -- const std::vector>& ref_pictures, -- const base::Closure& done_cb) override; -- -- bool OutputPicture(const scoped_refptr& pic) override; -- -- bool IsFrameContextRequired() const override { return false; } -- -- bool GetFrameContext(const scoped_refptr& pic, -- Vp9FrameContext* frame_ctx) override; -- -- private: -- scoped_refptr VP9PictureToVaapiDecodeSurface( -- const scoped_refptr& pic); -- -- VaapiWrapper* vaapi_wrapper_; -- VaapiVideoDecodeAccelerator* vaapi_dec_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiVP9Accelerator); --}; -- --class VaapiVideoDecodeAccelerator::InputBuffer { -- public: -- InputBuffer() = default; -- InputBuffer(uint32_t id, -- std::unique_ptr shm, -- base::OnceCallback release_cb) -- : id_(id), shm_(std::move(shm)), release_cb_(std::move(release_cb)) {} -- ~InputBuffer() { -- VLOGF(4) << "id = " << id_; -- if (release_cb_) -- std::move(release_cb_).Run(id_); -- } -- -- // Indicates this is a dummy buffer for flush request. -- bool IsFlushRequest() const { return shm_ == nullptr; } -- int32_t id() const { return id_; } -- SharedMemoryRegion* shm() const { return shm_.get(); } -- -- private: -- const int32_t id_ = -1; -- const std::unique_ptr shm_; -- base::OnceCallback release_cb_; -- -- DISALLOW_COPY_AND_ASSIGN(InputBuffer); --}; -- --void VaapiVideoDecodeAccelerator::NotifyError(Error error) { -- if (!task_runner_->BelongsToCurrentThread()) { -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- task_runner_->PostTask(FROM_HERE, -- base::Bind(&VaapiVideoDecodeAccelerator::NotifyError, -- weak_this_, error)); -- return; -- } -- -- // Post Cleanup() as a task so we don't recursively acquire lock_. -- task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::Cleanup, weak_this_)); -- -- VLOGF(1) << "Notifying of error " << error; -- if (client_) { -- client_->NotifyError(error); -- client_ptr_factory_.reset(); -- } --} -- --VaapiPicture* VaapiVideoDecodeAccelerator::PictureById( -- int32_t picture_buffer_id) { -- Pictures::iterator it = pictures_.find(picture_buffer_id); -- if (it == pictures_.end()) { -- VLOGF(4) << "Picture id " << picture_buffer_id << " does not exist"; -- return NULL; -- } -- -- return it->second.get(); --} -- --VaapiVideoDecodeAccelerator::VaapiVideoDecodeAccelerator( -- const MakeGLContextCurrentCallback& make_context_current_cb, -- const BindGLImageCallback& bind_image_cb) -- : state_(kUninitialized), -- input_ready_(&lock_), -- vaapi_picture_factory_(new VaapiPictureFactory()), -- surfaces_available_(&lock_), -- task_runner_(base::ThreadTaskRunnerHandle::Get()), -- decoder_thread_("VaapiDecoderThread"), -- num_frames_at_client_(0), -- finish_flush_pending_(false), -- awaiting_va_surfaces_recycle_(false), -- requested_num_pics_(0), -- output_format_(gfx::BufferFormat::BGRX_8888), -- profile_(VIDEO_CODEC_PROFILE_UNKNOWN), -- make_context_current_cb_(make_context_current_cb), -- bind_image_cb_(bind_image_cb), -- weak_this_factory_(this) { -- weak_this_ = weak_this_factory_.GetWeakPtr(); -- va_surface_release_cb_ = BindToCurrentLoop( -- base::Bind(&VaapiVideoDecodeAccelerator::RecycleVASurfaceID, weak_this_)); --} -- --VaapiVideoDecodeAccelerator::~VaapiVideoDecodeAccelerator() { -- DCHECK(task_runner_->BelongsToCurrentThread()); --} -- --bool VaapiVideoDecodeAccelerator::Initialize(const Config& config, -- Client* client) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- if (config.is_encrypted()) { -- NOTREACHED() << "Encrypted streams are not supported for this VDA"; -- return false; -- } -- -- switch (config.output_mode) { -- case Config::OutputMode::ALLOCATE: -- output_format_ = vaapi_picture_factory_->GetBufferFormatForAllocateMode(); -- break; -- -- case Config::OutputMode::IMPORT: -- output_format_ = vaapi_picture_factory_->GetBufferFormatForImportMode(); -- break; -- -- default: -- NOTREACHED() << "Only ALLOCATE and IMPORT OutputModes are supported"; -- return false; -- } -- -- client_ptr_factory_.reset(new base::WeakPtrFactory(client)); -- client_ = client_ptr_factory_->GetWeakPtr(); -- -- VideoCodecProfile profile = config.profile; -- -- base::AutoLock auto_lock(lock_); -- DCHECK_EQ(state_, kUninitialized); -- VLOGF(2) << "Initializing VAVDA, profile: " << GetProfileName(profile); -- -- vaapi_wrapper_ = VaapiWrapper::CreateForVideoCodec( -- VaapiWrapper::kDecode, profile, base::Bind(&ReportToUMA, VAAPI_ERROR)); -- -- if (!vaapi_wrapper_.get()) { -- VLOGF(1) << "Failed initializing VAAPI for profile " -- << GetProfileName(profile); -- return false; -- } -- -- if (profile >= H264PROFILE_MIN && profile <= H264PROFILE_MAX) { -- h264_accelerator_.reset( -- new VaapiH264Accelerator(this, vaapi_wrapper_.get())); -- decoder_.reset(new H264Decoder(h264_accelerator_.get())); -- } else if (profile >= VP8PROFILE_MIN && profile <= VP8PROFILE_MAX) { -- vp8_accelerator_.reset(new VaapiVP8Accelerator(this, vaapi_wrapper_.get())); -- decoder_.reset(new VP8Decoder(vp8_accelerator_.get())); -- } else if (profile >= VP9PROFILE_MIN && profile <= VP9PROFILE_MAX) { -- vp9_accelerator_.reset(new VaapiVP9Accelerator(this, vaapi_wrapper_.get())); -- decoder_.reset(new VP9Decoder(vp9_accelerator_.get())); -- } else { -- VLOGF(1) << "Unsupported profile " << GetProfileName(profile); -- return false; -- } -- profile_ = profile; -- -- CHECK(decoder_thread_.Start()); -- decoder_thread_task_runner_ = decoder_thread_.task_runner(); -- -- state_ = kIdle; -- output_mode_ = config.output_mode; -- return true; --} -- --void VaapiVideoDecodeAccelerator::OutputPicture( -- const scoped_refptr& va_surface, -- int32_t input_id, -- gfx::Rect visible_rect, -- VaapiPicture* picture) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- int32_t output_id = picture->picture_buffer_id(); -- -- VLOGF(4) << "Outputting VASurface " << va_surface->id() -- << " into pixmap bound to picture buffer id " << output_id; -- { -- TRACE_EVENT2("Video Decoder", "VAVDA::DownloadFromSurface", "input_id", -- input_id, "output_id", output_id); -- RETURN_AND_NOTIFY_ON_FAILURE(picture->DownloadFromSurface(va_surface), -- "Failed putting surface into pixmap", -- PLATFORM_FAILURE, ); -- } -- // Notify the client a picture is ready to be displayed. -- ++num_frames_at_client_; -- TRACE_COUNTER1("Video Decoder", "Textures at client", num_frames_at_client_); -- VLOGF(4) << "Notifying output picture id " << output_id << " for input " -- << input_id -- << " is ready. visible rect: " << visible_rect.ToString(); -- if (client_) { -- // TODO(hubbe): Use the correct color space. http://crbug.com/647725 -- client_->PictureReady(Picture(output_id, input_id, visible_rect, -- gfx::ColorSpace(), picture->AllowOverlay())); -- } --} -- --void VaapiVideoDecodeAccelerator::TryOutputSurface() { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- // Handle Destroy() arriving while pictures are queued for output. -- if (!client_) -- return; -- -- if (pending_output_cbs_.empty() || output_buffers_.empty()) -- return; -- -- OutputCB output_cb = pending_output_cbs_.front(); -- pending_output_cbs_.pop(); -- -- VaapiPicture* picture = PictureById(output_buffers_.front()); -- DCHECK(picture); -- output_buffers_.pop(); -- -- output_cb.Run(picture); -- -- if (finish_flush_pending_ && pending_output_cbs_.empty()) -- FinishFlush(); --} -- --void VaapiVideoDecodeAccelerator::QueueInputBuffer( -- const BitstreamBuffer& bitstream_buffer) { -- VLOGF(4) << "Queueing new input buffer id: " << bitstream_buffer.id() -- << " size: " << (int)bitstream_buffer.size(); -- DCHECK(task_runner_->BelongsToCurrentThread()); -- TRACE_EVENT1("Video Decoder", "QueueInputBuffer", "input_id", -- bitstream_buffer.id()); -- -- base::AutoLock auto_lock(lock_); -- if (bitstream_buffer.size() == 0) { -- DCHECK(!base::SharedMemory::IsHandleValid(bitstream_buffer.handle())); -- // Dummy buffer for flush. -- auto flush_buffer = base::MakeUnique(); -- DCHECK(flush_buffer->IsFlushRequest()); -- input_buffers_.push(std::move(flush_buffer)); -- } else { -- std::unique_ptr shm( -- new SharedMemoryRegion(bitstream_buffer, true)); -- RETURN_AND_NOTIFY_ON_FAILURE(shm->Map(), "Failed to map input buffer", -- UNREADABLE_INPUT, ); -- -- auto input_buffer = base::MakeUnique( -- bitstream_buffer.id(), std::move(shm), -- BindToCurrentLoop( -- base::Bind(&Client::NotifyEndOfBitstreamBuffer, client_))); -- input_buffers_.push(std::move(input_buffer)); -- -- TRACE_COUNTER1("Video Decoder", "Input buffers", input_buffers_.size()); -- } -- -- input_ready_.Signal(); -- -- switch (state_) { -- case kIdle: -- state_ = kDecoding; -- decoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -- base::Unretained(this))); -- break; -- -- case kDecoding: -- // Decoder already running. -- break; -- -- case kResetting: -- // When resetting, allow accumulating bitstream buffers, so that -- // the client can queue after-seek-buffers while we are finishing with -- // the before-seek one. -- break; -- -- default: -- VLOGF(1) << "Decode/Flush request from client in invalid state: " -- << state_; -- NotifyError(PLATFORM_FAILURE); -- break; -- } --} -- --bool VaapiVideoDecodeAccelerator::GetInputBuffer_Locked() { -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- lock_.AssertAcquired(); -- -- if (curr_input_buffer_.get()) -- return true; -- -- // Will only wait if it is expected that in current state new buffers will -- // be queued from the client via Decode(). The state can change during wait. -- while (input_buffers_.empty() && (state_ == kDecoding || state_ == kIdle)) { -- input_ready_.Wait(); -- } -- -- // We could have got woken up in a different state or never got to sleep -- // due to current state. -- if (state_ != kDecoding && state_ != kIdle) -- return false; -- -- DCHECK(!input_buffers_.empty()); -- curr_input_buffer_ = std::move(input_buffers_.front()); -- input_buffers_.pop(); -- -- if (curr_input_buffer_->IsFlushRequest()) { -- VLOGF(4) << "New flush buffer"; -- return true; -- } -- -- VLOGF(4) << "New current input buffer, id: " << curr_input_buffer_->id() -- << " size: " << curr_input_buffer_->shm()->size() << "B"; -- decoder_->SetStream( -- static_cast(curr_input_buffer_->shm()->memory()), -- curr_input_buffer_->shm()->size()); -- -- return true; --} -- --void VaapiVideoDecodeAccelerator::ReturnCurrInputBuffer_Locked() { -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- lock_.AssertAcquired(); -- DCHECK(curr_input_buffer_.get()); -- curr_input_buffer_.reset(); -- -- TRACE_COUNTER1("Video Decoder", "Input buffers", input_buffers_.size()); --} -- --// TODO(posciak): refactor the whole class to remove sleeping in wait for --// surfaces, and reschedule DecodeTask instead. --bool VaapiVideoDecodeAccelerator::WaitForSurfaces_Locked() { -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- lock_.AssertAcquired(); -- -- while (available_va_surfaces_.empty() && -- (state_ == kDecoding || state_ == kIdle)) { -- surfaces_available_.Wait(); -- } -- -- return state_ == kDecoding || state_ == kIdle; --} -- --void VaapiVideoDecodeAccelerator::DecodeTask() { -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- base::AutoLock auto_lock(lock_); -- -- if (state_ != kDecoding) -- return; -- -- // Main decode task. -- VLOGF(4) << "Decode task"; -- -- // Try to decode what stream data is (still) in the decoder until we run out -- // of it. -- while (GetInputBuffer_Locked()) { -- DCHECK(curr_input_buffer_.get()); -- -- if (curr_input_buffer_->IsFlushRequest()) { -- FlushTask(); -- break; -- } -- -- AcceleratedVideoDecoder::DecodeResult res; -- { -- // We are OK releasing the lock here, as decoder never calls our methods -- // directly and we will reacquire the lock before looking at state again. -- // This is the main decode function of the decoder and while keeping -- // the lock for its duration would be fine, it would defeat the purpose -- // of having a separate decoder thread. -- base::AutoUnlock auto_unlock(lock_); -- TRACE_EVENT0("Video Decoder", "VAVDA::Decode"); -- res = decoder_->Decode(); -- } -- -- switch (res) { -- case AcceleratedVideoDecoder::kAllocateNewSurfaces: -- VLOGF(2) << "Decoder requesting a new set of surfaces"; -- task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiVideoDecodeAccelerator::InitiateSurfaceSetChange, -- weak_this_, decoder_->GetRequiredNumOfPictures(), -- decoder_->GetPicSize())); -- // We'll get rescheduled once ProvidePictureBuffers() finishes. -- return; -- -- case AcceleratedVideoDecoder::kRanOutOfStreamData: -- ReturnCurrInputBuffer_Locked(); -- break; -- -- case AcceleratedVideoDecoder::kRanOutOfSurfaces: -- // No more output buffers in the decoder, try getting more or go to -- // sleep waiting for them. -- if (!WaitForSurfaces_Locked()) -- return; -- -- break; -- -- case AcceleratedVideoDecoder::kNeedContextUpdate: -- // This should not happen as we return false from -- // IsFrameContextRequired(). -- NOTREACHED() << "Context updates not supported"; -- return; -- -- case AcceleratedVideoDecoder::kDecodeError: -- RETURN_AND_NOTIFY_ON_FAILURE(false, "Error decoding stream", -- PLATFORM_FAILURE, ); -- return; -- } -- } --} -- --void VaapiVideoDecodeAccelerator::InitiateSurfaceSetChange(size_t num_pics, -- gfx::Size size) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- DCHECK(!awaiting_va_surfaces_recycle_); -- -- // At this point decoder has stopped running and has already posted onto our -- // loop any remaining output request callbacks, which executed before we got -- // here. Some of them might have been pended though, because we might not -- // have had enough TFPictures to output surfaces to. Initiate a wait cycle, -- // which will wait for client to return enough PictureBuffers to us, so that -- // we can finish all pending output callbacks, releasing associated surfaces. -- VLOGF(2) << "Initiating surface set change"; -- awaiting_va_surfaces_recycle_ = true; -- -- requested_num_pics_ = num_pics; -- requested_pic_size_ = size; -- -- TryFinishSurfaceSetChange(); --} -- --void VaapiVideoDecodeAccelerator::TryFinishSurfaceSetChange() { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- if (!awaiting_va_surfaces_recycle_) -- return; -- -- if (!pending_output_cbs_.empty() || -- pictures_.size() != available_va_surfaces_.size()) { -- // Either: -- // 1. Not all pending pending output callbacks have been executed yet. -- // Wait for the client to return enough pictures and retry later. -- // 2. The above happened and all surface release callbacks have been posted -- // as the result, but not all have executed yet. Post ourselves after them -- // to let them release surfaces. -- DVLOGF(2) << "Awaiting pending output/surface release callbacks to finish"; -- task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiVideoDecodeAccelerator::TryFinishSurfaceSetChange, -- weak_this_)); -- return; -- } -- -- // All surfaces released, destroy them and dismiss all PictureBuffers. -- awaiting_va_surfaces_recycle_ = false; -- available_va_surfaces_.clear(); -- vaapi_wrapper_->DestroySurfaces(); -- -- for (Pictures::iterator iter = pictures_.begin(); iter != pictures_.end(); -- ++iter) { -- VLOGF(2) << "Dismissing picture id: " << iter->first; -- if (client_) -- client_->DismissPictureBuffer(iter->first); -- } -- pictures_.clear(); -- -- // And ask for a new set as requested. -- VLOGF(2) << "Requesting " << requested_num_pics_ -- << " pictures of size: " << requested_pic_size_.ToString(); -- -- VideoPixelFormat format = GfxBufferFormatToVideoPixelFormat(output_format_); -- task_runner_->PostTask( -- FROM_HERE, base::Bind(&Client::ProvidePictureBuffers, client_, -- requested_num_pics_, format, 1, requested_pic_size_, -- vaapi_picture_factory_->GetGLTextureTarget())); --} -- --void VaapiVideoDecodeAccelerator::Decode( -- const BitstreamBuffer& bitstream_buffer) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- TRACE_EVENT1("Video Decoder", "VAVDA::Decode", "Buffer id", -- bitstream_buffer.id()); -- -- if (bitstream_buffer.id() < 0) { -- if (base::SharedMemory::IsHandleValid(bitstream_buffer.handle())) -- base::SharedMemory::CloseHandle(bitstream_buffer.handle()); -- VLOGF(1) << "Invalid bitstream_buffer, id: " << bitstream_buffer.id(); -- NotifyError(INVALID_ARGUMENT); -- return; -- } -- -- // Skip empty buffers. VaapiVDA uses empty buffer as dummy buffer for flush -- // internally. -- if (bitstream_buffer.size() == 0) { -- if (base::SharedMemory::IsHandleValid(bitstream_buffer.handle())) -- base::SharedMemory::CloseHandle(bitstream_buffer.handle()); -- if (client_) -- client_->NotifyEndOfBitstreamBuffer(bitstream_buffer.id()); -- return; -- } -- -- QueueInputBuffer(bitstream_buffer); --} -- --void VaapiVideoDecodeAccelerator::RecycleVASurfaceID( -- VASurfaceID va_surface_id) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- base::AutoLock auto_lock(lock_); -- -- available_va_surfaces_.push_back(va_surface_id); -- surfaces_available_.Signal(); --} -- --void VaapiVideoDecodeAccelerator::AssignPictureBuffers( -- const std::vector& buffers) { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- base::AutoLock auto_lock(lock_); -- DCHECK(pictures_.empty()); -- -- while (!output_buffers_.empty()) -- output_buffers_.pop(); -- -- RETURN_AND_NOTIFY_ON_FAILURE( -- buffers.size() >= requested_num_pics_, -- "Got an invalid number of picture buffers. (Got " << buffers.size() -- << ", requested " << requested_num_pics_ << ")", INVALID_ARGUMENT, ); -- DCHECK(requested_pic_size_ == buffers[0].size()); -- -- const unsigned int va_format = GetVaFormatForVideoCodecProfile(profile_); -- std::vector va_surface_ids; -- RETURN_AND_NOTIFY_ON_FAILURE( -- vaapi_wrapper_->CreateSurfaces(va_format, requested_pic_size_, -- buffers.size(), &va_surface_ids), -- "Failed creating VA Surfaces", PLATFORM_FAILURE, ); -- DCHECK_EQ(va_surface_ids.size(), buffers.size()); -- -- for (size_t i = 0; i < buffers.size(); ++i) { -- uint32_t client_id = !buffers[i].client_texture_ids().empty() -- ? buffers[i].client_texture_ids()[0] -- : 0; -- uint32_t service_id = !buffers[i].service_texture_ids().empty() -- ? buffers[i].service_texture_ids()[0] -- : 0; -- -- std::unique_ptr picture(vaapi_picture_factory_->Create( -- vaapi_wrapper_, make_context_current_cb_, bind_image_cb_, -- buffers[i].id(), requested_pic_size_, service_id, client_id)); -- RETURN_AND_NOTIFY_ON_FAILURE( -- picture.get(), "Failed creating a VaapiPicture", PLATFORM_FAILURE, ); -- -- if (output_mode_ == Config::OutputMode::ALLOCATE) { -- RETURN_AND_NOTIFY_ON_FAILURE( -- picture->Allocate(output_format_), -- "Failed to allocate memory for a VaapiPicture", PLATFORM_FAILURE, ); -- output_buffers_.push(buffers[i].id()); -- } -- bool inserted = -- pictures_.insert(std::make_pair(buffers[i].id(), std::move(picture))) -- .second; -- DCHECK(inserted); -- -- available_va_surfaces_.push_back(va_surface_ids[i]); -- surfaces_available_.Signal(); -- } -- -- // Resume DecodeTask if it is still in decoding state. -- if (state_ == kDecoding) { -- decoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -- base::Unretained(this))); -- } --} -- --#if defined(USE_OZONE) --static void CloseGpuMemoryBufferHandle( -- const gfx::GpuMemoryBufferHandle& handle) { -- for (const auto& fd : handle.native_pixmap_handle.fds) { -- // Close the fd by wrapping it in a ScopedFD and letting -- // it fall out of scope. -- base::ScopedFD scoped_fd(fd.fd); -- } --} -- --void VaapiVideoDecodeAccelerator::ImportBufferForPicture( -- int32_t picture_buffer_id, -- const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) { -- VLOGF(2) << "Importing picture id: " << picture_buffer_id; -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- if (output_mode_ != Config::OutputMode::IMPORT) { -- CloseGpuMemoryBufferHandle(gpu_memory_buffer_handle); -- VLOGF(1) << "Cannot import in non-import mode"; -- NotifyError(INVALID_ARGUMENT); -- return; -- } -- -- VaapiPicture* picture = PictureById(picture_buffer_id); -- if (!picture) { -- CloseGpuMemoryBufferHandle(gpu_memory_buffer_handle); -- -- // It's possible that we've already posted a DismissPictureBuffer for this -- // picture, but it has not yet executed when this ImportBufferForPicture -- // was posted to us by the client. In that case just ignore this (we've -- // already dismissed it and accounted for that). -- VLOGF(3) << "got picture id=" << picture_buffer_id -- << " not in use (anymore?)."; -- return; -- } -- -- if (!picture->ImportGpuMemoryBufferHandle(output_format_, -- gpu_memory_buffer_handle)) { -- // ImportGpuMemoryBufferHandle will close the handles even on failure, so -- // we don't need to do this ourselves. -- VLOGF(1) << "Failed to import GpuMemoryBufferHandle"; -- NotifyError(PLATFORM_FAILURE); -- return; -- } -- -- ReusePictureBuffer(picture_buffer_id); --} --#endif -- --void VaapiVideoDecodeAccelerator::ReusePictureBuffer( -- int32_t picture_buffer_id) { -- VLOGF(4) << "picture id=" << picture_buffer_id; -- DCHECK(task_runner_->BelongsToCurrentThread()); -- TRACE_EVENT1("Video Decoder", "VAVDA::ReusePictureBuffer", "Picture id", -- picture_buffer_id); -- -- if (!PictureById(picture_buffer_id)) { -- // It's possible that we've already posted a DismissPictureBuffer for this -- // picture, but it has not yet executed when this ReusePictureBuffer -- // was posted to us by the client. In that case just ignore this (we've -- // already dismissed it and accounted for that). -- VLOGF(3) << "got picture id=" << picture_buffer_id -- << " not in use (anymore?)."; -- return; -- } -- -- --num_frames_at_client_; -- TRACE_COUNTER1("Video Decoder", "Textures at client", num_frames_at_client_); -- -- output_buffers_.push(picture_buffer_id); -- TryOutputSurface(); --} -- --void VaapiVideoDecodeAccelerator::FlushTask() { -- VLOGF(2); -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- DCHECK(curr_input_buffer_.get() && curr_input_buffer_->IsFlushRequest()); -- -- curr_input_buffer_.reset(); -- -- // First flush all the pictures that haven't been outputted, notifying the -- // client to output them. -- bool res = decoder_->Flush(); -- RETURN_AND_NOTIFY_ON_FAILURE(res, "Failed flushing the decoder.", -- PLATFORM_FAILURE, ); -- -- // Put the decoder in idle state, ready to resume. -- decoder_->Reset(); -- -- task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiVideoDecodeAccelerator::FinishFlush, weak_this_)); --} -- --void VaapiVideoDecodeAccelerator::Flush() { -- VLOGF(2) << "Got flush request"; -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- // Queue a dummy buffer, which means flush. -- QueueInputBuffer(media::BitstreamBuffer()); --} -- --void VaapiVideoDecodeAccelerator::FinishFlush() { -- VLOGF(2); -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- finish_flush_pending_ = false; -- -- base::AutoLock auto_lock(lock_); -- if (state_ != kDecoding) { -- DCHECK(state_ == kDestroying || state_ == kResetting) << state_; -- return; -- } -- -- // Still waiting for textures from client to finish outputting all pending -- // frames. Try again later. -- if (!pending_output_cbs_.empty()) { -- finish_flush_pending_ = true; -- return; -- } -- -- // Resume decoding if necessary. -- if (input_buffers_.empty()) { -- state_ = kIdle; -- } else { -- decoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -- base::Unretained(this))); -- } -- -- task_runner_->PostTask(FROM_HERE, -- base::Bind(&Client::NotifyFlushDone, client_)); --} -- --void VaapiVideoDecodeAccelerator::ResetTask() { -- VLOGF(2); -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- -- // All the decoding tasks from before the reset request from client are done -- // by now, as this task was scheduled after them and client is expected not -- // to call Decode() after Reset() and before NotifyResetDone. -- decoder_->Reset(); -- -- base::AutoLock auto_lock(lock_); -- -- // Return current input buffer, if present. -- if (curr_input_buffer_.get()) -- ReturnCurrInputBuffer_Locked(); -- -- // And let client know that we are done with reset. -- task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiVideoDecodeAccelerator::FinishReset, weak_this_)); --} -- --void VaapiVideoDecodeAccelerator::Reset() { -- VLOGF(2) << "Got reset request"; -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- // This will make any new decode tasks exit early. -- base::AutoLock auto_lock(lock_); -- state_ = kResetting; -- finish_flush_pending_ = false; -- -- // Drop all remaining input buffers, if present. -- while (!input_buffers_.empty()) -- input_buffers_.pop(); -- TRACE_COUNTER1("Video Decoder", "Input buffers", input_buffers_.size()); -- -- decoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::ResetTask, -- base::Unretained(this))); -- -- input_ready_.Signal(); -- surfaces_available_.Signal(); --} -- --void VaapiVideoDecodeAccelerator::FinishReset() { -- VLOGF(2); -- DCHECK(task_runner_->BelongsToCurrentThread()); -- base::AutoLock auto_lock(lock_); -- -- if (state_ != kResetting) { -- DCHECK(state_ == kDestroying || state_ == kUninitialized) << state_; -- return; // We could've gotten destroyed already. -- } -- -- // Drop pending outputs. -- while (!pending_output_cbs_.empty()) -- pending_output_cbs_.pop(); -- -- if (awaiting_va_surfaces_recycle_) { -- // Decoder requested a new surface set while we were waiting for it to -- // finish the last DecodeTask, running at the time of Reset(). -- // Let the surface set change finish first before resetting. -- task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiVideoDecodeAccelerator::FinishReset, weak_this_)); -- return; -- } -- -- state_ = kIdle; -- -- task_runner_->PostTask(FROM_HERE, -- base::Bind(&Client::NotifyResetDone, client_)); -- -- // The client might have given us new buffers via Decode() while we were -- // resetting and might be waiting for our move, and not call Decode() anymore -- // until we return something. Post a DecodeTask() so that we won't -- // sleep forever waiting for Decode() in that case. Having two of them -- // in the pipe is harmless, the additional one will return as soon as it sees -- // that we are back in kDecoding state. -- if (!input_buffers_.empty()) { -- state_ = kDecoding; -- decoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::DecodeTask, -- base::Unretained(this))); -- } --} -- --void VaapiVideoDecodeAccelerator::Cleanup() { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- -- base::AutoLock auto_lock(lock_); -- if (state_ == kUninitialized || state_ == kDestroying) -- return; -- -- VLOGF(2) << "Destroying VAVDA"; -- state_ = kDestroying; -- -- client_ptr_factory_.reset(); -- weak_this_factory_.InvalidateWeakPtrs(); -- -- // Signal all potential waiters on the decoder_thread_, let them early-exit, -- // as we've just moved to the kDestroying state, and wait for all tasks -- // to finish. -- input_ready_.Signal(); -- surfaces_available_.Signal(); -- { -- base::AutoUnlock auto_unlock(lock_); -- decoder_thread_.Stop(); -- } -- -- state_ = kUninitialized; --} -- --void VaapiVideoDecodeAccelerator::Destroy() { -- DCHECK(task_runner_->BelongsToCurrentThread()); -- Cleanup(); -- delete this; --} -- --bool VaapiVideoDecodeAccelerator::TryToSetupDecodeOnSeparateThread( -- const base::WeakPtr& decode_client, -- const scoped_refptr& decode_task_runner) { -- return false; --} -- --bool VaapiVideoDecodeAccelerator::DecodeSurface( -- const scoped_refptr& dec_surface) { -- const bool result = vaapi_wrapper_->ExecuteAndDestroyPendingBuffers( -- dec_surface->va_surface()->id()); -- if (!result) -- VLOGF(1) << "Failed decoding picture"; -- return result; --} -- --void VaapiVideoDecodeAccelerator::SurfaceReady( -- const scoped_refptr& dec_surface) { -- if (!task_runner_->BelongsToCurrentThread()) { -- task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoDecodeAccelerator::SurfaceReady, -- weak_this_, dec_surface)); -- return; -- } -- -- DCHECK(!awaiting_va_surfaces_recycle_); -- -- { -- base::AutoLock auto_lock(lock_); -- // Drop any requests to output if we are resetting or being destroyed. -- if (state_ == kResetting || state_ == kDestroying) -- return; -- } -- -- pending_output_cbs_.push( -- base::Bind(&VaapiVideoDecodeAccelerator::OutputPicture, weak_this_, -- dec_surface->va_surface(), dec_surface->bitstream_id(), -- dec_surface->visible_rect())); -- -- TryOutputSurface(); --} -- --scoped_refptr --VaapiVideoDecodeAccelerator::CreateSurface() { -- DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); -- base::AutoLock auto_lock(lock_); -- -- if (available_va_surfaces_.empty()) -- return nullptr; -- -- DCHECK(!awaiting_va_surfaces_recycle_); -- scoped_refptr va_surface(new VASurface( -- available_va_surfaces_.front(), requested_pic_size_, -- vaapi_wrapper_->va_surface_format(), va_surface_release_cb_)); -- available_va_surfaces_.pop_front(); -- -- return new VaapiDecodeSurface(curr_input_buffer_->id(), va_surface); --} -- --VaapiVideoDecodeAccelerator::VaapiH264Accelerator::VaapiH264Accelerator( -- VaapiVideoDecodeAccelerator* vaapi_dec, -- VaapiWrapper* vaapi_wrapper) -- : vaapi_wrapper_(vaapi_wrapper), vaapi_dec_(vaapi_dec) { -- DCHECK(vaapi_wrapper_); -- DCHECK(vaapi_dec_); --} -- --VaapiVideoDecodeAccelerator::VaapiH264Accelerator::~VaapiH264Accelerator() {} -- --scoped_refptr --VaapiVideoDecodeAccelerator::VaapiH264Accelerator::CreateH264Picture() { -- scoped_refptr va_surface = vaapi_dec_->CreateSurface(); -- if (!va_surface) -- return nullptr; -- -- return new VaapiH264Picture(std::move(va_surface)); --} -- --// Fill |va_pic| with default/neutral values. --static void InitVAPicture(VAPictureH264* va_pic) { -- memset(va_pic, 0, sizeof(*va_pic)); -- va_pic->picture_id = VA_INVALID_ID; -- va_pic->flags = VA_PICTURE_H264_INVALID; --} -- --bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitFrameMetadata( -- const H264SPS* sps, -- const H264PPS* pps, -- const H264DPB& dpb, -- const H264Picture::Vector& ref_pic_listp0, -- const H264Picture::Vector& ref_pic_listb0, -- const H264Picture::Vector& ref_pic_listb1, -- const scoped_refptr& pic) { -- VAPictureParameterBufferH264 pic_param; -- memset(&pic_param, 0, sizeof(pic_param)); -- --#define FROM_SPS_TO_PP(a) pic_param.a = sps->a --#define FROM_SPS_TO_PP2(a, b) pic_param.b = sps->a -- FROM_SPS_TO_PP2(pic_width_in_mbs_minus1, picture_width_in_mbs_minus1); -- // This assumes non-interlaced video -- FROM_SPS_TO_PP2(pic_height_in_map_units_minus1, picture_height_in_mbs_minus1); -- FROM_SPS_TO_PP(bit_depth_luma_minus8); -- FROM_SPS_TO_PP(bit_depth_chroma_minus8); --#undef FROM_SPS_TO_PP --#undef FROM_SPS_TO_PP2 -- --#define FROM_SPS_TO_PP_SF(a) pic_param.seq_fields.bits.a = sps->a --#define FROM_SPS_TO_PP_SF2(a, b) pic_param.seq_fields.bits.b = sps->a -- FROM_SPS_TO_PP_SF(chroma_format_idc); -- FROM_SPS_TO_PP_SF2(separate_colour_plane_flag, -- residual_colour_transform_flag); -- FROM_SPS_TO_PP_SF(gaps_in_frame_num_value_allowed_flag); -- FROM_SPS_TO_PP_SF(frame_mbs_only_flag); -- FROM_SPS_TO_PP_SF(mb_adaptive_frame_field_flag); -- FROM_SPS_TO_PP_SF(direct_8x8_inference_flag); -- pic_param.seq_fields.bits.MinLumaBiPredSize8x8 = (sps->level_idc >= 31); -- FROM_SPS_TO_PP_SF(log2_max_frame_num_minus4); -- FROM_SPS_TO_PP_SF(pic_order_cnt_type); -- FROM_SPS_TO_PP_SF(log2_max_pic_order_cnt_lsb_minus4); -- FROM_SPS_TO_PP_SF(delta_pic_order_always_zero_flag); --#undef FROM_SPS_TO_PP_SF --#undef FROM_SPS_TO_PP_SF2 -- --#define FROM_PPS_TO_PP(a) pic_param.a = pps->a -- FROM_PPS_TO_PP(pic_init_qp_minus26); -- FROM_PPS_TO_PP(pic_init_qs_minus26); -- FROM_PPS_TO_PP(chroma_qp_index_offset); -- FROM_PPS_TO_PP(second_chroma_qp_index_offset); --#undef FROM_PPS_TO_PP -- --#define FROM_PPS_TO_PP_PF(a) pic_param.pic_fields.bits.a = pps->a --#define FROM_PPS_TO_PP_PF2(a, b) pic_param.pic_fields.bits.b = pps->a -- FROM_PPS_TO_PP_PF(entropy_coding_mode_flag); -- FROM_PPS_TO_PP_PF(weighted_pred_flag); -- FROM_PPS_TO_PP_PF(weighted_bipred_idc); -- FROM_PPS_TO_PP_PF(transform_8x8_mode_flag); -- -- pic_param.pic_fields.bits.field_pic_flag = 0; -- FROM_PPS_TO_PP_PF(constrained_intra_pred_flag); -- FROM_PPS_TO_PP_PF2(bottom_field_pic_order_in_frame_present_flag, -- pic_order_present_flag); -- FROM_PPS_TO_PP_PF(deblocking_filter_control_present_flag); -- FROM_PPS_TO_PP_PF(redundant_pic_cnt_present_flag); -- pic_param.pic_fields.bits.reference_pic_flag = pic->ref; --#undef FROM_PPS_TO_PP_PF --#undef FROM_PPS_TO_PP_PF2 -- -- pic_param.frame_num = pic->frame_num; -- -- InitVAPicture(&pic_param.CurrPic); -- FillVAPicture(&pic_param.CurrPic, pic); -- -- // Init reference pictures' array. -- for (int i = 0; i < 16; ++i) -- InitVAPicture(&pic_param.ReferenceFrames[i]); -- -- // And fill it with picture info from DPB. -- FillVARefFramesFromDPB(dpb, pic_param.ReferenceFrames, -- arraysize(pic_param.ReferenceFrames)); -- -- pic_param.num_ref_frames = sps->max_num_ref_frames; -- -- if (!vaapi_wrapper_->SubmitBuffer(VAPictureParameterBufferType, -- sizeof(pic_param), &pic_param)) -- return false; -- -- VAIQMatrixBufferH264 iq_matrix_buf; -- memset(&iq_matrix_buf, 0, sizeof(iq_matrix_buf)); -- -- if (pps->pic_scaling_matrix_present_flag) { -- for (int i = 0; i < 6; ++i) { -- for (int j = 0; j < 16; ++j) -- iq_matrix_buf.ScalingList4x4[i][kZigzagScan4x4[j]] = -- pps->scaling_list4x4[i][j]; -- } -- -- for (int i = 0; i < 2; ++i) { -- for (int j = 0; j < 64; ++j) -- iq_matrix_buf.ScalingList8x8[i][kZigzagScan8x8[j]] = -- pps->scaling_list8x8[i][j]; -- } -- } else { -- for (int i = 0; i < 6; ++i) { -- for (int j = 0; j < 16; ++j) -- iq_matrix_buf.ScalingList4x4[i][kZigzagScan4x4[j]] = -- sps->scaling_list4x4[i][j]; -- } -- -- for (int i = 0; i < 2; ++i) { -- for (int j = 0; j < 64; ++j) -- iq_matrix_buf.ScalingList8x8[i][kZigzagScan8x8[j]] = -- sps->scaling_list8x8[i][j]; -- } -- } -- -- return vaapi_wrapper_->SubmitBuffer(VAIQMatrixBufferType, -- sizeof(iq_matrix_buf), &iq_matrix_buf); --} -- --bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitSlice( -- const H264PPS* pps, -- const H264SliceHeader* slice_hdr, -- const H264Picture::Vector& ref_pic_list0, -- const H264Picture::Vector& ref_pic_list1, -- const scoped_refptr& pic, -- const uint8_t* data, -- size_t size) { -- VASliceParameterBufferH264 slice_param; -- memset(&slice_param, 0, sizeof(slice_param)); -- -- slice_param.slice_data_size = slice_hdr->nalu_size; -- slice_param.slice_data_offset = 0; -- slice_param.slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -- slice_param.slice_data_bit_offset = slice_hdr->header_bit_size; -- --#define SHDRToSP(a) slice_param.a = slice_hdr->a -- SHDRToSP(first_mb_in_slice); -- slice_param.slice_type = slice_hdr->slice_type % 5; -- SHDRToSP(direct_spatial_mv_pred_flag); -- -- // TODO posciak: make sure parser sets those even when override flags -- // in slice header is off. -- SHDRToSP(num_ref_idx_l0_active_minus1); -- SHDRToSP(num_ref_idx_l1_active_minus1); -- SHDRToSP(cabac_init_idc); -- SHDRToSP(slice_qp_delta); -- SHDRToSP(disable_deblocking_filter_idc); -- SHDRToSP(slice_alpha_c0_offset_div2); -- SHDRToSP(slice_beta_offset_div2); -- -- if (((slice_hdr->IsPSlice() || slice_hdr->IsSPSlice()) && -- pps->weighted_pred_flag) || -- (slice_hdr->IsBSlice() && pps->weighted_bipred_idc == 1)) { -- SHDRToSP(luma_log2_weight_denom); -- SHDRToSP(chroma_log2_weight_denom); -- -- SHDRToSP(luma_weight_l0_flag); -- SHDRToSP(luma_weight_l1_flag); -- -- SHDRToSP(chroma_weight_l0_flag); -- SHDRToSP(chroma_weight_l1_flag); -- -- for (int i = 0; i <= slice_param.num_ref_idx_l0_active_minus1; ++i) { -- slice_param.luma_weight_l0[i] = -- slice_hdr->pred_weight_table_l0.luma_weight[i]; -- slice_param.luma_offset_l0[i] = -- slice_hdr->pred_weight_table_l0.luma_offset[i]; -- -- for (int j = 0; j < 2; ++j) { -- slice_param.chroma_weight_l0[i][j] = -- slice_hdr->pred_weight_table_l0.chroma_weight[i][j]; -- slice_param.chroma_offset_l0[i][j] = -- slice_hdr->pred_weight_table_l0.chroma_offset[i][j]; -- } -- } -- -- if (slice_hdr->IsBSlice()) { -- for (int i = 0; i <= slice_param.num_ref_idx_l1_active_minus1; ++i) { -- slice_param.luma_weight_l1[i] = -- slice_hdr->pred_weight_table_l1.luma_weight[i]; -- slice_param.luma_offset_l1[i] = -- slice_hdr->pred_weight_table_l1.luma_offset[i]; -- -- for (int j = 0; j < 2; ++j) { -- slice_param.chroma_weight_l1[i][j] = -- slice_hdr->pred_weight_table_l1.chroma_weight[i][j]; -- slice_param.chroma_offset_l1[i][j] = -- slice_hdr->pred_weight_table_l1.chroma_offset[i][j]; -- } -- } -- } -- } -- -- static_assert( -- arraysize(slice_param.RefPicList0) == arraysize(slice_param.RefPicList1), -- "Invalid RefPicList sizes"); -- -- for (size_t i = 0; i < arraysize(slice_param.RefPicList0); ++i) { -- InitVAPicture(&slice_param.RefPicList0[i]); -- InitVAPicture(&slice_param.RefPicList1[i]); -- } -- -- for (size_t i = 0; -- i < ref_pic_list0.size() && i < arraysize(slice_param.RefPicList0); -- ++i) { -- if (ref_pic_list0[i]) -- FillVAPicture(&slice_param.RefPicList0[i], ref_pic_list0[i]); -- } -- for (size_t i = 0; -- i < ref_pic_list1.size() && i < arraysize(slice_param.RefPicList1); -- ++i) { -- if (ref_pic_list1[i]) -- FillVAPicture(&slice_param.RefPicList1[i], ref_pic_list1[i]); -- } -- -- if (!vaapi_wrapper_->SubmitBuffer(VASliceParameterBufferType, -- sizeof(slice_param), &slice_param)) -- return false; -- -- // Can't help it, blame libva... -- void* non_const_ptr = const_cast(data); -- return vaapi_wrapper_->SubmitBuffer(VASliceDataBufferType, size, -- non_const_ptr); --} -- --bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitDecode( -- const scoped_refptr& pic) { -- VLOGF(4) << "Decoding POC " << pic->pic_order_cnt; -- scoped_refptr dec_surface = -- H264PictureToVaapiDecodeSurface(pic); -- -- return vaapi_dec_->DecodeSurface(dec_surface); --} -- --bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::OutputPicture( -- const scoped_refptr& pic) { -- scoped_refptr dec_surface = -- H264PictureToVaapiDecodeSurface(pic); -- dec_surface->set_visible_rect(pic->visible_rect); -- vaapi_dec_->SurfaceReady(dec_surface); -- -- return true; --} -- --void VaapiVideoDecodeAccelerator::VaapiH264Accelerator::Reset() { -- vaapi_wrapper_->DestroyPendingBuffers(); --} -- --scoped_refptr --VaapiVideoDecodeAccelerator::VaapiH264Accelerator:: -- H264PictureToVaapiDecodeSurface(const scoped_refptr& pic) { -- VaapiH264Picture* vaapi_pic = pic->AsVaapiH264Picture(); -- CHECK(vaapi_pic); -- return vaapi_pic->dec_surface(); --} -- --void VaapiVideoDecodeAccelerator::VaapiH264Accelerator::FillVAPicture( -- VAPictureH264* va_pic, -- scoped_refptr pic) { -- VASurfaceID va_surface_id = VA_INVALID_SURFACE; -- -- if (!pic->nonexisting) { -- scoped_refptr dec_surface = -- H264PictureToVaapiDecodeSurface(pic); -- va_surface_id = dec_surface->va_surface()->id(); -- } -- -- va_pic->picture_id = va_surface_id; -- va_pic->frame_idx = pic->frame_num; -- va_pic->flags = 0; -- -- switch (pic->field) { -- case H264Picture::FIELD_NONE: -- break; -- case H264Picture::FIELD_TOP: -- va_pic->flags |= VA_PICTURE_H264_TOP_FIELD; -- break; -- case H264Picture::FIELD_BOTTOM: -- va_pic->flags |= VA_PICTURE_H264_BOTTOM_FIELD; -- break; -- } -- -- if (pic->ref) { -- va_pic->flags |= pic->long_term ? VA_PICTURE_H264_LONG_TERM_REFERENCE -- : VA_PICTURE_H264_SHORT_TERM_REFERENCE; -- } -- -- va_pic->TopFieldOrderCnt = pic->top_field_order_cnt; -- va_pic->BottomFieldOrderCnt = pic->bottom_field_order_cnt; --} -- --int VaapiVideoDecodeAccelerator::VaapiH264Accelerator::FillVARefFramesFromDPB( -- const H264DPB& dpb, -- VAPictureH264* va_pics, -- int num_pics) { -- H264Picture::Vector::const_reverse_iterator rit; -- int i; -- -- // Return reference frames in reverse order of insertion. -- // Libva does not document this, but other implementations (e.g. mplayer) -- // do it this way as well. -- for (rit = dpb.rbegin(), i = 0; rit != dpb.rend() && i < num_pics; ++rit) { -- if ((*rit)->ref) -- FillVAPicture(&va_pics[i++], *rit); -- } -- -- return i; --} -- --VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::VaapiVP8Accelerator( -- VaapiVideoDecodeAccelerator* vaapi_dec, -- VaapiWrapper* vaapi_wrapper) -- : vaapi_wrapper_(vaapi_wrapper), vaapi_dec_(vaapi_dec) { -- DCHECK(vaapi_wrapper_); -- DCHECK(vaapi_dec_); --} -- --VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::~VaapiVP8Accelerator() {} -- --scoped_refptr --VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::CreateVP8Picture() { -- scoped_refptr va_surface = vaapi_dec_->CreateSurface(); -- if (!va_surface) -- return nullptr; -- -- return new VaapiVP8Picture(std::move(va_surface)); --} -- --#define ARRAY_MEMCPY_CHECKED(to, from) \ -- do { \ -- static_assert(sizeof(to) == sizeof(from), \ -- #from " and " #to " arrays must be of same size"); \ -- memcpy(to, from, sizeof(to)); \ -- } while (0) -- --bool VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::SubmitDecode( -- const scoped_refptr& pic, -- const Vp8FrameHeader* frame_hdr, -- const scoped_refptr& last_frame, -- const scoped_refptr& golden_frame, -- const scoped_refptr& alt_frame) { -- VAIQMatrixBufferVP8 iq_matrix_buf; -- memset(&iq_matrix_buf, 0, sizeof(VAIQMatrixBufferVP8)); -- -- const Vp8SegmentationHeader& sgmnt_hdr = frame_hdr->segmentation_hdr; -- const Vp8QuantizationHeader& quant_hdr = frame_hdr->quantization_hdr; -- static_assert(arraysize(iq_matrix_buf.quantization_index) == kMaxMBSegments, -- "incorrect quantization matrix size"); -- for (size_t i = 0; i < kMaxMBSegments; ++i) { -- int q = quant_hdr.y_ac_qi; -- -- if (sgmnt_hdr.segmentation_enabled) { -- if (sgmnt_hdr.segment_feature_mode == -- Vp8SegmentationHeader::FEATURE_MODE_ABSOLUTE) -- q = sgmnt_hdr.quantizer_update_value[i]; -- else -- q += sgmnt_hdr.quantizer_update_value[i]; -- } -- --#define CLAMP_Q(q) std::min(std::max(q, 0), 127) -- static_assert(arraysize(iq_matrix_buf.quantization_index[i]) == 6, -- "incorrect quantization matrix size"); -- iq_matrix_buf.quantization_index[i][0] = CLAMP_Q(q); -- iq_matrix_buf.quantization_index[i][1] = CLAMP_Q(q + quant_hdr.y_dc_delta); -- iq_matrix_buf.quantization_index[i][2] = CLAMP_Q(q + quant_hdr.y2_dc_delta); -- iq_matrix_buf.quantization_index[i][3] = CLAMP_Q(q + quant_hdr.y2_ac_delta); -- iq_matrix_buf.quantization_index[i][4] = CLAMP_Q(q + quant_hdr.uv_dc_delta); -- iq_matrix_buf.quantization_index[i][5] = CLAMP_Q(q + quant_hdr.uv_ac_delta); --#undef CLAMP_Q -- } -- -- if (!vaapi_wrapper_->SubmitBuffer( -- VAIQMatrixBufferType, sizeof(VAIQMatrixBufferVP8), &iq_matrix_buf)) -- return false; -- -- VAProbabilityDataBufferVP8 prob_buf; -- memset(&prob_buf, 0, sizeof(VAProbabilityDataBufferVP8)); -- -- const Vp8EntropyHeader& entr_hdr = frame_hdr->entropy_hdr; -- ARRAY_MEMCPY_CHECKED(prob_buf.dct_coeff_probs, entr_hdr.coeff_probs); -- -- if (!vaapi_wrapper_->SubmitBuffer(VAProbabilityBufferType, -- sizeof(VAProbabilityDataBufferVP8), -- &prob_buf)) -- return false; -- -- VAPictureParameterBufferVP8 pic_param; -- memset(&pic_param, 0, sizeof(VAPictureParameterBufferVP8)); -- pic_param.frame_width = frame_hdr->width; -- pic_param.frame_height = frame_hdr->height; -- -- if (last_frame) { -- scoped_refptr last_frame_surface = -- VP8PictureToVaapiDecodeSurface(last_frame); -- pic_param.last_ref_frame = last_frame_surface->va_surface()->id(); -- } else { -- pic_param.last_ref_frame = VA_INVALID_SURFACE; -- } -- -- if (golden_frame) { -- scoped_refptr golden_frame_surface = -- VP8PictureToVaapiDecodeSurface(golden_frame); -- pic_param.golden_ref_frame = golden_frame_surface->va_surface()->id(); -- } else { -- pic_param.golden_ref_frame = VA_INVALID_SURFACE; -- } -- -- if (alt_frame) { -- scoped_refptr alt_frame_surface = -- VP8PictureToVaapiDecodeSurface(alt_frame); -- pic_param.alt_ref_frame = alt_frame_surface->va_surface()->id(); -- } else { -- pic_param.alt_ref_frame = VA_INVALID_SURFACE; -- } -- -- pic_param.out_of_loop_frame = VA_INVALID_SURFACE; -- -- const Vp8LoopFilterHeader& lf_hdr = frame_hdr->loopfilter_hdr; -- --#define FHDR_TO_PP_PF(a, b) pic_param.pic_fields.bits.a = (b) -- FHDR_TO_PP_PF(key_frame, frame_hdr->IsKeyframe() ? 0 : 1); -- FHDR_TO_PP_PF(version, frame_hdr->version); -- FHDR_TO_PP_PF(segmentation_enabled, sgmnt_hdr.segmentation_enabled); -- FHDR_TO_PP_PF(update_mb_segmentation_map, -- sgmnt_hdr.update_mb_segmentation_map); -- FHDR_TO_PP_PF(update_segment_feature_data, -- sgmnt_hdr.update_segment_feature_data); -- FHDR_TO_PP_PF(filter_type, lf_hdr.type); -- FHDR_TO_PP_PF(sharpness_level, lf_hdr.sharpness_level); -- FHDR_TO_PP_PF(loop_filter_adj_enable, lf_hdr.loop_filter_adj_enable); -- FHDR_TO_PP_PF(mode_ref_lf_delta_update, lf_hdr.mode_ref_lf_delta_update); -- FHDR_TO_PP_PF(sign_bias_golden, frame_hdr->sign_bias_golden); -- FHDR_TO_PP_PF(sign_bias_alternate, frame_hdr->sign_bias_alternate); -- FHDR_TO_PP_PF(mb_no_coeff_skip, frame_hdr->mb_no_skip_coeff); -- FHDR_TO_PP_PF(loop_filter_disable, lf_hdr.level == 0); --#undef FHDR_TO_PP_PF -- -- ARRAY_MEMCPY_CHECKED(pic_param.mb_segment_tree_probs, sgmnt_hdr.segment_prob); -- -- static_assert(arraysize(sgmnt_hdr.lf_update_value) == -- arraysize(pic_param.loop_filter_level), -- "loop filter level arrays mismatch"); -- for (size_t i = 0; i < arraysize(sgmnt_hdr.lf_update_value); ++i) { -- int lf_level = lf_hdr.level; -- if (sgmnt_hdr.segmentation_enabled) { -- if (sgmnt_hdr.segment_feature_mode == -- Vp8SegmentationHeader::FEATURE_MODE_ABSOLUTE) -- lf_level = sgmnt_hdr.lf_update_value[i]; -- else -- lf_level += sgmnt_hdr.lf_update_value[i]; -- } -- -- // Clamp to [0..63] range. -- lf_level = std::min(std::max(lf_level, 0), 63); -- pic_param.loop_filter_level[i] = lf_level; -- } -- -- static_assert( -- arraysize(lf_hdr.ref_frame_delta) == -- arraysize(pic_param.loop_filter_deltas_ref_frame) && -- arraysize(lf_hdr.mb_mode_delta) == -- arraysize(pic_param.loop_filter_deltas_mode) && -- arraysize(lf_hdr.ref_frame_delta) == arraysize(lf_hdr.mb_mode_delta), -- "loop filter deltas arrays size mismatch"); -- for (size_t i = 0; i < arraysize(lf_hdr.ref_frame_delta); ++i) { -- pic_param.loop_filter_deltas_ref_frame[i] = lf_hdr.ref_frame_delta[i]; -- pic_param.loop_filter_deltas_mode[i] = lf_hdr.mb_mode_delta[i]; -- } -- --#define FHDR_TO_PP(a) pic_param.a = frame_hdr->a -- FHDR_TO_PP(prob_skip_false); -- FHDR_TO_PP(prob_intra); -- FHDR_TO_PP(prob_last); -- FHDR_TO_PP(prob_gf); --#undef FHDR_TO_PP -- -- ARRAY_MEMCPY_CHECKED(pic_param.y_mode_probs, entr_hdr.y_mode_probs); -- ARRAY_MEMCPY_CHECKED(pic_param.uv_mode_probs, entr_hdr.uv_mode_probs); -- ARRAY_MEMCPY_CHECKED(pic_param.mv_probs, entr_hdr.mv_probs); -- -- pic_param.bool_coder_ctx.range = frame_hdr->bool_dec_range; -- pic_param.bool_coder_ctx.value = frame_hdr->bool_dec_value; -- pic_param.bool_coder_ctx.count = frame_hdr->bool_dec_count; -- -- if (!vaapi_wrapper_->SubmitBuffer(VAPictureParameterBufferType, -- sizeof(pic_param), &pic_param)) -- return false; -- -- VASliceParameterBufferVP8 slice_param; -- memset(&slice_param, 0, sizeof(slice_param)); -- slice_param.slice_data_size = frame_hdr->frame_size; -- slice_param.slice_data_offset = frame_hdr->first_part_offset; -- slice_param.slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -- slice_param.macroblock_offset = frame_hdr->macroblock_bit_offset; -- // Number of DCT partitions plus control partition. -- slice_param.num_of_partitions = frame_hdr->num_of_dct_partitions + 1; -- -- // Per VAAPI, this size only includes the size of the macroblock data in -- // the first partition (in bytes), so we have to subtract the header size. -- slice_param.partition_size[0] = -- frame_hdr->first_part_size - ((frame_hdr->macroblock_bit_offset + 7) / 8); -- -- for (size_t i = 0; i < frame_hdr->num_of_dct_partitions; ++i) -- slice_param.partition_size[i + 1] = frame_hdr->dct_partition_sizes[i]; -- -- if (!vaapi_wrapper_->SubmitBuffer(VASliceParameterBufferType, -- sizeof(VASliceParameterBufferVP8), -- &slice_param)) -- return false; -- -- void* non_const_ptr = const_cast(frame_hdr->data); -- if (!vaapi_wrapper_->SubmitBuffer(VASliceDataBufferType, -- frame_hdr->frame_size, non_const_ptr)) -- return false; -- -- scoped_refptr dec_surface = -- VP8PictureToVaapiDecodeSurface(pic); -- -- return vaapi_dec_->DecodeSurface(dec_surface); --} -- --bool VaapiVideoDecodeAccelerator::VaapiVP8Accelerator::OutputPicture( -- const scoped_refptr& pic) { -- scoped_refptr dec_surface = -- VP8PictureToVaapiDecodeSurface(pic); -- dec_surface->set_visible_rect(pic->visible_rect); -- vaapi_dec_->SurfaceReady(dec_surface); -- return true; --} -- --scoped_refptr --VaapiVideoDecodeAccelerator::VaapiVP8Accelerator:: -- VP8PictureToVaapiDecodeSurface(const scoped_refptr& pic) { -- VaapiVP8Picture* vaapi_pic = pic->AsVaapiVP8Picture(); -- CHECK(vaapi_pic); -- return vaapi_pic->dec_surface(); --} -- --VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::VaapiVP9Accelerator( -- VaapiVideoDecodeAccelerator* vaapi_dec, -- VaapiWrapper* vaapi_wrapper) -- : vaapi_wrapper_(vaapi_wrapper), vaapi_dec_(vaapi_dec) { -- DCHECK(vaapi_wrapper_); -- DCHECK(vaapi_dec_); --} -- --VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::~VaapiVP9Accelerator() {} -- --scoped_refptr --VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::CreateVP9Picture() { -- scoped_refptr va_surface = vaapi_dec_->CreateSurface(); -- if (!va_surface) -- return nullptr; -- -- return new VaapiVP9Picture(std::move(va_surface)); --} -- --bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::SubmitDecode( -- const scoped_refptr& pic, -- const Vp9SegmentationParams& seg, -- const Vp9LoopFilterParams& lf, -- const std::vector>& ref_pictures, -- const base::Closure& done_cb) { -- // |done_cb| should be null as we return false from IsFrameContextRequired(). -- DCHECK(done_cb.is_null()); -- -- VADecPictureParameterBufferVP9 pic_param; -- memset(&pic_param, 0, sizeof(pic_param)); -- -- const Vp9FrameHeader* frame_hdr = pic->frame_hdr.get(); -- DCHECK(frame_hdr); -- -- pic_param.frame_width = base::checked_cast(frame_hdr->frame_width); -- pic_param.frame_height = -- base::checked_cast(frame_hdr->frame_height); -- -- CHECK_EQ(ref_pictures.size(), arraysize(pic_param.reference_frames)); -- for (size_t i = 0; i < arraysize(pic_param.reference_frames); ++i) { -- VASurfaceID va_surface_id; -- if (ref_pictures[i]) { -- scoped_refptr surface = -- VP9PictureToVaapiDecodeSurface(ref_pictures[i]); -- va_surface_id = surface->va_surface()->id(); -- } else { -- va_surface_id = VA_INVALID_SURFACE; -- } -- -- pic_param.reference_frames[i] = va_surface_id; -- } -- --#define FHDR_TO_PP_PF1(a) pic_param.pic_fields.bits.a = frame_hdr->a --#define FHDR_TO_PP_PF2(a, b) pic_param.pic_fields.bits.a = b -- FHDR_TO_PP_PF2(subsampling_x, frame_hdr->subsampling_x == 1); -- FHDR_TO_PP_PF2(subsampling_y, frame_hdr->subsampling_y == 1); -- FHDR_TO_PP_PF2(frame_type, frame_hdr->IsKeyframe() ? 0 : 1); -- FHDR_TO_PP_PF1(show_frame); -- FHDR_TO_PP_PF1(error_resilient_mode); -- FHDR_TO_PP_PF1(intra_only); -- FHDR_TO_PP_PF1(allow_high_precision_mv); -- FHDR_TO_PP_PF2(mcomp_filter_type, frame_hdr->interpolation_filter); -- FHDR_TO_PP_PF1(frame_parallel_decoding_mode); -- FHDR_TO_PP_PF1(reset_frame_context); -- FHDR_TO_PP_PF1(refresh_frame_context); -- FHDR_TO_PP_PF2(frame_context_idx, frame_hdr->frame_context_idx_to_save_probs); -- FHDR_TO_PP_PF2(segmentation_enabled, seg.enabled); -- FHDR_TO_PP_PF2(segmentation_temporal_update, seg.temporal_update); -- FHDR_TO_PP_PF2(segmentation_update_map, seg.update_map); -- FHDR_TO_PP_PF2(last_ref_frame, frame_hdr->ref_frame_idx[0]); -- FHDR_TO_PP_PF2(last_ref_frame_sign_bias, -- frame_hdr->ref_frame_sign_bias[Vp9RefType::VP9_FRAME_LAST]); -- FHDR_TO_PP_PF2(golden_ref_frame, frame_hdr->ref_frame_idx[1]); -- FHDR_TO_PP_PF2(golden_ref_frame_sign_bias, -- frame_hdr->ref_frame_sign_bias[Vp9RefType::VP9_FRAME_GOLDEN]); -- FHDR_TO_PP_PF2(alt_ref_frame, frame_hdr->ref_frame_idx[2]); -- FHDR_TO_PP_PF2(alt_ref_frame_sign_bias, -- frame_hdr->ref_frame_sign_bias[Vp9RefType::VP9_FRAME_ALTREF]); -- FHDR_TO_PP_PF2(lossless_flag, frame_hdr->quant_params.IsLossless()); --#undef FHDR_TO_PP_PF2 --#undef FHDR_TO_PP_PF1 -- -- pic_param.filter_level = lf.level; -- pic_param.sharpness_level = lf.sharpness; -- pic_param.log2_tile_rows = frame_hdr->tile_rows_log2; -- pic_param.log2_tile_columns = frame_hdr->tile_cols_log2; -- pic_param.frame_header_length_in_bytes = frame_hdr->uncompressed_header_size; -- pic_param.first_partition_size = frame_hdr->header_size_in_bytes; -- -- ARRAY_MEMCPY_CHECKED(pic_param.mb_segment_tree_probs, seg.tree_probs); -- ARRAY_MEMCPY_CHECKED(pic_param.segment_pred_probs, seg.pred_probs); -- -- pic_param.profile = frame_hdr->profile; -- pic_param.bit_depth = frame_hdr->bit_depth; -- DCHECK((pic_param.profile == 0 && pic_param.bit_depth == 8) || -- (pic_param.profile == 2 && pic_param.bit_depth == 10)); -- -- if (!vaapi_wrapper_->SubmitBuffer(VAPictureParameterBufferType, -- sizeof(pic_param), &pic_param)) -- return false; -- -- VASliceParameterBufferVP9 slice_param; -- memset(&slice_param, 0, sizeof(slice_param)); -- slice_param.slice_data_size = frame_hdr->frame_size; -- slice_param.slice_data_offset = 0; -- slice_param.slice_data_flag = VA_SLICE_DATA_FLAG_ALL; -- -- static_assert(arraysize(Vp9SegmentationParams::feature_enabled) == -- arraysize(slice_param.seg_param), -- "seg_param array of incorrect size"); -- for (size_t i = 0; i < arraysize(slice_param.seg_param); ++i) { -- VASegmentParameterVP9& seg_param = slice_param.seg_param[i]; --#define SEG_TO_SP_SF(a, b) seg_param.segment_flags.fields.a = b -- SEG_TO_SP_SF( -- segment_reference_enabled, -- seg.FeatureEnabled(i, Vp9SegmentationParams::SEG_LVL_REF_FRAME)); -- SEG_TO_SP_SF(segment_reference, -- seg.FeatureData(i, Vp9SegmentationParams::SEG_LVL_REF_FRAME)); -- SEG_TO_SP_SF(segment_reference_skipped, -- seg.FeatureEnabled(i, Vp9SegmentationParams::SEG_LVL_SKIP)); --#undef SEG_TO_SP_SF -- -- ARRAY_MEMCPY_CHECKED(seg_param.filter_level, lf.lvl[i]); -- -- seg_param.luma_dc_quant_scale = seg.y_dequant[i][0]; -- seg_param.luma_ac_quant_scale = seg.y_dequant[i][1]; -- seg_param.chroma_dc_quant_scale = seg.uv_dequant[i][0]; -- seg_param.chroma_ac_quant_scale = seg.uv_dequant[i][1]; -- } -- -- if (!vaapi_wrapper_->SubmitBuffer(VASliceParameterBufferType, -- sizeof(slice_param), &slice_param)) -- return false; -- -- void* non_const_ptr = const_cast(frame_hdr->data); -- if (!vaapi_wrapper_->SubmitBuffer(VASliceDataBufferType, -- frame_hdr->frame_size, non_const_ptr)) -- return false; -- -- scoped_refptr dec_surface = -- VP9PictureToVaapiDecodeSurface(pic); -- -- return vaapi_dec_->DecodeSurface(dec_surface); --} -- --bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::OutputPicture( -- const scoped_refptr& pic) { -- scoped_refptr dec_surface = -- VP9PictureToVaapiDecodeSurface(pic); -- dec_surface->set_visible_rect(pic->visible_rect); -- vaapi_dec_->SurfaceReady(dec_surface); -- return true; --} -- --bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::GetFrameContext( -- const scoped_refptr& pic, -- Vp9FrameContext* frame_ctx) { -- NOTIMPLEMENTED() << "Frame context update not supported"; -- return false; --} -- --scoped_refptr --VaapiVideoDecodeAccelerator::VaapiVP9Accelerator:: -- VP9PictureToVaapiDecodeSurface(const scoped_refptr& pic) { -- VaapiVP9Picture* vaapi_pic = pic->AsVaapiVP9Picture(); -- CHECK(vaapi_pic); -- return vaapi_pic->dec_surface(); --} -- --// static --VideoDecodeAccelerator::SupportedProfiles --VaapiVideoDecodeAccelerator::GetSupportedProfiles() { -- return VaapiWrapper::GetSupportedDecodeProfiles(); --} -- --} // namespace media ---- a/media/gpu/vaapi_video_decode_accelerator.h -+++ /dev/null -@@ -1,325 +0,0 @@ --// Copyright (c) 2012 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. --// --// This file contains an implementation of VideoDecoderAccelerator --// that utilizes hardware video decoder present on Intel CPUs. -- --#ifndef MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ --#define MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ -- --#include --#include -- --#include --#include --#include --#include --#include -- --#include "base/containers/queue.h" --#include "base/logging.h" --#include "base/macros.h" --#include "base/memory/linked_ptr.h" --#include "base/memory/ref_counted.h" --#include "base/memory/weak_ptr.h" --#include "base/single_thread_task_runner.h" --#include "base/synchronization/condition_variable.h" --#include "base/synchronization/lock.h" --#include "base/threading/thread.h" --#include "media/base/bitstream_buffer.h" --#include "media/gpu/gpu_video_decode_accelerator_helpers.h" --#include "media/gpu/media_gpu_export.h" --#include "media/gpu/shared_memory_region.h" --#include "media/gpu/vaapi/vaapi_picture_factory.h" --#include "media/gpu/vaapi_wrapper.h" --#include "media/video/picture.h" --#include "media/video/video_decode_accelerator.h" -- --namespace gl { --class GLImage; --} -- --namespace media { -- --class AcceleratedVideoDecoder; --class VaapiPicture; -- --// Class to provide video decode acceleration for Intel systems with hardware --// support for it, and on which libva is available. --// Decoding tasks are performed in a separate decoding thread. --// --// Threading/life-cycle: this object is created & destroyed on the GPU --// ChildThread. A few methods on it are called on the decoder thread which is --// stopped during |this->Destroy()|, so any tasks posted to the decoder thread --// can assume |*this| is still alive. See |weak_this_| below for more details. --class MEDIA_GPU_EXPORT VaapiVideoDecodeAccelerator -- : public VideoDecodeAccelerator { -- public: -- // Wrapper of a VASurface with id and visible area. -- class VaapiDecodeSurface; -- -- VaapiVideoDecodeAccelerator( -- const MakeGLContextCurrentCallback& make_context_current_cb, -- const BindGLImageCallback& bind_image_cb); -- -- ~VaapiVideoDecodeAccelerator() override; -- -- // VideoDecodeAccelerator implementation. -- bool Initialize(const Config& config, Client* client) override; -- void Decode(const BitstreamBuffer& bitstream_buffer) override; -- void AssignPictureBuffers(const std::vector& buffers) override; --#if defined(USE_OZONE) -- void ImportBufferForPicture( -- int32_t picture_buffer_id, -- const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) override; --#endif -- void ReusePictureBuffer(int32_t picture_buffer_id) override; -- void Flush() override; -- void Reset() override; -- void Destroy() override; -- bool TryToSetupDecodeOnSeparateThread( -- const base::WeakPtr& decode_client, -- const scoped_refptr& decode_task_runner) -- override; -- -- static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles(); -- -- private: -- friend class VaapiVideoDecodeAcceleratorTest; -- class VaapiH264Accelerator; -- class VaapiVP8Accelerator; -- class VaapiVP9Accelerator; -- -- // An input buffer with id provided by the client and awaiting consumption. -- class InputBuffer; -- -- // Notify the client that an error has occurred and decoding cannot continue. -- void NotifyError(Error error); -- -- // Queue a input buffer for decode. -- void QueueInputBuffer(const BitstreamBuffer& bitstream_buffer); -- -- // Get a new input buffer from the queue and set it up in decoder. This will -- // sleep if no input buffers are available. Return true if a new buffer has -- // been set up, false if an early exit has been requested (due to initiated -- // reset/flush/destroy). -- bool GetInputBuffer_Locked(); -- -- // Signal the client that the current buffer has been read and can be -- // returned. Will also release the mapping. -- void ReturnCurrInputBuffer_Locked(); -- -- // Wait for more surfaces to become available. Return true once they do or -- // false if an early exit has been requested (due to an initiated -- // reset/flush/destroy). -- bool WaitForSurfaces_Locked(); -- -- // Continue decoding given input buffers and sleep waiting for input/output -- // as needed. Will exit if a new set of surfaces or reset/flush/destroy -- // is requested. -- void DecodeTask(); -- -- // Scheduled after receiving a flush request and executed after the current -- // decoding task finishes decoding pending inputs. Makes the decoder return -- // all remaining output pictures and puts it in an idle state, ready -- // to resume if needed and schedules a FinishFlush. -- void FlushTask(); -- -- // Scheduled by the FlushTask after decoder is flushed to put VAVDA into idle -- // state and notify the client that flushing has been finished. -- void FinishFlush(); -- -- // Scheduled after receiving a reset request and executed after the current -- // decoding task finishes decoding the current frame. Puts the decoder into -- // an idle state, ready to resume if needed, discarding decoded but not yet -- // outputted pictures (decoder keeps ownership of their associated picture -- // buffers). Schedules a FinishReset afterwards. -- void ResetTask(); -- -- // Scheduled by ResetTask after it's done putting VAVDA into an idle state. -- // Drops remaining input buffers and notifies the client that reset has been -- // finished. -- void FinishReset(); -- -- // Helper for Destroy(), doing all the actual work except for deleting self. -- void Cleanup(); -- -- // Get a usable framebuffer configuration for use in binding textures -- // or return false on failure. -- bool InitializeFBConfig(); -- -- // Callback to be executed once we have a |va_surface| to be output and -- // an available |picture| to use for output. -- // Puts contents of |va_surface| into given |picture|, releases the surface -- // and passes the resulting picture to client to output the given -- // |visible_rect| part of it. -- void OutputPicture(const scoped_refptr& va_surface, -- int32_t input_id, -- gfx::Rect visible_rect, -- VaapiPicture* picture); -- -- // Try to OutputPicture() if we have both a ready surface and picture. -- void TryOutputSurface(); -- -- // Called when a VASurface is no longer in use by the decoder or is not being -- // synced/waiting to be synced to a picture. Returns it to available surfaces -- // pool. -- void RecycleVASurfaceID(VASurfaceID va_surface_id); -- -- // Initiate wait cycle for surfaces to be released before we release them -- // and allocate new ones, as requested by the decoder. -- void InitiateSurfaceSetChange(size_t num_pics, gfx::Size size); -- -- // Check if the surfaces have been released or post ourselves for later. -- void TryFinishSurfaceSetChange(); -- -- // -- // Below methods are used by accelerator implementations. -- // -- // Decode of |dec_surface| is ready to be submitted and all codec-specific -- // settings are set in hardware. -- bool DecodeSurface(const scoped_refptr& dec_surface); -- -- // |dec_surface| is ready to be outputted once decode is finished. -- // This can be called before decode is actually done in hardware, and this -- // method is responsible for maintaining the ordering, i.e. the surfaces have -- // to be outputted in the same order as SurfaceReady is called. -- // On Intel, we don't have to explicitly maintain the ordering however, as the -- // driver will maintain ordering, as well as dependencies, and will process -- // each submitted command in order, and run each command only if its -- // dependencies are ready. -- void SurfaceReady(const scoped_refptr& dec_surface); -- -- // Return a new VaapiDecodeSurface for decoding into, or nullptr if not -- // available. -- scoped_refptr CreateSurface(); -- -- // VAVDA state. -- enum State { -- // Initialize() not called yet or failed. -- kUninitialized, -- // DecodeTask running. -- kDecoding, -- // Resetting, waiting for decoder to finish current task and cleanup. -- kResetting, -- // Idle, decoder in state ready to start/resume decoding. -- kIdle, -- // Destroying, waiting for the decoder to finish current task. -- kDestroying, -- }; -- -- // Protects input buffer and surface queues and state_. -- base::Lock lock_; -- State state_; -- Config::OutputMode output_mode_; -- -- // Queue of available InputBuffers (picture_buffer_ids). -- base::queue> input_buffers_; -- // Signalled when input buffers are queued onto |input_buffers_| queue. -- base::ConditionVariable input_ready_; -- -- // Current input buffer at decoder. -- std::unique_ptr curr_input_buffer_; -- -- // Queue for incoming output buffers (texture ids). -- using OutputBuffers = base::queue; -- OutputBuffers output_buffers_; -- -- std::unique_ptr vaapi_picture_factory_; -- -- scoped_refptr vaapi_wrapper_; -- -- // All allocated Pictures, regardless of their current state. Pictures are -- // allocated once using |create_vaapi_picture_callback_| and destroyed at the -- // end of decode. Comes after |vaapi_wrapper_| to ensure all pictures are -- // destroyed before said |vaapi_wrapper_| is destroyed. -- using Pictures = std::map>; -- Pictures pictures_; -- -- // Return a VaapiPicture associated with given client-provided id. -- VaapiPicture* PictureById(int32_t picture_buffer_id); -- -- // VA Surfaces no longer in use that can be passed back to the decoder for -- // reuse, once it requests them. -- std::list available_va_surfaces_; -- // Signalled when output surfaces are queued onto the available_va_surfaces_ -- // queue. -- base::ConditionVariable surfaces_available_; -- -- // Pending output requests from the decoder. When it indicates that we should -- // output a surface and we have an available Picture (i.e. texture) ready -- // to use, we'll execute the callback passing the Picture. The callback -- // will put the contents of the surface into the picture and return it to -- // the client, releasing the surface as well. -- // If we don't have any available Pictures at the time when the decoder -- // requests output, we'll store the request on pending_output_cbs_ queue for -- // later and run it once the client gives us more textures -- // via ReusePictureBuffer(). -- using OutputCB = base::Callback; -- base::queue pending_output_cbs_; -- -- // ChildThread's task runner. -- scoped_refptr task_runner_; -- -- // WeakPtr<> pointing to |this| for use in posting tasks from the decoder -- // thread back to the ChildThread. Because the decoder thread is a member of -- // this class, any task running on the decoder thread is guaranteed that this -- // object is still alive. As a result, tasks posted from ChildThread to -- // decoder thread should use base::Unretained(this), and tasks posted from the -- // decoder thread to the ChildThread should use |weak_this_|. -- base::WeakPtr weak_this_; -- -- // Callback used when creating VASurface objects. -- VASurface::ReleaseCB va_surface_release_cb_; -- -- // To expose client callbacks from VideoDecodeAccelerator. -- // NOTE: all calls to these objects *MUST* be executed on task_runner_. -- std::unique_ptr> client_ptr_factory_; -- base::WeakPtr client_; -- -- // Accelerators come after vaapi_wrapper_ to ensure they are destroyed first. -- std::unique_ptr h264_accelerator_; -- std::unique_ptr vp8_accelerator_; -- std::unique_ptr vp9_accelerator_; -- // After *_accelerator_ to ensure correct destruction order. -- std::unique_ptr decoder_; -- -- base::Thread decoder_thread_; -- // Use this to post tasks to |decoder_thread_| instead of -- // |decoder_thread_.message_loop()| because the latter will be NULL once -- // |decoder_thread_.Stop()| returns. -- scoped_refptr decoder_thread_task_runner_; -- -- int num_frames_at_client_; -- -- // Whether we are waiting for any pending_output_cbs_ to be run before -- // NotifyingFlushDone. -- bool finish_flush_pending_; -- -- // Decoder requested a new surface set and we are waiting for all the surfaces -- // to be returned before we can free them. -- bool awaiting_va_surfaces_recycle_; -- -- // Last requested number/resolution of output picture buffers and their -- // format. -- size_t requested_num_pics_; -- gfx::Size requested_pic_size_; -- gfx::BufferFormat output_format_; -- VideoCodecProfile profile_; -- -- // Callback to make GL context current. -- MakeGLContextCurrentCallback make_context_current_cb_; -- -- // Callback to bind a GLImage to a given texture. -- BindGLImageCallback bind_image_cb_; -- -- // The WeakPtrFactory for |weak_this_|. -- base::WeakPtrFactory weak_this_factory_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ ---- a/media/gpu/vaapi_video_decode_accelerator_unittest.cc -+++ /dev/null -@@ -1,367 +0,0 @@ --// Copyright 2017 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_video_decode_accelerator.h" -- --#include "base/bind.h" --#include "base/memory/ptr_util.h" --#include "base/run_loop.h" --#include "base/test/scoped_task_environment.h" --#include "media/gpu/accelerated_video_decoder.h" --#include "media/gpu/format_utils.h" --#include "media/gpu/vaapi/vaapi_picture.h" --#include "media/gpu/vaapi/vaapi_picture_factory.h" --#include "media/gpu/vaapi_wrapper.h" --#include "testing/gmock/include/gmock/gmock.h" --#include "testing/gtest/include/gtest/gtest.h" -- --using ::testing::_; --using ::testing::DoAll; --using ::testing::Invoke; --using ::testing::Return; --using ::testing::TestWithParam; --using ::testing::ValuesIn; --using ::testing::WithArgs; -- --namespace media { -- --namespace { -- --ACTION_P(RunClosure, closure) { -- closure.Run(); --} -- --constexpr VideoCodecProfile kCodecProfiles[] = {H264PROFILE_MIN, VP8PROFILE_MIN, -- VP9PROFILE_MIN}; --constexpr int kBitstreamId = 123; --constexpr size_t kInputSize = 256; -- --} // namespace -- --class MockAcceleratedVideoDecoder : public AcceleratedVideoDecoder { -- public: -- MockAcceleratedVideoDecoder() = default; -- ~MockAcceleratedVideoDecoder() override = default; -- -- MOCK_METHOD2(SetStream, void(const uint8_t* ptr, size_t size)); -- MOCK_METHOD0(Flush, bool()); -- MOCK_METHOD0(Reset, void()); -- MOCK_METHOD0(Decode, DecodeResult()); -- MOCK_CONST_METHOD0(GetPicSize, gfx::Size()); -- MOCK_CONST_METHOD0(GetRequiredNumOfPictures, size_t()); --}; -- --class MockVaapiWrapper : public VaapiWrapper { -- public: -- MockVaapiWrapper() = default; -- MOCK_METHOD4( -- CreateSurfaces, -- bool(unsigned int, const gfx::Size&, size_t, std::vector*)); -- MOCK_METHOD0(DestroySurfaces, void()); -- -- private: -- ~MockVaapiWrapper() override = default; --}; -- --class MockVaapiPicture : public VaapiPicture { -- public: -- MockVaapiPicture(const scoped_refptr& vaapi_wrapper, -- const MakeGLContextCurrentCallback& make_context_current_cb, -- const BindGLImageCallback& bind_image_cb, -- int32_t picture_buffer_id, -- const gfx::Size& size, -- uint32_t texture_id, -- uint32_t client_texture_id) -- : VaapiPicture(vaapi_wrapper, -- make_context_current_cb, -- bind_image_cb, -- picture_buffer_id, -- size, -- texture_id, -- client_texture_id) {} -- ~MockVaapiPicture() override = default; -- -- // VaapiPicture implementation. -- bool Allocate(gfx::BufferFormat format) override { return true; } -- bool ImportGpuMemoryBufferHandle( -- gfx::BufferFormat format, -- const gfx::GpuMemoryBufferHandle& gpu_memory_buffer_handle) override { -- return true; -- } -- bool DownloadFromSurface( -- const scoped_refptr& va_surface) override { -- return true; -- } -- bool AllowOverlay() const override { return false; } --}; -- --class MockVaapiPictureFactory : public VaapiPictureFactory { -- public: -- MockVaapiPictureFactory() = default; -- ~MockVaapiPictureFactory() override = default; -- -- MOCK_METHOD2(MockCreateVaapiPicture, void(VaapiWrapper*, const gfx::Size&)); -- std::unique_ptr Create( -- const scoped_refptr& vaapi_wrapper, -- const MakeGLContextCurrentCallback& make_context_current_cb, -- const BindGLImageCallback& bind_image_cb, -- int32_t picture_buffer_id, -- const gfx::Size& size, -- uint32_t texture_id, -- uint32_t client_texture_id) override { -- MockCreateVaapiPicture(vaapi_wrapper.get(), size); -- return std::make_unique( -- vaapi_wrapper, make_context_current_cb, bind_image_cb, -- picture_buffer_id, size, texture_id, client_texture_id); -- } --}; -- --class VaapiVideoDecodeAcceleratorTest : public TestWithParam, -- public VideoDecodeAccelerator::Client { -- public: -- VaapiVideoDecodeAcceleratorTest() -- : vda_(base::Bind([] { return true; }), -- base::Bind([](uint32_t client_texture_id, -- uint32_t texture_target, -- const scoped_refptr& image, -- bool can_bind_to_sampler) { return true; })), -- decoder_thread_("VaapiVideoDecodeAcceleratorTestThread"), -- mock_decoder_(new MockAcceleratedVideoDecoder), -- mock_vaapi_picture_factory_(new MockVaapiPictureFactory()), -- mock_vaapi_wrapper_(new MockVaapiWrapper()), -- weak_ptr_factory_(this) { -- decoder_thread_.Start(); -- -- // Don't want to go through a vda_->Initialize() because it binds too many -- // items of the environment. Instead, just start the decoder thread. -- vda_.decoder_thread_task_runner_ = decoder_thread_.task_runner(); -- -- // Plug in all the mocks and ourselves as the |client_|. -- vda_.decoder_.reset(mock_decoder_); -- vda_.client_ = weak_ptr_factory_.GetWeakPtr(); -- vda_.vaapi_wrapper_ = mock_vaapi_wrapper_; -- vda_.vaapi_picture_factory_.reset(mock_vaapi_picture_factory_); -- -- vda_.state_ = VaapiVideoDecodeAccelerator::kIdle; -- } -- ~VaapiVideoDecodeAcceleratorTest() {} -- -- void SetUp() override { -- in_shm_.reset(new base::SharedMemory); -- ASSERT_TRUE(in_shm_->CreateAndMapAnonymous(kInputSize)); -- } -- -- void SetVdaStateToUnitialized() { -- vda_.state_ = VaapiVideoDecodeAccelerator::kUninitialized; -- } -- -- void QueueInputBuffer(const BitstreamBuffer& bitstream_buffer) { -- vda_.QueueInputBuffer(bitstream_buffer); -- } -- -- void AssignPictureBuffers(const std::vector& picture_buffers) { -- vda_.AssignPictureBuffers(picture_buffers); -- } -- -- // Reset epilogue, needed to get |vda_| worker thread out of its Wait(). -- void ResetSequence() { -- base::RunLoop run_loop; -- base::Closure quit_closure = run_loop.QuitClosure(); -- EXPECT_CALL(*mock_decoder_, Reset()); -- EXPECT_CALL(*this, NotifyResetDone()).WillOnce(RunClosure(quit_closure)); -- vda_.Reset(); -- run_loop.Run(); -- } -- -- // VideoDecodeAccelerator::Client methods. -- MOCK_METHOD1(NotifyInitializationComplete, void(bool)); -- MOCK_METHOD5( -- ProvidePictureBuffers, -- void(uint32_t, VideoPixelFormat, uint32_t, const gfx::Size&, uint32_t)); -- MOCK_METHOD1(DismissPictureBuffer, void(int32_t)); -- MOCK_METHOD1(PictureReady, void(const Picture&)); -- MOCK_METHOD1(NotifyEndOfBitstreamBuffer, void(int32_t)); -- MOCK_METHOD0(NotifyFlushDone, void()); -- MOCK_METHOD0(NotifyResetDone, void()); -- MOCK_METHOD1(NotifyError, void(VideoDecodeAccelerator::Error)); -- -- base::test::ScopedTaskEnvironment scoped_task_environment_; -- -- // The class under test and a worker thread for it. -- VaapiVideoDecodeAccelerator vda_; -- base::Thread decoder_thread_; -- -- // Ownership passed to |vda_|, but we retain a pointer to it for MOCK checks. -- MockAcceleratedVideoDecoder* mock_decoder_; -- MockVaapiPictureFactory* mock_vaapi_picture_factory_; -- -- scoped_refptr mock_vaapi_wrapper_; -- -- std::unique_ptr in_shm_; -- -- private: -- base::WeakPtrFactory weak_ptr_factory_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAcceleratorTest); --}; -- --// This test checks that QueueInputBuffer() fails when state is kUnitialized. --TEST_P(VaapiVideoDecodeAcceleratorTest, QueueInputBufferAndError) { -- SetVdaStateToUnitialized(); -- -- base::SharedMemoryHandle handle; -- handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -- BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -- -- EXPECT_CALL(*this, -- NotifyError(VaapiVideoDecodeAccelerator::PLATFORM_FAILURE)); -- QueueInputBuffer(bitstream_buffer); --} -- --// Verifies that Decode() returning kDecodeError ends up pinging NotifyError(). --TEST_P(VaapiVideoDecodeAcceleratorTest, QueueInputBufferAndDecodeError) { -- base::SharedMemoryHandle handle; -- handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -- BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -- -- base::RunLoop run_loop; -- base::Closure quit_closure = run_loop.QuitClosure(); -- EXPECT_CALL(*mock_decoder_, SetStream(_, kInputSize)); -- EXPECT_CALL(*mock_decoder_, Decode()) -- .WillOnce(Return(AcceleratedVideoDecoder::kDecodeError)); -- EXPECT_CALL(*this, NotifyError(VaapiVideoDecodeAccelerator::PLATFORM_FAILURE)) -- .WillOnce(RunClosure(quit_closure)); -- -- QueueInputBuffer(bitstream_buffer); -- run_loop.Run(); --} -- --// Tests usual startup sequence: a BitstreamBuffer is enqueued for decode, --// |vda_| asks for PictureBuffers, that we provide, and then the same Decode() --// is tried again. --TEST_P(VaapiVideoDecodeAcceleratorTest, -- QueueInputBufferAndAssignPictureBuffersAndDecode) { -- // Try and QueueInputBuffer(), |vda_| will ping us to ProvidePictureBuffers(). -- const uint32_t kNumPictures = 2; -- const gfx::Size kPictureSize(64, 48); -- { -- base::SharedMemoryHandle handle; -- handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -- BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -- -- base::RunLoop run_loop; -- base::Closure quit_closure = run_loop.QuitClosure(); -- EXPECT_CALL(*mock_decoder_, SetStream(_, kInputSize)); -- EXPECT_CALL(*mock_decoder_, Decode()) -- .WillOnce(Return(AcceleratedVideoDecoder::kAllocateNewSurfaces)); -- -- EXPECT_CALL(*mock_decoder_, GetRequiredNumOfPictures()) -- .WillOnce(Return(kNumPictures)); -- EXPECT_CALL(*mock_decoder_, GetPicSize()).WillOnce(Return(kPictureSize)); -- EXPECT_CALL(*mock_vaapi_wrapper_, DestroySurfaces()); -- -- EXPECT_CALL(*this, -- ProvidePictureBuffers(kNumPictures, _, 1, kPictureSize, _)) -- .WillOnce(RunClosure(quit_closure)); -- -- QueueInputBuffer(bitstream_buffer); -- run_loop.Run(); -- } -- // AssignPictureBuffers() accordingly and expect another go at Decode(). -- { -- base::RunLoop run_loop; -- base::Closure quit_closure = run_loop.QuitClosure(); -- -- const std::vector kPictureBuffers( -- {{2, kPictureSize}, {3, kPictureSize}}); -- EXPECT_EQ(kPictureBuffers.size(), kNumPictures); -- -- EXPECT_CALL(*mock_vaapi_wrapper_, -- CreateSurfaces(_, kPictureSize, kNumPictures, _)) -- .WillOnce(DoAll( -- WithArgs<3>(Invoke([](std::vector* va_surface_ids) { -- va_surface_ids->resize(kNumPictures); -- })), -- Return(true))); -- EXPECT_CALL(*mock_vaapi_picture_factory_, -- MockCreateVaapiPicture(mock_vaapi_wrapper_.get(), kPictureSize)) -- .Times(2); -- -- EXPECT_CALL(*mock_decoder_, Decode()) -- .WillOnce(Return(AcceleratedVideoDecoder::kRanOutOfStreamData)); -- EXPECT_CALL(*this, NotifyEndOfBitstreamBuffer(kBitstreamId)) -- .WillOnce(RunClosure(quit_closure)); -- -- AssignPictureBuffers(kPictureBuffers); -- run_loop.Run(); -- } -- -- ResetSequence(); --} -- --// Verifies that Decode() replying kRanOutOfStreamData (to signal it's finished) --// rolls to a NotifyEndOfBitstreamBuffer(). --TEST_P(VaapiVideoDecodeAcceleratorTest, QueueInputBufferAndDecodeFinished) { -- base::SharedMemoryHandle handle; -- handle = base::SharedMemory::DuplicateHandle(in_shm_->handle()); -- BitstreamBuffer bitstream_buffer(kBitstreamId, handle, kInputSize); -- -- { -- base::RunLoop run_loop; -- base::Closure quit_closure = run_loop.QuitClosure(); -- EXPECT_CALL(*mock_decoder_, SetStream(_, kInputSize)); -- EXPECT_CALL(*mock_decoder_, Decode()) -- .WillOnce(Return(AcceleratedVideoDecoder::kRanOutOfStreamData)); -- EXPECT_CALL(*this, NotifyEndOfBitstreamBuffer(kBitstreamId)) -- .WillOnce(RunClosure(quit_closure)); -- -- QueueInputBuffer(bitstream_buffer); -- run_loop.Run(); -- } -- -- ResetSequence(); --} -- --// Verify that it is possible to select DRM(egl) and TFP(glx) at runtime. --TEST_P(VaapiVideoDecodeAcceleratorTest, SupportedPlatforms) { -- EXPECT_EQ(VaapiPictureFactory::kVaapiImplementationNone, -- mock_vaapi_picture_factory_->GetVaapiImplementation( -- gl::kGLImplementationNone)); -- EXPECT_EQ(VaapiPictureFactory::kVaapiImplementationDrm, -- mock_vaapi_picture_factory_->GetVaapiImplementation( -- gl::kGLImplementationEGLGLES2)); -- --#if defined(USE_X11) -- EXPECT_EQ(VaapiPictureFactory::kVaapiImplementationX11, -- mock_vaapi_picture_factory_->GetVaapiImplementation( -- gl::kGLImplementationDesktopGL)); --#endif --} -- --// Verifies the expected buffer format for each output mode. --TEST_P(VaapiVideoDecodeAcceleratorTest, PictureBufferFormat) { -- gfx::BufferFormat allocate_format = -- mock_vaapi_picture_factory_->GetBufferFormatForAllocateMode(); -- gfx::BufferFormat import_format = -- mock_vaapi_picture_factory_->GetBufferFormatForImportMode(); -- --#if defined(USE_OZONE) -- EXPECT_EQ(gfx::BufferFormat::BGRX_8888, allocate_format); --#else -- EXPECT_EQ(gfx::BufferFormat::RGBX_8888, allocate_format); --#endif // USE_OZONE -- -- EXPECT_EQ(gfx::BufferFormat::YVU_420, import_format); -- -- EXPECT_EQ(PIXEL_FORMAT_XRGB, -- GfxBufferFormatToVideoPixelFormat(allocate_format)); -- EXPECT_EQ(PIXEL_FORMAT_YV12, -- GfxBufferFormatToVideoPixelFormat(import_format)); --} -- --INSTANTIATE_TEST_CASE_P(/* No prefix. */, -- VaapiVideoDecodeAcceleratorTest, -- ValuesIn(kCodecProfiles)); -- --} // namespace media ---- a/media/gpu/vaapi_video_encode_accelerator.cc -+++ /dev/null -@@ -1,1102 +0,0 @@ --// Copyright 2014 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_video_encode_accelerator.h" -- --#include -- --#include --#include -- --#include -- --#include "base/bind.h" --#include "base/callback.h" --#include "base/macros.h" --#include "base/metrics/histogram_macros.h" --#include "base/numerics/safe_conversions.h" --#include "base/single_thread_task_runner.h" --#include "base/threading/thread_task_runner_handle.h" --#include "media/base/bind_to_current_loop.h" --#include "media/gpu/h264_dpb.h" --#include "media/gpu/shared_memory_region.h" -- --#define VLOGF(level) VLOG(level) << __func__ << "(): " --#define DVLOGF(level) DVLOG(level) << __func__ << "(): " -- --#define NOTIFY_ERROR(error, msg) \ -- do { \ -- SetState(kError); \ -- VLOGF(1) << msg; \ -- VLOGF(1) << "Calling NotifyError(" << error << ")"; \ -- NotifyError(error); \ -- } while (0) -- --namespace media { -- --namespace { --// Need 2 surfaces for each frame: one for input data and one for --// reconstructed picture, which is later used for reference. --const size_t kMinSurfacesToEncode = 2; -- --// Subjectively chosen. --const size_t kNumInputBuffers = 4; --const size_t kMaxNumReferenceFrames = 4; -- --// TODO(owenlin): Adjust the value after b/71367113 is fixed. --const size_t kExtraOutputBufferSize = 32768; // bytes -- --// We need up to kMaxNumReferenceFrames surfaces for reference, plus one --// for input and one for encode (which will be added to the set of reference --// frames for subsequent frames). Actual execution of HW encode is done --// in parallel, and we want to process more frames in the meantime. --// To have kNumInputBuffers in flight, we need a full set of reference + --// encode surfaces (i.e. kMaxNumReferenceFrames + kMinSurfacesToEncode), and --// (kNumInputBuffers - 1) of kMinSurfacesToEncode for the remaining frames --// in flight. --const size_t kNumSurfaces = kMaxNumReferenceFrames + kMinSurfacesToEncode + -- kMinSurfacesToEncode * (kNumInputBuffers - 1); -- --// An IDR every 2048 frames, an I frame every 256 and no B frames. --// We choose IDR period to equal MaxFrameNum so it must be a power of 2. --const int kIDRPeriod = 2048; --const int kIPeriod = 256; --const int kIPPeriod = 1; -- --const int kDefaultFramerate = 30; -- --// HRD parameters (ch. E.2.2 in spec). --const int kBitRateScale = 0; // bit_rate_scale for SPS HRD parameters. --const int kCPBSizeScale = 0; // cpb_size_scale for SPS HRD parameters. -- --const int kDefaultQP = 26; --// All Intel codecs can do at least 4.1. --const int kDefaultLevelIDC = 41; --const int kChromaFormatIDC = 1; // 4:2:0 -- --// Arbitrarily chosen bitrate window size for rate control, in ms. --const int kCPBWindowSizeMs = 1500; -- --// UMA errors that the VaapiVideoEncodeAccelerator class reports. --enum VAVEAEncoderFailure { -- VAAPI_ERROR = 0, -- VAVEA_ENCODER_FAILURES_MAX, --}; --} -- --// Round |value| up to |alignment|, which must be a power of 2. --static inline size_t RoundUpToPowerOf2(size_t value, size_t alignment) { -- // Check that |alignment| is a power of 2. -- DCHECK((alignment + (alignment - 1)) == (alignment | (alignment - 1))); -- return ((value + (alignment - 1)) & ~(alignment - 1)); --} -- --static void ReportToUMA(VAVEAEncoderFailure failure) { -- UMA_HISTOGRAM_ENUMERATION("Media.VAVEA.EncoderFailure", failure, -- VAVEA_ENCODER_FAILURES_MAX + 1); --} -- --struct VaapiVideoEncodeAccelerator::InputFrameRef { -- InputFrameRef(const scoped_refptr& frame, bool force_keyframe) -- : frame(frame), force_keyframe(force_keyframe) {} -- const scoped_refptr frame; -- const bool force_keyframe; --}; -- --struct VaapiVideoEncodeAccelerator::BitstreamBufferRef { -- BitstreamBufferRef(int32_t id, std::unique_ptr shm) -- : id(id), shm(std::move(shm)) {} -- const int32_t id; -- const std::unique_ptr shm; --}; -- --VideoEncodeAccelerator::SupportedProfiles --VaapiVideoEncodeAccelerator::GetSupportedProfiles() { -- return VaapiWrapper::GetSupportedEncodeProfiles(); --} -- --static unsigned int Log2OfPowerOf2(unsigned int x) { -- CHECK_GT(x, 0u); -- DCHECK_EQ(x & (x - 1), 0u); -- -- int log = 0; -- while (x > 1) { -- x >>= 1; -- ++log; -- } -- return log; --} -- --VaapiVideoEncodeAccelerator::VaapiVideoEncodeAccelerator() -- : profile_(VIDEO_CODEC_PROFILE_UNKNOWN), -- mb_width_(0), -- mb_height_(0), -- output_buffer_byte_size_(0), -- state_(kUninitialized), -- frame_num_(0), -- idr_pic_id_(0), -- bitrate_(0), -- framerate_(0), -- cpb_size_(0), -- encoding_parameters_changed_(false), -- encoder_thread_("VAVEAEncoderThread"), -- child_task_runner_(base::ThreadTaskRunnerHandle::Get()), -- weak_this_ptr_factory_(this) { -- VLOGF(2); -- weak_this_ = weak_this_ptr_factory_.GetWeakPtr(); -- max_ref_idx_l0_size_ = kMaxNumReferenceFrames; -- qp_ = kDefaultQP; -- idr_period_ = kIDRPeriod; -- i_period_ = kIPeriod; -- ip_period_ = kIPPeriod; --} -- --VaapiVideoEncodeAccelerator::~VaapiVideoEncodeAccelerator() { -- VLOGF(2); -- DCHECK(child_task_runner_->BelongsToCurrentThread()); -- DCHECK(!encoder_thread_.IsRunning()); --} -- --bool VaapiVideoEncodeAccelerator::Initialize( -- VideoPixelFormat format, -- const gfx::Size& input_visible_size, -- VideoCodecProfile output_profile, -- uint32_t initial_bitrate, -- Client* client) { -- DCHECK(child_task_runner_->BelongsToCurrentThread()); -- DCHECK(!encoder_thread_.IsRunning()); -- DCHECK_EQ(state_, kUninitialized); -- -- VLOGF(2) << "Initializing VAVEA, input_format: " -- << VideoPixelFormatToString(format) -- << ", input_visible_size: " << input_visible_size.ToString() -- << ", output_profile: " << GetProfileName(output_profile) -- << ", initial_bitrate: " << initial_bitrate; -- -- client_ptr_factory_.reset(new base::WeakPtrFactory(client)); -- client_ = client_ptr_factory_->GetWeakPtr(); -- -- const SupportedProfiles& profiles = GetSupportedProfiles(); -- auto profile = find_if(profiles.begin(), profiles.end(), -- [output_profile](const SupportedProfile& profile) { -- return profile.profile == output_profile; -- }); -- if (profile == profiles.end()) { -- VLOGF(1) << "Unsupported output profile " << GetProfileName(output_profile); -- return false; -- } -- if (input_visible_size.width() > profile->max_resolution.width() || -- input_visible_size.height() > profile->max_resolution.height()) { -- VLOGF(1) << "Input size too big: " << input_visible_size.ToString() -- << ", max supported size: " << profile->max_resolution.ToString(); -- return false; -- } -- -- if (format != PIXEL_FORMAT_I420) { -- VLOGF(1) << "Unsupported input format: " -- << VideoPixelFormatToString(format); -- return false; -- } -- -- profile_ = output_profile; -- visible_size_ = input_visible_size; -- // 4:2:0 format has to be 2-aligned. -- DCHECK_EQ(visible_size_.width() % 2, 0); -- DCHECK_EQ(visible_size_.height() % 2, 0); -- coded_size_ = gfx::Size(RoundUpToPowerOf2(visible_size_.width(), 16), -- RoundUpToPowerOf2(visible_size_.height(), 16)); -- mb_width_ = coded_size_.width() / 16; -- mb_height_ = coded_size_.height() / 16; -- output_buffer_byte_size_ = coded_size_.GetArea() + kExtraOutputBufferSize; -- -- UpdateRates(initial_bitrate, kDefaultFramerate); -- -- vaapi_wrapper_ = -- VaapiWrapper::CreateForVideoCodec(VaapiWrapper::kEncode, output_profile, -- base::Bind(&ReportToUMA, VAAPI_ERROR)); -- if (!vaapi_wrapper_.get()) { -- VLOGF(1) << "Failed initializing VAAPI for profile " -- << GetProfileName(output_profile); -- return false; -- } -- -- if (!encoder_thread_.Start()) { -- VLOGF(1) << "Failed to start encoder thread"; -- return false; -- } -- encoder_thread_task_runner_ = encoder_thread_.task_runner(); -- -- // Finish the remaining initialization on the encoder thread. -- encoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::InitializeTask, -- base::Unretained(this))); -- -- return true; --} -- --void VaapiVideoEncodeAccelerator::InitializeTask() { -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- DCHECK_EQ(state_, kUninitialized); -- VLOGF(2); -- -- va_surface_release_cb_ = BindToCurrentLoop( -- base::Bind(&VaapiVideoEncodeAccelerator::RecycleVASurfaceID, -- base::Unretained(this))); -- -- if (!vaapi_wrapper_->CreateSurfaces(VA_RT_FORMAT_YUV420, coded_size_, -- kNumSurfaces, -- &available_va_surface_ids_)) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed creating VASurfaces"); -- return; -- } -- -- UpdateSPS(); -- GeneratePackedSPS(); -- -- UpdatePPS(); -- GeneratePackedPPS(); -- -- child_task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&Client::RequireBitstreamBuffers, client_, kNumInputBuffers, -- coded_size_, output_buffer_byte_size_)); -- -- SetState(kEncoding); --} -- --void VaapiVideoEncodeAccelerator::RecycleVASurfaceID( -- VASurfaceID va_surface_id) { -- DVLOGF(4) << "va_surface_id: " << va_surface_id; -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- -- available_va_surface_ids_.push_back(va_surface_id); -- EncodeFrameTask(); --} -- --void VaapiVideoEncodeAccelerator::BeginFrame(bool force_keyframe) { -- current_pic_ = new H264Picture(); -- -- // If the current picture is an IDR picture, frame_num shall be equal to 0. -- if (force_keyframe) -- frame_num_ = 0; -- -- current_pic_->frame_num = frame_num_++; -- frame_num_ %= idr_period_; -- -- if (current_pic_->frame_num == 0) { -- current_pic_->idr = true; -- // H264 spec mandates idr_pic_id to differ between two consecutive IDRs. -- idr_pic_id_ ^= 1; -- ref_pic_list0_.clear(); -- } -- -- if (current_pic_->frame_num % i_period_ == 0) -- current_pic_->type = H264SliceHeader::kISlice; -- else -- current_pic_->type = H264SliceHeader::kPSlice; -- -- if (current_pic_->type != H264SliceHeader::kBSlice) -- current_pic_->ref = true; -- -- current_pic_->pic_order_cnt = current_pic_->frame_num * 2; -- current_pic_->top_field_order_cnt = current_pic_->pic_order_cnt; -- current_pic_->pic_order_cnt_lsb = current_pic_->pic_order_cnt; -- -- current_encode_job_->keyframe = current_pic_->idr; -- -- DVLOGF(4) << "Starting a new frame, type: " << current_pic_->type -- << (force_keyframe ? " (forced keyframe)" : "") -- << " frame_num: " << current_pic_->frame_num -- << " POC: " << current_pic_->pic_order_cnt; --} -- --void VaapiVideoEncodeAccelerator::EndFrame() { -- DCHECK(current_pic_); -- // Store the picture on the list of reference pictures and keep the list -- // below maximum size, dropping oldest references. -- if (current_pic_->ref) -- ref_pic_list0_.push_front(current_encode_job_->recon_surface); -- size_t max_num_ref_frames = -- base::checked_cast(current_sps_.max_num_ref_frames); -- while (ref_pic_list0_.size() > max_num_ref_frames) -- ref_pic_list0_.pop_back(); -- -- submitted_encode_jobs_.push(make_linked_ptr(current_encode_job_.release())); --} -- --static void InitVAPicture(VAPictureH264* va_pic) { -- memset(va_pic, 0, sizeof(*va_pic)); -- va_pic->picture_id = VA_INVALID_ID; -- va_pic->flags = VA_PICTURE_H264_INVALID; --} -- --bool VaapiVideoEncodeAccelerator::SubmitFrameParameters() { -- DCHECK(current_pic_); -- VAEncSequenceParameterBufferH264 seq_param; -- memset(&seq_param, 0, sizeof(seq_param)); -- --#define SPS_TO_SP(a) seq_param.a = current_sps_.a; -- SPS_TO_SP(seq_parameter_set_id); -- SPS_TO_SP(level_idc); -- -- seq_param.intra_period = i_period_; -- seq_param.intra_idr_period = idr_period_; -- seq_param.ip_period = ip_period_; -- seq_param.bits_per_second = bitrate_; -- -- SPS_TO_SP(max_num_ref_frames); -- seq_param.picture_width_in_mbs = mb_width_; -- seq_param.picture_height_in_mbs = mb_height_; -- --#define SPS_TO_SP_FS(a) seq_param.seq_fields.bits.a = current_sps_.a; -- SPS_TO_SP_FS(chroma_format_idc); -- SPS_TO_SP_FS(frame_mbs_only_flag); -- SPS_TO_SP_FS(log2_max_frame_num_minus4); -- SPS_TO_SP_FS(pic_order_cnt_type); -- SPS_TO_SP_FS(log2_max_pic_order_cnt_lsb_minus4); --#undef SPS_TO_SP_FS -- -- SPS_TO_SP(bit_depth_luma_minus8); -- SPS_TO_SP(bit_depth_chroma_minus8); -- -- SPS_TO_SP(frame_cropping_flag); -- if (current_sps_.frame_cropping_flag) { -- SPS_TO_SP(frame_crop_left_offset); -- SPS_TO_SP(frame_crop_right_offset); -- SPS_TO_SP(frame_crop_top_offset); -- SPS_TO_SP(frame_crop_bottom_offset); -- } -- -- SPS_TO_SP(vui_parameters_present_flag); --#define SPS_TO_SP_VF(a) seq_param.vui_fields.bits.a = current_sps_.a; -- SPS_TO_SP_VF(timing_info_present_flag); --#undef SPS_TO_SP_VF -- SPS_TO_SP(num_units_in_tick); -- SPS_TO_SP(time_scale); --#undef SPS_TO_SP -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncSequenceParameterBufferType, -- sizeof(seq_param), &seq_param)) -- return false; -- -- VAEncPictureParameterBufferH264 pic_param; -- memset(&pic_param, 0, sizeof(pic_param)); -- -- pic_param.CurrPic.picture_id = current_encode_job_->recon_surface->id(); -- pic_param.CurrPic.TopFieldOrderCnt = current_pic_->top_field_order_cnt; -- pic_param.CurrPic.BottomFieldOrderCnt = current_pic_->bottom_field_order_cnt; -- pic_param.CurrPic.flags = 0; -- -- for (size_t i = 0; i < arraysize(pic_param.ReferenceFrames); ++i) -- InitVAPicture(&pic_param.ReferenceFrames[i]); -- -- DCHECK_LE(ref_pic_list0_.size(), arraysize(pic_param.ReferenceFrames)); -- RefPicList::const_iterator iter = ref_pic_list0_.begin(); -- for (size_t i = 0; -- i < arraysize(pic_param.ReferenceFrames) && iter != ref_pic_list0_.end(); -- ++iter, ++i) { -- pic_param.ReferenceFrames[i].picture_id = (*iter)->id(); -- pic_param.ReferenceFrames[i].flags = 0; -- } -- -- pic_param.coded_buf = current_encode_job_->coded_buffer; -- pic_param.pic_parameter_set_id = current_pps_.pic_parameter_set_id; -- pic_param.seq_parameter_set_id = current_pps_.seq_parameter_set_id; -- pic_param.frame_num = current_pic_->frame_num; -- pic_param.pic_init_qp = qp_; -- pic_param.num_ref_idx_l0_active_minus1 = max_ref_idx_l0_size_ - 1; -- pic_param.pic_fields.bits.idr_pic_flag = current_pic_->idr; -- pic_param.pic_fields.bits.reference_pic_flag = current_pic_->ref; --#define PPS_TO_PP_PF(a) pic_param.pic_fields.bits.a = current_pps_.a; -- PPS_TO_PP_PF(entropy_coding_mode_flag); -- PPS_TO_PP_PF(transform_8x8_mode_flag); -- PPS_TO_PP_PF(deblocking_filter_control_present_flag); --#undef PPS_TO_PP_PF -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPictureParameterBufferType, -- sizeof(pic_param), &pic_param)) -- return false; -- -- VAEncSliceParameterBufferH264 slice_param; -- memset(&slice_param, 0, sizeof(slice_param)); -- -- slice_param.num_macroblocks = mb_width_ * mb_height_; -- slice_param.macroblock_info = VA_INVALID_ID; -- slice_param.slice_type = current_pic_->type; -- slice_param.pic_parameter_set_id = current_pps_.pic_parameter_set_id; -- slice_param.idr_pic_id = idr_pic_id_; -- slice_param.pic_order_cnt_lsb = current_pic_->pic_order_cnt_lsb; -- slice_param.num_ref_idx_active_override_flag = true; -- -- for (size_t i = 0; i < arraysize(slice_param.RefPicList0); ++i) -- InitVAPicture(&slice_param.RefPicList0[i]); -- -- for (size_t i = 0; i < arraysize(slice_param.RefPicList1); ++i) -- InitVAPicture(&slice_param.RefPicList1[i]); -- -- DCHECK_LE(ref_pic_list0_.size(), arraysize(slice_param.RefPicList0)); -- iter = ref_pic_list0_.begin(); -- for (size_t i = 0; -- i < arraysize(slice_param.RefPicList0) && iter != ref_pic_list0_.end(); -- ++iter, ++i) { -- InitVAPicture(&slice_param.RefPicList0[i]); -- slice_param.RefPicList0[i].picture_id = (*iter)->id(); -- slice_param.RefPicList0[i].flags = 0; -- } -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncSliceParameterBufferType, -- sizeof(slice_param), &slice_param)) -- return false; -- -- VAEncMiscParameterRateControl rate_control_param; -- memset(&rate_control_param, 0, sizeof(rate_control_param)); -- rate_control_param.bits_per_second = bitrate_; -- rate_control_param.target_percentage = 90; -- rate_control_param.window_size = kCPBWindowSizeMs; -- rate_control_param.initial_qp = qp_; -- rate_control_param.rc_flags.bits.disable_frame_skip = true; -- -- if (!vaapi_wrapper_->SubmitVAEncMiscParamBuffer( -- VAEncMiscParameterTypeRateControl, sizeof(rate_control_param), -- &rate_control_param)) -- return false; -- -- VAEncMiscParameterFrameRate framerate_param; -- memset(&framerate_param, 0, sizeof(framerate_param)); -- framerate_param.framerate = framerate_; -- if (!vaapi_wrapper_->SubmitVAEncMiscParamBuffer( -- VAEncMiscParameterTypeFrameRate, sizeof(framerate_param), -- &framerate_param)) -- return false; -- -- VAEncMiscParameterHRD hrd_param; -- memset(&hrd_param, 0, sizeof(hrd_param)); -- hrd_param.buffer_size = cpb_size_; -- hrd_param.initial_buffer_fullness = cpb_size_ / 2; -- if (!vaapi_wrapper_->SubmitVAEncMiscParamBuffer( -- VAEncMiscParameterTypeHRD, sizeof(hrd_param), &hrd_param)) -- return false; -- -- return true; --} -- --bool VaapiVideoEncodeAccelerator::SubmitHeadersIfNeeded() { -- DCHECK(current_pic_); -- if (current_pic_->type != H264SliceHeader::kISlice) -- return true; -- -- // Submit SPS. -- VAEncPackedHeaderParameterBuffer par_buffer; -- memset(&par_buffer, 0, sizeof(par_buffer)); -- par_buffer.type = VAEncPackedHeaderSequence; -- par_buffer.bit_length = packed_sps_.BytesInBuffer() * 8; -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderParameterBufferType, -- sizeof(par_buffer), &par_buffer)) -- return false; -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderDataBufferType, -- packed_sps_.BytesInBuffer(), -- packed_sps_.data())) -- return false; -- -- // Submit PPS. -- memset(&par_buffer, 0, sizeof(par_buffer)); -- par_buffer.type = VAEncPackedHeaderPicture; -- par_buffer.bit_length = packed_pps_.BytesInBuffer() * 8; -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderParameterBufferType, -- sizeof(par_buffer), &par_buffer)) -- return false; -- -- if (!vaapi_wrapper_->SubmitBuffer(VAEncPackedHeaderDataBufferType, -- packed_pps_.BytesInBuffer(), -- packed_pps_.data())) -- return false; -- -- return true; --} -- --bool VaapiVideoEncodeAccelerator::ExecuteEncode() { -- DCHECK(current_pic_); -- DVLOGF(4) << "Encoding frame_num: " << current_pic_->frame_num; -- return vaapi_wrapper_->ExecuteAndDestroyPendingBuffers( -- current_encode_job_->input_surface->id()); --} -- --bool VaapiVideoEncodeAccelerator::UploadFrame( -- const scoped_refptr& frame) { -- return vaapi_wrapper_->UploadVideoFrameToSurface( -- frame, current_encode_job_->input_surface->id()); --} -- --void VaapiVideoEncodeAccelerator::TryToReturnBitstreamBuffer() { -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- -- if (state_ != kEncoding) -- return; -- -- while (!submitted_encode_jobs_.empty()) { -- linked_ptr encode_job = submitted_encode_jobs_.front(); -- // An null job indicates a flush command. -- if (encode_job == nullptr) { -- submitted_encode_jobs_.pop(); -- DVLOGF(2) << "FlushDone"; -- DCHECK(flush_callback_); -- child_task_runner_->PostTask( -- FROM_HERE, base::BindOnce(std::move(flush_callback_), true)); -- continue; -- } -- -- if (available_bitstream_buffers_.empty()) -- break; -- auto buffer = available_bitstream_buffers_.front(); -- -- available_bitstream_buffers_.pop(); -- submitted_encode_jobs_.pop(); -- -- uint8_t* target_data = reinterpret_cast(buffer->shm->memory()); -- -- size_t data_size = 0; -- if (!vaapi_wrapper_->DownloadAndDestroyCodedBuffer( -- encode_job->coded_buffer, encode_job->input_surface->id(), -- target_data, buffer->shm->size(), &data_size)) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed downloading coded buffer"); -- return; -- } -- -- DVLOGF(4) << "Returning bitstream buffer " -- << (encode_job->keyframe ? "(keyframe)" : "") -- << " id: " << buffer->id << " size: " << data_size; -- -- child_task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&Client::BitstreamBufferReady, client_, buffer->id, -- data_size, encode_job->keyframe, encode_job->timestamp)); -- break; -- } --} -- --void VaapiVideoEncodeAccelerator::Encode(const scoped_refptr& frame, -- bool force_keyframe) { -- DVLOGF(4) << "Frame timestamp: " << frame->timestamp().InMilliseconds() -- << " force_keyframe: " << force_keyframe; -- DCHECK(child_task_runner_->BelongsToCurrentThread()); -- -- encoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::EncodeTask, -- base::Unretained(this), frame, force_keyframe)); --} -- --bool VaapiVideoEncodeAccelerator::PrepareNextJob(base::TimeDelta timestamp) { -- if (available_va_surface_ids_.size() < kMinSurfacesToEncode) -- return false; -- -- DCHECK(!current_encode_job_); -- current_encode_job_.reset(new EncodeJob()); -- -- if (!vaapi_wrapper_->CreateCodedBuffer(output_buffer_byte_size_, -- ¤t_encode_job_->coded_buffer)) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed creating coded buffer"); -- return false; -- } -- -- current_encode_job_->timestamp = timestamp; -- -- current_encode_job_->input_surface = new VASurface( -- available_va_surface_ids_.back(), coded_size_, -- vaapi_wrapper_->va_surface_format(), va_surface_release_cb_); -- available_va_surface_ids_.pop_back(); -- -- current_encode_job_->recon_surface = new VASurface( -- available_va_surface_ids_.back(), coded_size_, -- vaapi_wrapper_->va_surface_format(), va_surface_release_cb_); -- available_va_surface_ids_.pop_back(); -- -- // Reference surfaces are needed until the job is done, but they get -- // removed from ref_pic_list0_ when it's full at the end of job submission. -- // Keep refs to them along with the job and only release after sync. -- current_encode_job_->reference_surfaces = ref_pic_list0_; -- -- return true; --} -- --void VaapiVideoEncodeAccelerator::EncodeTask( -- const scoped_refptr& frame, -- bool force_keyframe) { -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- DCHECK_NE(state_, kUninitialized); -- -- encoder_input_queue_.push( -- make_linked_ptr(new InputFrameRef(frame, force_keyframe))); -- EncodeFrameTask(); --} -- --void VaapiVideoEncodeAccelerator::EncodeFrameTask() { -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- -- if (state_ != kEncoding || encoder_input_queue_.empty()) -- return; -- -- if (!PrepareNextJob(encoder_input_queue_.front()->frame->timestamp())) { -- DVLOGF(4) << "Not ready for next frame yet"; -- return; -- } -- -- linked_ptr frame_ref = encoder_input_queue_.front(); -- encoder_input_queue_.pop(); -- -- if (!UploadFrame(frame_ref->frame)) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed uploading source frame to HW."); -- return; -- } -- -- BeginFrame(frame_ref->force_keyframe || encoding_parameters_changed_); -- encoding_parameters_changed_ = false; -- -- if (!SubmitFrameParameters()) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed submitting frame parameters."); -- return; -- } -- -- if (!SubmitHeadersIfNeeded()) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed submitting frame headers."); -- return; -- } -- -- if (!ExecuteEncode()) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed submitting encode job to HW."); -- return; -- } -- -- EndFrame(); -- TryToReturnBitstreamBuffer(); --} -- --void VaapiVideoEncodeAccelerator::UseOutputBitstreamBuffer( -- const BitstreamBuffer& buffer) { -- DVLOGF(4) << "id: " << buffer.id(); -- DCHECK(child_task_runner_->BelongsToCurrentThread()); -- -- if (buffer.size() < output_buffer_byte_size_) { -- NOTIFY_ERROR(kInvalidArgumentError, "Provided bitstream buffer too small"); -- return; -- } -- -- std::unique_ptr shm( -- new SharedMemoryRegion(buffer, false)); -- if (!shm->Map()) { -- NOTIFY_ERROR(kPlatformFailureError, "Failed mapping shared memory."); -- return; -- } -- -- std::unique_ptr buffer_ref( -- new BitstreamBufferRef(buffer.id(), std::move(shm))); -- -- encoder_thread_task_runner_->PostTask( -- FROM_HERE, -- base::Bind(&VaapiVideoEncodeAccelerator::UseOutputBitstreamBufferTask, -- base::Unretained(this), base::Passed(&buffer_ref))); --} -- --void VaapiVideoEncodeAccelerator::UseOutputBitstreamBufferTask( -- std::unique_ptr buffer_ref) { -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- DCHECK_NE(state_, kUninitialized); -- -- available_bitstream_buffers_.push(make_linked_ptr(buffer_ref.release())); -- TryToReturnBitstreamBuffer(); --} -- --void VaapiVideoEncodeAccelerator::RequestEncodingParametersChange( -- uint32_t bitrate, -- uint32_t framerate) { -- VLOGF(2) << "bitrate: " << bitrate << " framerate: " << framerate; -- DCHECK(child_task_runner_->BelongsToCurrentThread()); -- -- encoder_thread_task_runner_->PostTask( -- FROM_HERE, -- base::Bind( -- &VaapiVideoEncodeAccelerator::RequestEncodingParametersChangeTask, -- base::Unretained(this), bitrate, framerate)); --} -- --void VaapiVideoEncodeAccelerator::UpdateRates(uint32_t bitrate, -- uint32_t framerate) { -- if (encoder_thread_.IsRunning()) -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- DCHECK_NE(bitrate, 0u); -- DCHECK_NE(framerate, 0u); -- bitrate_ = bitrate; -- framerate_ = framerate; -- cpb_size_ = bitrate_ * kCPBWindowSizeMs / 1000; --} -- --void VaapiVideoEncodeAccelerator::RequestEncodingParametersChangeTask( -- uint32_t bitrate, -- uint32_t framerate) { -- VLOGF(2) << "bitrate: " << bitrate << " framerate: " << framerate; -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- DCHECK_NE(state_, kUninitialized); -- -- // This is a workaround to zero being temporarily, as part of the initial -- // setup, provided by the webrtc video encode and a zero bitrate and -- // framerate not being accepted by VAAPI -- // TODO: This code is common with v4l2_video_encode_accelerator.cc, perhaps -- // it could be pulled up to RTCVideoEncoder -- if (bitrate < 1) -- bitrate = 1; -- if (framerate < 1) -- framerate = 1; -- -- if (bitrate_ == bitrate && framerate_ == framerate) -- return; -- -- UpdateRates(bitrate, framerate); -- -- UpdateSPS(); -- GeneratePackedSPS(); -- -- // Submit new parameters along with next frame that will be processed. -- encoding_parameters_changed_ = true; --} -- --void VaapiVideoEncodeAccelerator::Flush(FlushCallback flush_callback) { -- DVLOGF(2); -- DCHECK(child_task_runner_->BelongsToCurrentThread()); -- if (flush_callback_) { -- NOTIFY_ERROR(kIllegalStateError, "There is a pending flush"); -- std::move(flush_callback).Run(false); -- return; -- } -- flush_callback_ = std::move(flush_callback); -- encoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::FlushTask, -- base::Unretained(this))); --} -- --void VaapiVideoEncodeAccelerator::FlushTask() { -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- -- // Insert an null job to indicate a flush command. -- submitted_encode_jobs_.push(linked_ptr(nullptr)); -- TryToReturnBitstreamBuffer(); --} -- --void VaapiVideoEncodeAccelerator::Destroy() { -- DCHECK(child_task_runner_->BelongsToCurrentThread()); -- -- // Can't call client anymore after Destroy() returns. -- client_ptr_factory_.reset(); -- weak_this_ptr_factory_.InvalidateWeakPtrs(); -- -- // Early-exit encoder tasks if they are running and join the thread. -- if (encoder_thread_.IsRunning()) { -- encoder_thread_.task_runner()->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::DestroyTask, -- base::Unretained(this))); -- encoder_thread_.Stop(); -- } -- -- if (flush_callback_) -- std::move(flush_callback_).Run(false); -- -- delete this; --} -- --void VaapiVideoEncodeAccelerator::DestroyTask() { -- VLOGF(2); -- DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread()); -- SetState(kError); --} -- --void VaapiVideoEncodeAccelerator::UpdateSPS() { -- memset(¤t_sps_, 0, sizeof(H264SPS)); -- -- // Spec A.2 and A.3. -- switch (profile_) { -- case H264PROFILE_BASELINE: -- // Due to crbug.com/345569, we don't distinguish between constrained -- // and non-constrained baseline profiles. Since many codecs can't do -- // non-constrained, and constrained is usually what we mean (and it's a -- // subset of non-constrained), default to it. -- current_sps_.profile_idc = H264SPS::kProfileIDCBaseline; -- current_sps_.constraint_set0_flag = true; -- break; -- case H264PROFILE_MAIN: -- current_sps_.profile_idc = H264SPS::kProfileIDCMain; -- current_sps_.constraint_set1_flag = true; -- break; -- case H264PROFILE_HIGH: -- current_sps_.profile_idc = H264SPS::kProfileIDCHigh; -- break; -- default: -- NOTIMPLEMENTED(); -- return; -- } -- -- current_sps_.level_idc = kDefaultLevelIDC; -- current_sps_.seq_parameter_set_id = 0; -- current_sps_.chroma_format_idc = kChromaFormatIDC; -- -- DCHECK_GE(idr_period_, 1u << 4); -- current_sps_.log2_max_frame_num_minus4 = Log2OfPowerOf2(idr_period_) - 4; -- current_sps_.pic_order_cnt_type = 0; -- current_sps_.log2_max_pic_order_cnt_lsb_minus4 = -- Log2OfPowerOf2(idr_period_ * 2) - 4; -- current_sps_.max_num_ref_frames = max_ref_idx_l0_size_; -- -- current_sps_.frame_mbs_only_flag = true; -- -- DCHECK_GT(mb_width_, 0u); -- DCHECK_GT(mb_height_, 0u); -- current_sps_.pic_width_in_mbs_minus1 = mb_width_ - 1; -- DCHECK(current_sps_.frame_mbs_only_flag); -- current_sps_.pic_height_in_map_units_minus1 = mb_height_ - 1; -- -- if (visible_size_ != coded_size_) { -- // Visible size differs from coded size, fill crop information. -- current_sps_.frame_cropping_flag = true; -- DCHECK(!current_sps_.separate_colour_plane_flag); -- // Spec table 6-1. Only 4:2:0 for now. -- DCHECK_EQ(current_sps_.chroma_format_idc, 1); -- // Spec 7.4.2.1.1. Crop is in crop units, which is 2 pixels for 4:2:0. -- const unsigned int crop_unit_x = 2; -- const unsigned int crop_unit_y = 2 * (2 - current_sps_.frame_mbs_only_flag); -- current_sps_.frame_crop_left_offset = 0; -- current_sps_.frame_crop_right_offset = -- (coded_size_.width() - visible_size_.width()) / crop_unit_x; -- current_sps_.frame_crop_top_offset = 0; -- current_sps_.frame_crop_bottom_offset = -- (coded_size_.height() - visible_size_.height()) / crop_unit_y; -- } -- -- current_sps_.vui_parameters_present_flag = true; -- current_sps_.timing_info_present_flag = true; -- current_sps_.num_units_in_tick = 1; -- current_sps_.time_scale = framerate_ * 2; // See equation D-2 in spec. -- current_sps_.fixed_frame_rate_flag = true; -- -- current_sps_.nal_hrd_parameters_present_flag = true; -- // H.264 spec ch. E.2.2. -- current_sps_.cpb_cnt_minus1 = 0; -- current_sps_.bit_rate_scale = kBitRateScale; -- current_sps_.cpb_size_scale = kCPBSizeScale; -- current_sps_.bit_rate_value_minus1[0] = -- (bitrate_ >> (kBitRateScale + H264SPS::kBitRateScaleConstantTerm)) - 1; -- current_sps_.cpb_size_value_minus1[0] = -- (cpb_size_ >> (kCPBSizeScale + H264SPS::kCPBSizeScaleConstantTerm)) - 1; -- current_sps_.cbr_flag[0] = true; -- current_sps_.initial_cpb_removal_delay_length_minus_1 = -- H264SPS::kDefaultInitialCPBRemovalDelayLength - 1; -- current_sps_.cpb_removal_delay_length_minus1 = -- H264SPS::kDefaultInitialCPBRemovalDelayLength - 1; -- current_sps_.dpb_output_delay_length_minus1 = -- H264SPS::kDefaultDPBOutputDelayLength - 1; -- current_sps_.time_offset_length = H264SPS::kDefaultTimeOffsetLength; -- current_sps_.low_delay_hrd_flag = false; --} -- --void VaapiVideoEncodeAccelerator::GeneratePackedSPS() { -- packed_sps_.Reset(); -- -- packed_sps_.BeginNALU(H264NALU::kSPS, 3); -- -- packed_sps_.AppendBits(8, current_sps_.profile_idc); -- packed_sps_.AppendBool(current_sps_.constraint_set0_flag); -- packed_sps_.AppendBool(current_sps_.constraint_set1_flag); -- packed_sps_.AppendBool(current_sps_.constraint_set2_flag); -- packed_sps_.AppendBool(current_sps_.constraint_set3_flag); -- packed_sps_.AppendBool(current_sps_.constraint_set4_flag); -- packed_sps_.AppendBool(current_sps_.constraint_set5_flag); -- packed_sps_.AppendBits(2, 0); // reserved_zero_2bits -- packed_sps_.AppendBits(8, current_sps_.level_idc); -- packed_sps_.AppendUE(current_sps_.seq_parameter_set_id); -- -- if (current_sps_.profile_idc == H264SPS::kProfileIDCHigh) { -- packed_sps_.AppendUE(current_sps_.chroma_format_idc); -- if (current_sps_.chroma_format_idc == 3) -- packed_sps_.AppendBool(current_sps_.separate_colour_plane_flag); -- packed_sps_.AppendUE(current_sps_.bit_depth_luma_minus8); -- packed_sps_.AppendUE(current_sps_.bit_depth_chroma_minus8); -- packed_sps_.AppendBool(current_sps_.qpprime_y_zero_transform_bypass_flag); -- packed_sps_.AppendBool(current_sps_.seq_scaling_matrix_present_flag); -- CHECK(!current_sps_.seq_scaling_matrix_present_flag); -- } -- -- packed_sps_.AppendUE(current_sps_.log2_max_frame_num_minus4); -- packed_sps_.AppendUE(current_sps_.pic_order_cnt_type); -- if (current_sps_.pic_order_cnt_type == 0) -- packed_sps_.AppendUE(current_sps_.log2_max_pic_order_cnt_lsb_minus4); -- else if (current_sps_.pic_order_cnt_type == 1) { -- CHECK(1); -- } -- -- packed_sps_.AppendUE(current_sps_.max_num_ref_frames); -- packed_sps_.AppendBool(current_sps_.gaps_in_frame_num_value_allowed_flag); -- packed_sps_.AppendUE(current_sps_.pic_width_in_mbs_minus1); -- packed_sps_.AppendUE(current_sps_.pic_height_in_map_units_minus1); -- -- packed_sps_.AppendBool(current_sps_.frame_mbs_only_flag); -- if (!current_sps_.frame_mbs_only_flag) -- packed_sps_.AppendBool(current_sps_.mb_adaptive_frame_field_flag); -- -- packed_sps_.AppendBool(current_sps_.direct_8x8_inference_flag); -- -- packed_sps_.AppendBool(current_sps_.frame_cropping_flag); -- if (current_sps_.frame_cropping_flag) { -- packed_sps_.AppendUE(current_sps_.frame_crop_left_offset); -- packed_sps_.AppendUE(current_sps_.frame_crop_right_offset); -- packed_sps_.AppendUE(current_sps_.frame_crop_top_offset); -- packed_sps_.AppendUE(current_sps_.frame_crop_bottom_offset); -- } -- -- packed_sps_.AppendBool(current_sps_.vui_parameters_present_flag); -- if (current_sps_.vui_parameters_present_flag) { -- packed_sps_.AppendBool(false); // aspect_ratio_info_present_flag -- packed_sps_.AppendBool(false); // overscan_info_present_flag -- packed_sps_.AppendBool(false); // video_signal_type_present_flag -- packed_sps_.AppendBool(false); // chroma_loc_info_present_flag -- -- packed_sps_.AppendBool(current_sps_.timing_info_present_flag); -- if (current_sps_.timing_info_present_flag) { -- packed_sps_.AppendBits(32, current_sps_.num_units_in_tick); -- packed_sps_.AppendBits(32, current_sps_.time_scale); -- packed_sps_.AppendBool(current_sps_.fixed_frame_rate_flag); -- } -- -- packed_sps_.AppendBool(current_sps_.nal_hrd_parameters_present_flag); -- if (current_sps_.nal_hrd_parameters_present_flag) { -- packed_sps_.AppendUE(current_sps_.cpb_cnt_minus1); -- packed_sps_.AppendBits(4, current_sps_.bit_rate_scale); -- packed_sps_.AppendBits(4, current_sps_.cpb_size_scale); -- CHECK_LT(base::checked_cast(current_sps_.cpb_cnt_minus1), -- arraysize(current_sps_.bit_rate_value_minus1)); -- for (int i = 0; i <= current_sps_.cpb_cnt_minus1; ++i) { -- packed_sps_.AppendUE(current_sps_.bit_rate_value_minus1[i]); -- packed_sps_.AppendUE(current_sps_.cpb_size_value_minus1[i]); -- packed_sps_.AppendBool(current_sps_.cbr_flag[i]); -- } -- packed_sps_.AppendBits( -- 5, current_sps_.initial_cpb_removal_delay_length_minus_1); -- packed_sps_.AppendBits(5, current_sps_.cpb_removal_delay_length_minus1); -- packed_sps_.AppendBits(5, current_sps_.dpb_output_delay_length_minus1); -- packed_sps_.AppendBits(5, current_sps_.time_offset_length); -- } -- -- packed_sps_.AppendBool(false); // vcl_hrd_parameters_flag -- if (current_sps_.nal_hrd_parameters_present_flag) -- packed_sps_.AppendBool(current_sps_.low_delay_hrd_flag); -- -- packed_sps_.AppendBool(false); // pic_struct_present_flag -- packed_sps_.AppendBool(true); // bitstream_restriction_flag -- -- packed_sps_.AppendBool(false); // motion_vectors_over_pic_boundaries_flag -- packed_sps_.AppendUE(2); // max_bytes_per_pic_denom -- packed_sps_.AppendUE(1); // max_bits_per_mb_denom -- packed_sps_.AppendUE(16); // log2_max_mv_length_horizontal -- packed_sps_.AppendUE(16); // log2_max_mv_length_vertical -- -- // Explicitly set max_num_reorder_frames to 0 to allow the decoder to -- // output pictures early. -- packed_sps_.AppendUE(0); // max_num_reorder_frames -- -- // The value of max_dec_frame_buffering shall be greater than or equal to -- // max_num_ref_frames. -- const unsigned int max_dec_frame_buffering = -- current_sps_.max_num_ref_frames; -- packed_sps_.AppendUE(max_dec_frame_buffering); -- } -- -- packed_sps_.FinishNALU(); --} -- --void VaapiVideoEncodeAccelerator::UpdatePPS() { -- memset(¤t_pps_, 0, sizeof(H264PPS)); -- -- current_pps_.seq_parameter_set_id = current_sps_.seq_parameter_set_id; -- current_pps_.pic_parameter_set_id = 0; -- -- current_pps_.entropy_coding_mode_flag = -- current_sps_.profile_idc >= H264SPS::kProfileIDCMain; -- -- CHECK_GT(max_ref_idx_l0_size_, 0u); -- current_pps_.num_ref_idx_l0_default_active_minus1 = max_ref_idx_l0_size_ - 1; -- current_pps_.num_ref_idx_l1_default_active_minus1 = 0; -- DCHECK_LE(qp_, 51u); -- current_pps_.pic_init_qp_minus26 = qp_ - 26; -- current_pps_.deblocking_filter_control_present_flag = true; -- current_pps_.transform_8x8_mode_flag = -- (current_sps_.profile_idc == H264SPS::kProfileIDCHigh); --} -- --void VaapiVideoEncodeAccelerator::GeneratePackedPPS() { -- packed_pps_.Reset(); -- -- packed_pps_.BeginNALU(H264NALU::kPPS, 3); -- -- packed_pps_.AppendUE(current_pps_.pic_parameter_set_id); -- packed_pps_.AppendUE(current_pps_.seq_parameter_set_id); -- packed_pps_.AppendBool(current_pps_.entropy_coding_mode_flag); -- packed_pps_.AppendBool( -- current_pps_.bottom_field_pic_order_in_frame_present_flag); -- CHECK_EQ(current_pps_.num_slice_groups_minus1, 0); -- packed_pps_.AppendUE(current_pps_.num_slice_groups_minus1); -- -- packed_pps_.AppendUE(current_pps_.num_ref_idx_l0_default_active_minus1); -- packed_pps_.AppendUE(current_pps_.num_ref_idx_l1_default_active_minus1); -- -- packed_pps_.AppendBool(current_pps_.weighted_pred_flag); -- packed_pps_.AppendBits(2, current_pps_.weighted_bipred_idc); -- -- packed_pps_.AppendSE(current_pps_.pic_init_qp_minus26); -- packed_pps_.AppendSE(current_pps_.pic_init_qs_minus26); -- packed_pps_.AppendSE(current_pps_.chroma_qp_index_offset); -- -- packed_pps_.AppendBool(current_pps_.deblocking_filter_control_present_flag); -- packed_pps_.AppendBool(current_pps_.constrained_intra_pred_flag); -- packed_pps_.AppendBool(current_pps_.redundant_pic_cnt_present_flag); -- -- packed_pps_.AppendBool(current_pps_.transform_8x8_mode_flag); -- packed_pps_.AppendBool(current_pps_.pic_scaling_matrix_present_flag); -- DCHECK(!current_pps_.pic_scaling_matrix_present_flag); -- packed_pps_.AppendSE(current_pps_.second_chroma_qp_index_offset); -- -- packed_pps_.FinishNALU(); --} -- --void VaapiVideoEncodeAccelerator::SetState(State state) { -- // Only touch state on encoder thread, unless it's not running. -- if (encoder_thread_.IsRunning() && -- !encoder_thread_task_runner_->BelongsToCurrentThread()) { -- encoder_thread_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::SetState, -- base::Unretained(this), state)); -- return; -- } -- -- VLOGF(2) << "setting state to: " << state; -- state_ = state; --} -- --void VaapiVideoEncodeAccelerator::NotifyError(Error error) { -- if (!child_task_runner_->BelongsToCurrentThread()) { -- child_task_runner_->PostTask( -- FROM_HERE, base::Bind(&VaapiVideoEncodeAccelerator::NotifyError, -- weak_this_, error)); -- return; -- } -- -- if (client_) { -- client_->NotifyError(error); -- client_ptr_factory_.reset(); -- } --} -- --VaapiVideoEncodeAccelerator::EncodeJob::EncodeJob() -- : coded_buffer(VA_INVALID_ID), keyframe(false) {} -- --VaapiVideoEncodeAccelerator::EncodeJob::~EncodeJob() {} -- --} // namespace media ---- a/media/gpu/vaapi_video_encode_accelerator.h -+++ /dev/null -@@ -1,275 +0,0 @@ --// Copyright 2014 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#ifndef MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ --#define MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ -- --#include --#include -- --#include --#include -- --#include "base/containers/queue.h" --#include "base/macros.h" --#include "base/memory/linked_ptr.h" --#include "base/threading/thread.h" --#include "media/filters/h264_bitstream_buffer.h" --#include "media/gpu/h264_dpb.h" --#include "media/gpu/media_gpu_export.h" --#include "media/gpu/va_surface.h" --#include "media/gpu/vaapi_wrapper.h" --#include "media/video/video_encode_accelerator.h" -- --namespace media { -- --// A VideoEncodeAccelerator implementation that uses VA-API --// (http://www.freedesktop.org/wiki/Software/vaapi) for HW-accelerated --// video encode. --class MEDIA_GPU_EXPORT VaapiVideoEncodeAccelerator -- : public VideoEncodeAccelerator { -- public: -- VaapiVideoEncodeAccelerator(); -- ~VaapiVideoEncodeAccelerator() override; -- -- // VideoEncodeAccelerator implementation. -- VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles() override; -- bool Initialize(VideoPixelFormat format, -- const gfx::Size& input_visible_size, -- VideoCodecProfile output_profile, -- uint32_t initial_bitrate, -- Client* client) override; -- void Encode(const scoped_refptr& frame, -- bool force_keyframe) override; -- void UseOutputBitstreamBuffer(const BitstreamBuffer& buffer) override; -- void RequestEncodingParametersChange(uint32_t bitrate, -- uint32_t framerate) override; -- void Destroy() override; -- void Flush(FlushCallback flush_callback) override; -- -- private: -- // Reference picture list. -- typedef std::list> RefPicList; -- -- // Encode job for one frame. Created when an input frame is awaiting and -- // enough resources are available to proceed. Once the job is prepared and -- // submitted to the hardware, it awaits on the submitted_encode_jobs_ queue -- // for an output bitstream buffer to become available. Once one is ready, -- // the encoded bytes are downloaded to it and job resources are released -- // and become available for reuse. -- struct EncodeJob { -- // Input surface for video frame data. -- scoped_refptr input_surface; -- // Surface for a reconstructed picture, which is used for reference -- // for subsequent frames. -- scoped_refptr recon_surface; -- // Buffer that will contain output bitstream for this frame. -- VABufferID coded_buffer; -- // Reference surfaces required to encode this picture. We keep references -- // to them here, because we may discard some of them from ref_pic_list* -- // before the HW job is done. -- RefPicList reference_surfaces; -- // True if this job will produce a keyframe. Used to report -- // to BitstreamBufferReady(). -- bool keyframe; -- // Source timestamp. -- base::TimeDelta timestamp; -- -- EncodeJob(); -- ~EncodeJob(); -- }; -- -- // Encoder state. -- enum State { -- kUninitialized, -- kEncoding, -- kError, -- }; -- -- // Holds input frames coming from the client ready to be encoded. -- struct InputFrameRef; -- // Holds output buffers coming from the client ready to be filled. -- struct BitstreamBufferRef; -- -- // Tasks for each of the VEA interface calls to be executed on the -- // encoder thread. -- void InitializeTask(); -- void EncodeTask(const scoped_refptr& frame, bool force_keyframe); -- void UseOutputBitstreamBufferTask( -- std::unique_ptr buffer_ref); -- void RequestEncodingParametersChangeTask(uint32_t bitrate, -- uint32_t framerate); -- void DestroyTask(); -- void FlushTask(); -- -- // Prepare and schedule an encode job if we have an input to encode -- // and enough resources to proceed. -- void EncodeFrameTask(); -- -- // Fill current_sps_/current_pps_ with current values. -- void UpdateSPS(); -- void UpdatePPS(); -- void UpdateRates(uint32_t bitrate, uint32_t framerate); -- -- // Generate packed SPS and PPS in packed_sps_/packed_pps_, using -- // values in current_sps_/current_pps_. -- void GeneratePackedSPS(); -- void GeneratePackedPPS(); -- -- // Check if we have sufficient resources for a new encode job, claim them and -- // fill current_encode_job_ with them. -- // Return false if we cannot start a new job yet, true otherwise. -- bool PrepareNextJob(base::TimeDelta timestamp); -- -- // Begin a new frame, making it a keyframe if |force_keyframe| is true, -- // updating current_pic_. -- void BeginFrame(bool force_keyframe); -- -- // End current frame, updating reference picture lists and storing current -- // job in the jobs awaiting completion on submitted_encode_jobs_. -- void EndFrame(); -- -- // Submit parameters for the current frame to the hardware. -- bool SubmitFrameParameters(); -- // Submit keyframe headers to the hardware if the current frame is a keyframe. -- bool SubmitHeadersIfNeeded(); -- -- // Upload image data from |frame| to the input surface for current job. -- bool UploadFrame(const scoped_refptr& frame); -- -- // Execute encode in hardware. This does not block and will return before -- // the job is finished. -- bool ExecuteEncode(); -- -- // Callback that returns a no longer used VASurfaceID to -- // available_va_surface_ids_ for reuse. -- void RecycleVASurfaceID(VASurfaceID va_surface_id); -- -- // Tries to return a bitstream buffer if both a submitted job awaits to -- // be completed and we have bitstream buffers from the client available -- // to download the encoded data to. -- void TryToReturnBitstreamBuffer(); -- -- // Puts the encoder into en error state and notifies client about the error. -- void NotifyError(Error error); -- -- // Sets the encoder state on the correct thread. -- void SetState(State state); -- -- // VaapiWrapper is the owner of all HW resources (surfaces and buffers) -- // and will free them on destruction. -- scoped_refptr vaapi_wrapper_; -- -- // Input profile and sizes. -- VideoCodecProfile profile_; -- gfx::Size visible_size_; -- gfx::Size coded_size_; // Macroblock-aligned. -- // Width/height in macroblocks. -- unsigned int mb_width_; -- unsigned int mb_height_; -- -- // Maximum size of the reference list 0. -- unsigned int max_ref_idx_l0_size_; -- -- // Initial QP. -- unsigned int qp_; -- -- // IDR frame period. -- unsigned int idr_period_; -- // I frame period. -- unsigned int i_period_; -- // IP period, i.e. how often do we need to have either an I or a P frame in -- // the stream. Period of 1 means we can have no B frames. -- unsigned int ip_period_; -- -- // Size in bytes required for input bitstream buffers. -- size_t output_buffer_byte_size_; -- -- // All of the members below must be accessed on the encoder_thread_, -- // while it is running. -- -- // Encoder state. Encode tasks will only run in kEncoding state. -- State state_; -- -- // frame_num to be used for the next frame. -- unsigned int frame_num_; -- // idr_pic_id to be used for the next frame. -- unsigned int idr_pic_id_; -- -- // Current bitrate in bps. -- unsigned int bitrate_; -- // Current fps. -- unsigned int framerate_; -- // CPB size in bits, i.e. bitrate in kbps * window size in ms/1000. -- unsigned int cpb_size_; -- // True if the parameters have changed and we need to submit a keyframe -- // with updated parameters. -- bool encoding_parameters_changed_; -- -- // Job currently being prepared for encode. -- std::unique_ptr current_encode_job_; -- -- // Current SPS, PPS and their packed versions. Packed versions are their NALUs -- // in AnnexB format *without* emulation prevention three-byte sequences -- // (those will be added by the driver). -- H264SPS current_sps_; -- H264BitstreamBuffer packed_sps_; -- H264PPS current_pps_; -- H264BitstreamBuffer packed_pps_; -- -- // Picture currently being prepared for encode. -- scoped_refptr current_pic_; -- -- // VA surfaces available for reuse. -- std::vector available_va_surface_ids_; -- -- // VA buffers for coded frames. -- std::vector available_va_buffer_ids_; -- -- // Currently active reference surfaces. -- RefPicList ref_pic_list0_; -- -- // Callback via which finished VA surfaces are returned to us. -- VASurface::ReleaseCB va_surface_release_cb_; -- -- // VideoFrames passed from the client, waiting to be encoded. -- base::queue> encoder_input_queue_; -- -- // BitstreamBuffers mapped, ready to be filled. -- base::queue> available_bitstream_buffers_; -- -- // Jobs submitted for encode, awaiting bitstream buffers to become available. -- // A pending flush command, indicated by a null job, will be also put in the -- // queue. -- base::queue> submitted_encode_jobs_; -- -- // Encoder thread. All tasks are executed on it. -- base::Thread encoder_thread_; -- scoped_refptr encoder_thread_task_runner_; -- -- const scoped_refptr child_task_runner_; -- -- // To expose client callbacks from VideoEncodeAccelerator. -- // NOTE: all calls to these objects *MUST* be executed on -- // child_task_runner_. -- std::unique_ptr> client_ptr_factory_; -- base::WeakPtr client_; -- -- // WeakPtr to post from the encoder thread back to the ChildThread, as it may -- // outlive this. Posting from the ChildThread using base::Unretained(this) -- // to the encoder thread is safe, because |this| always outlives the encoder -- // thread (it's a member of this class). -- base::WeakPtr weak_this_; -- -- // The completion callback of the Flush() function. -- FlushCallback flush_callback_; -- -- base::WeakPtrFactory weak_this_ptr_factory_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiVideoEncodeAccelerator); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ ---- a/media/gpu/vaapi_wrapper.cc -+++ /dev/null -@@ -1,1372 +0,0 @@ --// Copyright 2013 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. -- --#include "media/gpu/vaapi_wrapper.h" -- --#include --#include -- --#include --#include --#include --#include -- --#include "base/bind.h" --#include "base/callback_helpers.h" --#include "base/environment.h" --#include "base/logging.h" --#include "base/macros.h" --#include "base/numerics/safe_conversions.h" --#include "base/stl_util.h" --#include "base/sys_info.h" --#include "build/build_config.h" -- --// Auto-generated for dlopen libva libraries --#include "media/gpu/vaapi/va_stubs.h" -- --#include "media/gpu/vaapi/vaapi_picture.h" --#include "third_party/libyuv/include/libyuv.h" --#include "ui/gfx/buffer_format_util.h" --#include "ui/gfx/native_pixmap.h" --#include "ui/gl/gl_bindings.h" --#include "ui/gl/gl_implementation.h" -- --#if defined(USE_X11) --#include --#include "ui/gfx/x/x11_types.h" // nogncheck --#endif -- --#if defined(USE_OZONE) --#include "ui/ozone/public/ozone_platform.h" --#include "ui/ozone/public/surface_factory_ozone.h" --#endif -- --using media_gpu_vaapi::kModuleVa; --using media_gpu_vaapi::kModuleVa_drm; --#if defined(USE_X11) --using media_gpu_vaapi::kModuleVa_x11; --#endif --using media_gpu_vaapi::InitializeStubs; --using media_gpu_vaapi::StubPathMap; -- --#define LOG_VA_ERROR_AND_REPORT(va_error, err_msg) \ -- do { \ -- LOG(ERROR) << err_msg << " VA error: " << vaErrorStr(va_error); \ -- report_error_to_uma_cb_.Run(); \ -- } while (0) -- --#define VA_LOG_ON_ERROR(va_error, err_msg) \ -- do { \ -- if ((va_error) != VA_STATUS_SUCCESS) \ -- LOG_VA_ERROR_AND_REPORT(va_error, err_msg); \ -- } while (0) -- --#define VA_SUCCESS_OR_RETURN(va_error, err_msg, ret) \ -- do { \ -- if ((va_error) != VA_STATUS_SUCCESS) { \ -- LOG_VA_ERROR_AND_REPORT(va_error, err_msg); \ -- return (ret); \ -- } \ -- } while (0) -- --namespace { -- --uint32_t BufferFormatToVAFourCC(gfx::BufferFormat fmt) { -- switch (fmt) { -- case gfx::BufferFormat::BGRX_8888: -- return VA_FOURCC_BGRX; -- case gfx::BufferFormat::BGRA_8888: -- return VA_FOURCC_BGRA; -- case gfx::BufferFormat::RGBX_8888: -- return VA_FOURCC_RGBX; -- case gfx::BufferFormat::UYVY_422: -- return VA_FOURCC_UYVY; -- case gfx::BufferFormat::YVU_420: -- return VA_FOURCC_YV12; -- default: -- NOTREACHED(); -- return 0; -- } --} -- --uint32_t BufferFormatToVARTFormat(gfx::BufferFormat fmt) { -- switch (fmt) { -- case gfx::BufferFormat::UYVY_422: -- return VA_RT_FORMAT_YUV422; -- case gfx::BufferFormat::BGRX_8888: -- case gfx::BufferFormat::BGRA_8888: -- case gfx::BufferFormat::RGBX_8888: -- return VA_RT_FORMAT_RGB32; -- case gfx::BufferFormat::YVU_420: -- return VA_RT_FORMAT_YUV420; -- default: -- NOTREACHED(); -- return 0; -- } --} -- --} // namespace -- --namespace media { -- --namespace { -- --// Maximum framerate of encoded profile. This value is an arbitary limit --// and not taken from HW documentation. --const int kMaxEncoderFramerate = 30; -- --// Attributes required for encode. This only applies to video encode, not JPEG --// encode. --static const VAConfigAttrib kVideoEncodeVAConfigAttribs[] = { -- {VAConfigAttribRateControl, VA_RC_CBR}, -- {VAConfigAttribEncPackedHeaders, -- VA_ENC_PACKED_HEADER_SEQUENCE | VA_ENC_PACKED_HEADER_PICTURE}, --}; -- --// A map between VideoCodecProfile and VAProfile. --static const struct { -- VideoCodecProfile profile; -- VAProfile va_profile; --} kProfileMap[] = { -- {H264PROFILE_BASELINE, VAProfileH264Baseline}, -- {H264PROFILE_MAIN, VAProfileH264Main}, -- // TODO(posciak): See if we can/want to support other variants of -- // H264PROFILE_HIGH*. -- {H264PROFILE_HIGH, VAProfileH264High}, -- {VP8PROFILE_ANY, VAProfileVP8Version0_3}, -- {VP9PROFILE_PROFILE0, VAProfileVP9Profile0}, -- {VP9PROFILE_PROFILE1, VAProfileVP9Profile1}, -- {VP9PROFILE_PROFILE2, VAProfileVP9Profile2}, -- {VP9PROFILE_PROFILE3, VAProfileVP9Profile3}, --}; -- --// This class is a wrapper around its |va_display_| (and its associated --// |va_lock_|) to guarantee mutual exclusion and singleton behaviour. --class VADisplayState { -- public: -- static VADisplayState* Get(); -- -- // Initialize static data before sandbox is enabled. -- static void PreSandboxInitialization(); -- -- VADisplayState(); -- ~VADisplayState() = delete; -- -- // |va_lock_| must be held on entry. -- bool Initialize(); -- void Deinitialize(VAStatus* status); -- -- base::Lock* va_lock() { return &va_lock_; } -- VADisplay va_display() const { return va_display_; } -- -- void SetDrmFd(base::PlatformFile fd) { drm_fd_.reset(HANDLE_EINTR(dup(fd))); } -- -- private: -- // Returns false on init failure. -- static bool PostSandboxInitialization(); -- -- // Protected by |va_lock_|. -- int refcount_; -- -- // Libva is not thread safe, so we have to do locking for it ourselves. -- // This lock is to be taken for the duration of all VA-API calls and for -- // the entire job submission sequence in ExecuteAndDestroyPendingBuffers(). -- base::Lock va_lock_; -- -- // Drm fd used to obtain access to the driver interface by VA. -- base::ScopedFD drm_fd_; -- -- // The VADisplay handle. -- VADisplay va_display_; -- -- // True if vaInitialize() has been called successfully. -- bool va_initialized_; --}; -- --// static --VADisplayState* VADisplayState::Get() { -- static VADisplayState* display_state = new VADisplayState(); -- return display_state; --} -- --// static --void VADisplayState::PreSandboxInitialization() { -- const char kDriRenderNode0Path[] = "/dev/dri/renderD128"; -- base::File drm_file = base::File( -- base::FilePath::FromUTF8Unsafe(kDriRenderNode0Path), -- base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE); -- if (drm_file.IsValid()) -- VADisplayState::Get()->SetDrmFd(drm_file.GetPlatformFile()); --} -- --// static --bool VADisplayState::PostSandboxInitialization() { -- const std::string va_suffix(std::to_string(VA_MAJOR_VERSION + 1)); -- StubPathMap paths; -- -- paths[kModuleVa].push_back(std::string("libva.so.") + va_suffix); -- paths[kModuleVa_drm].push_back(std::string("libva-drm.so.") + va_suffix); --#if defined(USE_X11) -- // libva-x11 does not exist on libva >= 2 -- if (VA_MAJOR_VERSION == 0) -- paths[kModuleVa_x11].push_back("libva-x11.so.1"); --#endif -- -- const bool success = InitializeStubs(paths); -- if (!success) { -- static const char kErrorMsg[] = "Failed to initialize VAAPI libs"; --#if defined(OS_CHROMEOS) -- // When Chrome runs on Linux with target_os="chromeos", do not log error -- // message without VAAPI libraries. -- LOG_IF(ERROR, base::SysInfo::IsRunningOnChromeOS()) << kErrorMsg; --#else -- DVLOG(1) << kErrorMsg; --#endif -- } -- return success; --} -- --VADisplayState::VADisplayState() -- : refcount_(0), va_display_(nullptr), va_initialized_(false) {} -- --bool VADisplayState::Initialize() { -- va_lock_.AssertAcquired(); -- -- static bool result = PostSandboxInitialization(); -- if (!result) -- return false; -- -- if (refcount_++ > 0) -- return true; -- -- switch (gl::GetGLImplementation()) { -- case gl::kGLImplementationEGLGLES2: -- va_display_ = vaGetDisplayDRM(drm_fd_.get()); -- break; -- case gl::kGLImplementationDesktopGL: --#if defined(USE_X11) -- va_display_ = vaGetDisplay(gfx::GetXDisplay()); --#else -- LOG(WARNING) << "HW video decode acceleration not available without " -- "DesktopGL (GLX)."; --#endif // USE_X11 -- break; -- // Cannot infer platform from GL, try all available displays -- case gl::kGLImplementationNone: --#if defined(USE_X11) -- va_display_ = vaGetDisplay(gfx::GetXDisplay()); -- if (vaDisplayIsValid(va_display_)) -- break; --#endif // USE_X11 -- va_display_ = vaGetDisplayDRM(drm_fd_.get()); -- break; -- -- default: -- LOG(WARNING) << "HW video decode acceleration not available for " -- << gl::GetGLImplementationName(gl::GetGLImplementation()); -- return false; -- } -- -- if (!vaDisplayIsValid(va_display_)) { -- LOG(ERROR) << "Could not get a valid VA display"; -- return false; -- } -- -- // Set VA logging level to enable error messages, unless already set -- constexpr char libva_log_level_env[] = "LIBVA_MESSAGING_LEVEL"; -- std::unique_ptr env(base::Environment::Create()); -- if (!env->HasVar(libva_log_level_env)) -- env->SetVar(libva_log_level_env, "1"); -- -- // The VAAPI version. -- int major_version, minor_version; -- VAStatus va_res = vaInitialize(va_display_, &major_version, &minor_version); -- if (va_res != VA_STATUS_SUCCESS) { -- LOG(ERROR) << "vaInitialize failed: " << vaErrorStr(va_res); -- return false; -- } -- -- va_initialized_ = true; -- DVLOG(1) << "VAAPI version: " << major_version << "." << minor_version; -- -- if (major_version != VA_MAJOR_VERSION || minor_version != VA_MINOR_VERSION) { -- LOG(ERROR) << "This build of Chromium requires VA-API version " -- << VA_MAJOR_VERSION << "." << VA_MINOR_VERSION -- << ", system version: " << major_version << "." << minor_version; -- return false; -- } -- return true; --} -- --void VADisplayState::Deinitialize(VAStatus* status) { -- va_lock_.AssertAcquired(); -- if (--refcount_ > 0) -- return; -- -- // Must check if vaInitialize completed successfully, to work around a bug in -- // libva. The bug was fixed upstream: -- // http://lists.freedesktop.org/archives/libva/2013-July/001807.html -- // TODO(mgiuca): Remove this check, and the |va_initialized_| variable, once -- // the fix has rolled out sufficiently. -- if (va_initialized_ && va_display_) -- *status = vaTerminate(va_display_); -- va_initialized_ = false; -- va_display_ = nullptr; --} -- --static std::vector GetRequiredAttribs( -- VaapiWrapper::CodecMode mode, -- VAProfile profile) { -- std::vector required_attribs; -- // VAConfigAttribRTFormat is common to both encode and decode |mode|s. -- if (profile == VAProfileVP9Profile2 || profile == VAProfileVP9Profile3) { -- required_attribs.push_back( -- {VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420_10BPP}); -- } else { -- required_attribs.push_back({VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420}); -- } -- if (mode == VaapiWrapper::kEncode && profile != VAProfileJPEGBaseline) { -- required_attribs.insert( -- required_attribs.end(), kVideoEncodeVAConfigAttribs, -- kVideoEncodeVAConfigAttribs + arraysize(kVideoEncodeVAConfigAttribs)); -- } -- return required_attribs; --} -- --static VAEntrypoint GetVaEntryPoint(VaapiWrapper::CodecMode mode, -- VAProfile profile) { -- switch (mode) { -- case VaapiWrapper::kDecode: -- return VAEntrypointVLD; -- case VaapiWrapper::kEncode: -- if (profile == VAProfileJPEGBaseline) -- return VAEntrypointEncPicture; -- else -- return VAEntrypointEncSlice; -- case VaapiWrapper::kCodecModeMax: -- NOTREACHED(); -- return VAEntrypointVLD; -- } --} -- --// This class encapsulates reading and giving access to the list of supported --// ProfileInfo entries, in a singleton way. --class VASupportedProfiles { -- public: -- struct ProfileInfo { -- VAProfile va_profile; -- gfx::Size max_resolution; -- }; -- static VASupportedProfiles* Get(); -- -- std::vector GetSupportedProfileInfosForCodecMode( -- VaapiWrapper::CodecMode mode); -- -- bool IsProfileSupported(VaapiWrapper::CodecMode mode, VAProfile va_profile); -- -- private: -- VASupportedProfiles(); -- ~VASupportedProfiles() = default; -- -- bool GetSupportedVAProfiles(std::vector* profiles); -- -- // Gets supported profile infos for |mode|. -- std::vector GetSupportedProfileInfosForCodecModeInternal( -- VaapiWrapper::CodecMode mode); -- -- // |va_lock_| must be held on entry in the following _Locked methods. -- -- // Checks if |va_profile| supports |entrypoint| or not. -- bool IsEntrypointSupported_Locked(VAProfile va_profile, -- VAEntrypoint entrypoint); -- // Returns true if |va_profile| for |entrypoint| with |required_attribs| is -- // supported. -- bool AreAttribsSupported_Locked( -- VAProfile va_profile, -- VAEntrypoint entrypoint, -- const std::vector& required_attribs); -- // Gets maximum resolution for |va_profile| and |entrypoint| with -- // |required_attribs|. If return value is true, |resolution| is the maximum -- // resolution. -- bool GetMaxResolution_Locked(VAProfile va_profile, -- VAEntrypoint entrypoint, -- std::vector& required_attribs, -- gfx::Size* resolution); -- -- std::vector supported_profiles_[VaapiWrapper::kCodecModeMax]; -- -- // Pointer to VADisplayState's members |va_lock_| and its |va_display_|. -- base::Lock* va_lock_; -- VADisplay va_display_; -- -- const base::Closure report_error_to_uma_cb_; --}; -- --// static --VASupportedProfiles* VASupportedProfiles::Get() { -- static VASupportedProfiles* profile_infos = new VASupportedProfiles(); -- return profile_infos; --} -- --std::vector --VASupportedProfiles::GetSupportedProfileInfosForCodecMode( -- VaapiWrapper::CodecMode mode) { -- return supported_profiles_[mode]; --} -- --bool VASupportedProfiles::IsProfileSupported(VaapiWrapper::CodecMode mode, -- VAProfile va_profile) { -- for (const auto& profile : supported_profiles_[mode]) { -- if (profile.va_profile == va_profile) -- return true; -- } -- return false; --} -- --VASupportedProfiles::VASupportedProfiles() -- : va_lock_(VADisplayState::Get()->va_lock()), -- va_display_(nullptr), -- report_error_to_uma_cb_(base::Bind(&base::DoNothing)) { -- static_assert(arraysize(supported_profiles_) == VaapiWrapper::kCodecModeMax, -- "The array size of supported profile is incorrect."); -- { -- base::AutoLock auto_lock(*va_lock_); -- if (!VADisplayState::Get()->Initialize()) -- return; -- } -- -- va_display_ = VADisplayState::Get()->va_display(); -- DCHECK(va_display_) << "VADisplayState hasn't been properly Initialize()d"; -- -- for (size_t i = 0; i < VaapiWrapper::kCodecModeMax; ++i) { -- supported_profiles_[i] = GetSupportedProfileInfosForCodecModeInternal( -- static_cast(i)); -- } -- -- { -- base::AutoLock auto_lock(*va_lock_); -- VAStatus va_res = VA_STATUS_SUCCESS; -- VADisplayState::Get()->Deinitialize(&va_res); -- VA_LOG_ON_ERROR(va_res, "vaTerminate failed"); -- va_display_ = nullptr; -- } --} -- --std::vector --VASupportedProfiles::GetSupportedProfileInfosForCodecModeInternal( -- VaapiWrapper::CodecMode mode) { -- std::vector supported_profile_infos; -- std::vector va_profiles; -- if (!GetSupportedVAProfiles(&va_profiles)) -- return supported_profile_infos; -- -- base::AutoLock auto_lock(*va_lock_); -- for (const auto& va_profile : va_profiles) { -- VAEntrypoint entrypoint = GetVaEntryPoint(mode, va_profile); -- std::vector required_attribs = -- GetRequiredAttribs(mode, va_profile); -- if (!IsEntrypointSupported_Locked(va_profile, entrypoint)) -- continue; -- if (!AreAttribsSupported_Locked(va_profile, entrypoint, required_attribs)) -- continue; -- ProfileInfo profile_info; -- if (!GetMaxResolution_Locked(va_profile, entrypoint, required_attribs, -- &profile_info.max_resolution)) { -- LOG(ERROR) << "GetMaxResolution failed for va_profile " << va_profile -- << " and entrypoint " << entrypoint; -- continue; -- } -- profile_info.va_profile = va_profile; -- supported_profile_infos.push_back(profile_info); -- } -- return supported_profile_infos; --} -- --bool VASupportedProfiles::GetSupportedVAProfiles( -- std::vector* profiles) { -- base::AutoLock auto_lock(*va_lock_); -- // Query the driver for supported profiles. -- const int max_profiles = vaMaxNumProfiles(va_display_); -- std::vector supported_profiles( -- base::checked_cast(max_profiles)); -- -- int num_supported_profiles; -- VAStatus va_res = vaQueryConfigProfiles(va_display_, &supported_profiles[0], -- &num_supported_profiles); -- VA_SUCCESS_OR_RETURN(va_res, "vaQueryConfigProfiles failed", false); -- if (num_supported_profiles < 0 || num_supported_profiles > max_profiles) { -- LOG(ERROR) << "vaQueryConfigProfiles returned: " << num_supported_profiles; -- return false; -- } -- -- supported_profiles.resize(base::checked_cast(num_supported_profiles)); -- *profiles = supported_profiles; -- return true; --} -- --bool VASupportedProfiles::IsEntrypointSupported_Locked( -- VAProfile va_profile, -- VAEntrypoint entrypoint) { -- va_lock_->AssertAcquired(); -- // Query the driver for supported entrypoints. -- int max_entrypoints = vaMaxNumEntrypoints(va_display_); -- std::vector supported_entrypoints( -- base::checked_cast(max_entrypoints)); -- -- int num_supported_entrypoints; -- VAStatus va_res = vaQueryConfigEntrypoints(va_display_, va_profile, -- &supported_entrypoints[0], -- &num_supported_entrypoints); -- VA_SUCCESS_OR_RETURN(va_res, "vaQueryConfigEntrypoints failed", false); -- if (num_supported_entrypoints < 0 || -- num_supported_entrypoints > max_entrypoints) { -- LOG(ERROR) << "vaQueryConfigEntrypoints returned: " -- << num_supported_entrypoints; -- return false; -- } -- -- return base::ContainsValue(supported_entrypoints, entrypoint); --} -- --bool VASupportedProfiles::AreAttribsSupported_Locked( -- VAProfile va_profile, -- VAEntrypoint entrypoint, -- const std::vector& required_attribs) { -- va_lock_->AssertAcquired(); -- // Query the driver for required attributes. -- std::vector attribs = required_attribs; -- for (size_t i = 0; i < required_attribs.size(); ++i) -- attribs[i].value = 0; -- -- VAStatus va_res = vaGetConfigAttributes(va_display_, va_profile, entrypoint, -- &attribs[0], attribs.size()); -- VA_SUCCESS_OR_RETURN(va_res, "vaGetConfigAttributes failed", false); -- -- for (size_t i = 0; i < required_attribs.size(); ++i) { -- if (attribs[i].type != required_attribs[i].type || -- (attribs[i].value & required_attribs[i].value) != -- required_attribs[i].value) { -- DVLOG(1) << "Unsupported value " << required_attribs[i].value -- << " for attribute type " << required_attribs[i].type; -- return false; -- } -- } -- return true; --} -- --bool VASupportedProfiles::GetMaxResolution_Locked( -- VAProfile va_profile, -- VAEntrypoint entrypoint, -- std::vector& required_attribs, -- gfx::Size* resolution) { -- va_lock_->AssertAcquired(); -- VAConfigID va_config_id; -- VAStatus va_res = -- vaCreateConfig(va_display_, va_profile, entrypoint, &required_attribs[0], -- required_attribs.size(), &va_config_id); -- VA_SUCCESS_OR_RETURN(va_res, "vaCreateConfig failed", false); -- -- // Calls vaQuerySurfaceAttributes twice. The first time is to get the number -- // of attributes to prepare the space and the second time is to get all -- // attributes. -- unsigned int num_attribs; -- va_res = vaQuerySurfaceAttributes(va_display_, va_config_id, nullptr, -- &num_attribs); -- VA_SUCCESS_OR_RETURN(va_res, "vaQuerySurfaceAttributes failed", false); -- if (!num_attribs) -- return false; -- -- std::vector attrib_list( -- base::checked_cast(num_attribs)); -- -- va_res = vaQuerySurfaceAttributes(va_display_, va_config_id, &attrib_list[0], -- &num_attribs); -- VA_SUCCESS_OR_RETURN(va_res, "vaQuerySurfaceAttributes failed", false); -- -- resolution->SetSize(0, 0); -- for (const auto& attrib : attrib_list) { -- if (attrib.type == VASurfaceAttribMaxWidth) -- resolution->set_width(attrib.value.value.i); -- else if (attrib.type == VASurfaceAttribMaxHeight) -- resolution->set_height(attrib.value.value.i); -- } -- if (resolution->IsEmpty()) { -- LOG(ERROR) << "Wrong codec resolution: " << resolution->ToString(); -- return false; -- } -- return true; --} -- --// Maps VideoCodecProfile enum values to VaProfile values. This function --// includes a workaround for https://crbug.com/345569: if va_profile is h264 --// baseline and it is not supported, we try constrained baseline. --VAProfile ProfileToVAProfile(VideoCodecProfile profile, -- VaapiWrapper::CodecMode mode) { -- VAProfile va_profile = VAProfileNone; -- for (size_t i = 0; i < arraysize(kProfileMap); ++i) { -- if (kProfileMap[i].profile == profile) { -- va_profile = kProfileMap[i].va_profile; -- break; -- } -- } -- if (!VASupportedProfiles::Get()->IsProfileSupported(mode, va_profile) && -- va_profile == VAProfileH264Baseline) { -- // https://crbug.com/345569: ProfileIDToVideoCodecProfile() currently strips -- // the information whether the profile is constrained or not, so we have no -- // way to know here. Try for baseline first, but if it is not supported, -- // try constrained baseline and hope this is what it actually is -- // (which in practice is true for a great majority of cases). -- if (VASupportedProfiles::Get()->IsProfileSupported( -- mode, VAProfileH264ConstrainedBaseline)) { -- va_profile = VAProfileH264ConstrainedBaseline; -- DVLOG(1) << "Fall back to constrained baseline profile."; -- } -- } -- return va_profile; --} -- --void DestroyVAImage(VADisplay va_display, VAImage image) { -- if (image.image_id != VA_INVALID_ID) -- vaDestroyImage(va_display, image.image_id); --} -- --} // namespace -- --VaapiWrapper::VaapiWrapper() -- : va_surface_format_(0), -- va_display_(NULL), -- va_config_id_(VA_INVALID_ID), -- va_context_id_(VA_INVALID_ID), -- va_vpp_config_id_(VA_INVALID_ID), -- va_vpp_context_id_(VA_INVALID_ID), -- va_vpp_buffer_id_(VA_INVALID_ID) { -- va_lock_ = VADisplayState::Get()->va_lock(); --} -- --VaapiWrapper::~VaapiWrapper() { -- DestroyPendingBuffers(); -- DestroyCodedBuffers(); -- DestroySurfaces(); -- DeinitializeVpp(); -- Deinitialize(); --} -- --// static --scoped_refptr VaapiWrapper::Create( -- CodecMode mode, -- VAProfile va_profile, -- const base::Closure& report_error_to_uma_cb) { -- if (!VASupportedProfiles::Get()->IsProfileSupported(mode, va_profile)) { -- DVLOG(1) << "Unsupported va_profile: " << va_profile; -- return nullptr; -- } -- -- scoped_refptr vaapi_wrapper(new VaapiWrapper()); -- if (vaapi_wrapper->VaInitialize(report_error_to_uma_cb)) { -- if (vaapi_wrapper->Initialize(mode, va_profile)) -- return vaapi_wrapper; -- } -- LOG(ERROR) << "Failed to create VaapiWrapper for va_profile: " << va_profile; -- return nullptr; --} -- --// static --scoped_refptr VaapiWrapper::CreateForVideoCodec( -- CodecMode mode, -- VideoCodecProfile profile, -- const base::Closure& report_error_to_uma_cb) { -- VAProfile va_profile = ProfileToVAProfile(profile, mode); -- return Create(mode, va_profile, report_error_to_uma_cb); --} -- --// static --VideoEncodeAccelerator::SupportedProfiles --VaapiWrapper::GetSupportedEncodeProfiles() { -- VideoEncodeAccelerator::SupportedProfiles profiles; -- std::vector encode_profile_infos = -- VASupportedProfiles::Get()->GetSupportedProfileInfosForCodecMode(kEncode); -- -- for (size_t i = 0; i < arraysize(kProfileMap); ++i) { -- VAProfile va_profile = ProfileToVAProfile(kProfileMap[i].profile, kEncode); -- if (va_profile == VAProfileNone) -- continue; -- for (const auto& profile_info : encode_profile_infos) { -- if (profile_info.va_profile == va_profile) { -- VideoEncodeAccelerator::SupportedProfile profile; -- profile.profile = kProfileMap[i].profile; -- profile.max_resolution = profile_info.max_resolution; -- profile.max_framerate_numerator = kMaxEncoderFramerate; -- profile.max_framerate_denominator = 1; -- profiles.push_back(profile); -- break; -- } -- } -- } -- return profiles; --} -- --// static --VideoDecodeAccelerator::SupportedProfiles --VaapiWrapper::GetSupportedDecodeProfiles() { -- VideoDecodeAccelerator::SupportedProfiles profiles; -- std::vector decode_profile_infos = -- VASupportedProfiles::Get()->GetSupportedProfileInfosForCodecMode(kDecode); -- -- for (size_t i = 0; i < arraysize(kProfileMap); ++i) { -- VAProfile va_profile = ProfileToVAProfile(kProfileMap[i].profile, kDecode); -- if (va_profile == VAProfileNone) -- continue; -- for (const auto& profile_info : decode_profile_infos) { -- if (profile_info.va_profile == va_profile) { -- VideoDecodeAccelerator::SupportedProfile profile; -- profile.profile = kProfileMap[i].profile; -- profile.max_resolution = profile_info.max_resolution; -- profile.min_resolution.SetSize(16, 16); -- profiles.push_back(profile); -- break; -- } -- } -- } -- return profiles; --} -- --// static --bool VaapiWrapper::IsJpegDecodeSupported() { -- return VASupportedProfiles::Get()->IsProfileSupported(kDecode, -- VAProfileJPEGBaseline); --} -- --// static --bool VaapiWrapper::IsJpegEncodeSupported() { -- return VASupportedProfiles::Get()->IsProfileSupported(kEncode, -- VAProfileJPEGBaseline); --} -- --void VaapiWrapper::TryToSetVADisplayAttributeToLocalGPU() { -- base::AutoLock auto_lock(*va_lock_); -- VADisplayAttribute item = {VADisplayAttribRenderMode, -- 1, // At least support '_LOCAL_OVERLAY'. -- -1, // The maximum possible support 'ALL'. -- VA_RENDER_MODE_LOCAL_GPU, -- VA_DISPLAY_ATTRIB_SETTABLE}; -- -- VAStatus va_res = vaSetDisplayAttributes(va_display_, &item, 1); -- if (va_res != VA_STATUS_SUCCESS) -- DVLOG(2) << "vaSetDisplayAttributes unsupported, ignoring by default."; --} -- --bool VaapiWrapper::VaInitialize(const base::Closure& report_error_to_uma_cb) { -- report_error_to_uma_cb_ = report_error_to_uma_cb; -- { -- base::AutoLock auto_lock(*va_lock_); -- if (!VADisplayState::Get()->Initialize()) -- return false; -- } -- -- va_display_ = VADisplayState::Get()->va_display(); -- DCHECK(va_display_) << "VADisplayState hasn't been properly Initialize()d"; -- return true; --} -- --bool VaapiWrapper::Initialize(CodecMode mode, VAProfile va_profile) { -- TryToSetVADisplayAttributeToLocalGPU(); -- -- VAEntrypoint entrypoint = GetVaEntryPoint(mode, va_profile); -- std::vector required_attribs = -- GetRequiredAttribs(mode, va_profile); -- base::AutoLock auto_lock(*va_lock_); -- VAStatus va_res = -- vaCreateConfig(va_display_, va_profile, entrypoint, &required_attribs[0], -- required_attribs.size(), &va_config_id_); -- VA_SUCCESS_OR_RETURN(va_res, "vaCreateConfig failed", false); -- -- return true; --} -- --void VaapiWrapper::Deinitialize() { -- base::AutoLock auto_lock(*va_lock_); -- -- if (va_config_id_ != VA_INVALID_ID) { -- VAStatus va_res = vaDestroyConfig(va_display_, va_config_id_); -- VA_LOG_ON_ERROR(va_res, "vaDestroyConfig failed"); -- } -- -- VAStatus va_res = VA_STATUS_SUCCESS; -- VADisplayState::Get()->Deinitialize(&va_res); -- VA_LOG_ON_ERROR(va_res, "vaTerminate failed"); -- -- va_config_id_ = VA_INVALID_ID; -- va_display_ = NULL; --} -- --bool VaapiWrapper::CreateSurfaces(unsigned int va_format, -- const gfx::Size& size, -- size_t num_surfaces, -- std::vector* va_surfaces) { -- base::AutoLock auto_lock(*va_lock_); -- DVLOG(2) << "Creating " << num_surfaces << " surfaces"; -- -- DCHECK(va_surfaces->empty()); -- DCHECK(va_surface_ids_.empty()); -- DCHECK_EQ(va_surface_format_, 0u); -- va_surface_ids_.resize(num_surfaces); -- -- // Allocate surfaces in driver. -- VAStatus va_res = -- vaCreateSurfaces(va_display_, va_format, size.width(), size.height(), -- &va_surface_ids_[0], va_surface_ids_.size(), NULL, 0); -- -- VA_LOG_ON_ERROR(va_res, "vaCreateSurfaces failed"); -- if (va_res != VA_STATUS_SUCCESS) { -- va_surface_ids_.clear(); -- return false; -- } -- -- // And create a context associated with them. -- va_res = vaCreateContext(va_display_, va_config_id_, size.width(), -- size.height(), VA_PROGRESSIVE, &va_surface_ids_[0], -- va_surface_ids_.size(), &va_context_id_); -- -- VA_LOG_ON_ERROR(va_res, "vaCreateContext failed"); -- if (va_res != VA_STATUS_SUCCESS) { -- DestroySurfaces_Locked(); -- return false; -- } -- -- *va_surfaces = va_surface_ids_; -- va_surface_format_ = va_format; -- return true; --} -- --void VaapiWrapper::DestroySurfaces() { -- base::AutoLock auto_lock(*va_lock_); -- DVLOG(2) << "Destroying " << va_surface_ids_.size() << " surfaces"; -- -- DestroySurfaces_Locked(); --} -- --void VaapiWrapper::DestroySurfaces_Locked() { -- va_lock_->AssertAcquired(); -- -- if (va_context_id_ != VA_INVALID_ID) { -- VAStatus va_res = vaDestroyContext(va_display_, va_context_id_); -- VA_LOG_ON_ERROR(va_res, "vaDestroyContext failed"); -- } -- -- if (!va_surface_ids_.empty()) { -- VAStatus va_res = vaDestroySurfaces(va_display_, &va_surface_ids_[0], -- va_surface_ids_.size()); -- VA_LOG_ON_ERROR(va_res, "vaDestroySurfaces failed"); -- } -- -- va_surface_ids_.clear(); -- va_context_id_ = VA_INVALID_ID; -- va_surface_format_ = 0; --} -- --scoped_refptr VaapiWrapper::CreateUnownedSurface( -- unsigned int va_format, -- const gfx::Size& size, -- const std::vector& va_attribs) { -- base::AutoLock auto_lock(*va_lock_); -- -- std::vector attribs(va_attribs); -- VASurfaceID va_surface_id; -- VAStatus va_res = -- vaCreateSurfaces(va_display_, va_format, size.width(), size.height(), -- &va_surface_id, 1, &attribs[0], attribs.size()); -- -- scoped_refptr va_surface; -- VA_SUCCESS_OR_RETURN(va_res, "Failed to create unowned VASurface", -- va_surface); -- -- // This is safe to use Unretained() here, because the VDA takes care -- // of the destruction order. All the surfaces will be destroyed -- // before VaapiWrapper. -- va_surface = new VASurface( -- va_surface_id, size, va_format, -- base::Bind(&VaapiWrapper::DestroyUnownedSurface, base::Unretained(this))); -- -- return va_surface; --} -- --scoped_refptr VaapiWrapper::CreateVASurfaceForPixmap( -- const scoped_refptr& pixmap) { -- // Create a VASurface for a NativePixmap by importing the underlying dmabufs. -- VASurfaceAttribExternalBuffers va_attrib_extbuf; -- memset(&va_attrib_extbuf, 0, sizeof(va_attrib_extbuf)); -- -- va_attrib_extbuf.pixel_format = -- BufferFormatToVAFourCC(pixmap->GetBufferFormat()); -- gfx::Size size = pixmap->GetBufferSize(); -- va_attrib_extbuf.width = size.width(); -- va_attrib_extbuf.height = size.height(); -- -- size_t num_fds = pixmap->GetDmaBufFdCount(); -- size_t num_planes = -- gfx::NumberOfPlanesForBufferFormat(pixmap->GetBufferFormat()); -- if (num_fds == 0 || num_fds > num_planes) { -- LOG(ERROR) << "Invalid number of dmabuf fds: " << num_fds -- << " , planes: " << num_planes; -- return nullptr; -- } -- -- for (size_t i = 0; i < num_planes; ++i) { -- va_attrib_extbuf.pitches[i] = pixmap->GetDmaBufPitch(i); -- va_attrib_extbuf.offsets[i] = pixmap->GetDmaBufOffset(i); -- DVLOG(4) << "plane " << i << ": pitch: " << va_attrib_extbuf.pitches[i] -- << " offset: " << va_attrib_extbuf.offsets[i]; -- } -- va_attrib_extbuf.num_planes = num_planes; -- -- std::vector fds(num_fds); -- for (size_t i = 0; i < num_fds; ++i) { -- int dmabuf_fd = pixmap->GetDmaBufFd(i); -- if (dmabuf_fd < 0) { -- LOG(ERROR) << "Failed to get dmabuf from an Ozone NativePixmap"; -- return nullptr; -- } -- fds[i] = dmabuf_fd; -- } -- va_attrib_extbuf.buffers = fds.data(); -- va_attrib_extbuf.num_buffers = fds.size(); -- -- va_attrib_extbuf.flags = 0; -- va_attrib_extbuf.private_data = NULL; -- -- std::vector va_attribs(2); -- -- va_attribs[0].type = VASurfaceAttribMemoryType; -- va_attribs[0].flags = VA_SURFACE_ATTRIB_SETTABLE; -- va_attribs[0].value.type = VAGenericValueTypeInteger; -- va_attribs[0].value.value.i = VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME; -- -- va_attribs[1].type = VASurfaceAttribExternalBufferDescriptor; -- va_attribs[1].flags = VA_SURFACE_ATTRIB_SETTABLE; -- va_attribs[1].value.type = VAGenericValueTypePointer; -- va_attribs[1].value.value.p = &va_attrib_extbuf; -- -- scoped_refptr va_surface = CreateUnownedSurface( -- BufferFormatToVARTFormat(pixmap->GetBufferFormat()), size, va_attribs); -- if (!va_surface) { -- LOG(ERROR) << "Failed to create VASurface for an Ozone NativePixmap"; -- return nullptr; -- } -- -- return va_surface; --} -- --void VaapiWrapper::DestroyUnownedSurface(VASurfaceID va_surface_id) { -- base::AutoLock auto_lock(*va_lock_); -- -- VAStatus va_res = vaDestroySurfaces(va_display_, &va_surface_id, 1); -- VA_LOG_ON_ERROR(va_res, "vaDestroySurfaces on surface failed"); --} -- --bool VaapiWrapper::SubmitBuffer(VABufferType va_buffer_type, -- size_t size, -- void* buffer) { -- base::AutoLock auto_lock(*va_lock_); -- -- VABufferID buffer_id; -- VAStatus va_res = vaCreateBuffer(va_display_, va_context_id_, va_buffer_type, -- size, 1, buffer, &buffer_id); -- VA_SUCCESS_OR_RETURN(va_res, "Failed to create a VA buffer", false); -- -- switch (va_buffer_type) { -- case VASliceParameterBufferType: -- case VASliceDataBufferType: -- case VAEncSliceParameterBufferType: -- pending_slice_bufs_.push_back(buffer_id); -- break; -- -- default: -- pending_va_bufs_.push_back(buffer_id); -- break; -- } -- -- return true; --} -- --bool VaapiWrapper::SubmitVAEncMiscParamBuffer( -- VAEncMiscParameterType misc_param_type, -- size_t size, -- void* buffer) { -- base::AutoLock auto_lock(*va_lock_); -- -- VABufferID buffer_id; -- VAStatus va_res = vaCreateBuffer( -- va_display_, va_context_id_, VAEncMiscParameterBufferType, -- sizeof(VAEncMiscParameterBuffer) + size, 1, NULL, &buffer_id); -- VA_SUCCESS_OR_RETURN(va_res, "Failed to create a VA buffer", false); -- -- void* data_ptr = NULL; -- va_res = vaMapBuffer(va_display_, buffer_id, &data_ptr); -- VA_LOG_ON_ERROR(va_res, "vaMapBuffer failed"); -- if (va_res != VA_STATUS_SUCCESS) { -- vaDestroyBuffer(va_display_, buffer_id); -- return false; -- } -- -- DCHECK(data_ptr); -- -- VAEncMiscParameterBuffer* misc_param = -- reinterpret_cast(data_ptr); -- misc_param->type = misc_param_type; -- memcpy(misc_param->data, buffer, size); -- va_res = vaUnmapBuffer(va_display_, buffer_id); -- VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -- -- pending_va_bufs_.push_back(buffer_id); -- return true; --} -- --void VaapiWrapper::DestroyPendingBuffers() { -- base::AutoLock auto_lock(*va_lock_); -- -- for (const auto& pending_va_buf : pending_va_bufs_) { -- VAStatus va_res = vaDestroyBuffer(va_display_, pending_va_buf); -- VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -- } -- -- for (const auto& pending_slice_buf : pending_slice_bufs_) { -- VAStatus va_res = vaDestroyBuffer(va_display_, pending_slice_buf); -- VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -- } -- -- pending_va_bufs_.clear(); -- pending_slice_bufs_.clear(); --} -- --bool VaapiWrapper::CreateCodedBuffer(size_t size, VABufferID* buffer_id) { -- base::AutoLock auto_lock(*va_lock_); -- VAStatus va_res = -- vaCreateBuffer(va_display_, va_context_id_, VAEncCodedBufferType, size, 1, -- NULL, buffer_id); -- VA_SUCCESS_OR_RETURN(va_res, "Failed to create a coded buffer", false); -- -- const auto is_new_entry = coded_buffers_.insert(*buffer_id).second; -- DCHECK(is_new_entry); -- return true; --} -- --void VaapiWrapper::DestroyCodedBuffers() { -- base::AutoLock auto_lock(*va_lock_); -- -- for (std::set::const_iterator iter = coded_buffers_.begin(); -- iter != coded_buffers_.end(); ++iter) { -- VAStatus va_res = vaDestroyBuffer(va_display_, *iter); -- VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -- } -- -- coded_buffers_.clear(); --} -- --bool VaapiWrapper::Execute(VASurfaceID va_surface_id) { -- base::AutoLock auto_lock(*va_lock_); -- -- DVLOG(4) << "Pending VA bufs to commit: " << pending_va_bufs_.size(); -- DVLOG(4) << "Pending slice bufs to commit: " << pending_slice_bufs_.size(); -- DVLOG(4) << "Target VA surface " << va_surface_id; -- -- // Get ready to execute for given surface. -- VAStatus va_res = vaBeginPicture(va_display_, va_context_id_, va_surface_id); -- VA_SUCCESS_OR_RETURN(va_res, "vaBeginPicture failed", false); -- -- if (pending_va_bufs_.size() > 0) { -- // Commit parameter and slice buffers. -- va_res = vaRenderPicture(va_display_, va_context_id_, &pending_va_bufs_[0], -- pending_va_bufs_.size()); -- VA_SUCCESS_OR_RETURN(va_res, "vaRenderPicture for va_bufs failed", false); -- } -- -- if (pending_slice_bufs_.size() > 0) { -- va_res = -- vaRenderPicture(va_display_, va_context_id_, &pending_slice_bufs_[0], -- pending_slice_bufs_.size()); -- VA_SUCCESS_OR_RETURN(va_res, "vaRenderPicture for slices failed", false); -- } -- -- // Instruct HW codec to start processing committed buffers. -- // Does not block and the job is not finished after this returns. -- va_res = vaEndPicture(va_display_, va_context_id_); -- VA_SUCCESS_OR_RETURN(va_res, "vaEndPicture failed", false); -- -- return true; --} -- --bool VaapiWrapper::ExecuteAndDestroyPendingBuffers(VASurfaceID va_surface_id) { -- bool result = Execute(va_surface_id); -- DestroyPendingBuffers(); -- return result; --} -- --#if defined(USE_X11) --bool VaapiWrapper::PutSurfaceIntoPixmap(VASurfaceID va_surface_id, -- Pixmap x_pixmap, -- gfx::Size dest_size) { -- base::AutoLock auto_lock(*va_lock_); -- -- VAStatus va_res = vaSyncSurface(va_display_, va_surface_id); -- VA_SUCCESS_OR_RETURN(va_res, "Failed syncing surface", false); -- -- // Put the data into an X Pixmap. -- va_res = vaPutSurface(va_display_, -- va_surface_id, -- x_pixmap, -- 0, 0, dest_size.width(), dest_size.height(), -- 0, 0, dest_size.width(), dest_size.height(), -- NULL, 0, 0); -- VA_SUCCESS_OR_RETURN(va_res, "Failed putting surface to pixmap", false); -- return true; --} --#endif // USE_X11 -- --bool VaapiWrapper::GetVaImage(VASurfaceID va_surface_id, -- VAImageFormat* format, -- const gfx::Size& size, -- VAImage* image, -- void** mem) { -- base::AutoLock auto_lock(*va_lock_); -- -- VAStatus va_res = vaSyncSurface(va_display_, va_surface_id); -- VA_SUCCESS_OR_RETURN(va_res, "Failed syncing surface", false); -- -- va_res = -- vaCreateImage(va_display_, format, size.width(), size.height(), image); -- VA_SUCCESS_OR_RETURN(va_res, "vaCreateImage failed", false); -- -- va_res = vaGetImage(va_display_, va_surface_id, 0, 0, size.width(), -- size.height(), image->image_id); -- VA_LOG_ON_ERROR(va_res, "vaGetImage failed"); -- -- if (va_res == VA_STATUS_SUCCESS) { -- // Map the VAImage into memory -- va_res = vaMapBuffer(va_display_, image->buf, mem); -- VA_LOG_ON_ERROR(va_res, "vaMapBuffer failed"); -- } -- -- if (va_res != VA_STATUS_SUCCESS) { -- va_res = vaDestroyImage(va_display_, image->image_id); -- VA_LOG_ON_ERROR(va_res, "vaDestroyImage failed"); -- return false; -- } -- -- return true; --} -- --void VaapiWrapper::ReturnVaImage(VAImage* image) { -- base::AutoLock auto_lock(*va_lock_); -- -- VAStatus va_res = vaUnmapBuffer(va_display_, image->buf); -- VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -- -- va_res = vaDestroyImage(va_display_, image->image_id); -- VA_LOG_ON_ERROR(va_res, "vaDestroyImage failed"); --} -- --bool VaapiWrapper::UploadVideoFrameToSurface( -- const scoped_refptr& frame, -- VASurfaceID va_surface_id) { -- base::AutoLock auto_lock(*va_lock_); -- -- VAImage image; -- VAStatus va_res = vaDeriveImage(va_display_, va_surface_id, &image); -- VA_SUCCESS_OR_RETURN(va_res, "vaDeriveImage failed", false); -- base::ScopedClosureRunner vaimage_deleter( -- base::Bind(&DestroyVAImage, va_display_, image)); -- -- if (image.format.fourcc != VA_FOURCC_NV12) { -- LOG(ERROR) << "Unsupported image format: " << image.format.fourcc; -- return false; -- } -- -- if (gfx::Rect(image.width, image.height) < gfx::Rect(frame->coded_size())) { -- LOG(ERROR) << "Buffer too small to fit the frame."; -- return false; -- } -- -- void* image_ptr = NULL; -- va_res = vaMapBuffer(va_display_, image.buf, &image_ptr); -- VA_SUCCESS_OR_RETURN(va_res, "vaMapBuffer failed", false); -- DCHECK(image_ptr); -- -- int ret = 0; -- { -- base::AutoUnlock auto_unlock(*va_lock_); -- ret = libyuv::I420ToNV12( -- frame->data(VideoFrame::kYPlane), frame->stride(VideoFrame::kYPlane), -- frame->data(VideoFrame::kUPlane), frame->stride(VideoFrame::kUPlane), -- frame->data(VideoFrame::kVPlane), frame->stride(VideoFrame::kVPlane), -- static_cast(image_ptr) + image.offsets[0], image.pitches[0], -- static_cast(image_ptr) + image.offsets[1], image.pitches[1], -- image.width, image.height); -- } -- -- va_res = vaUnmapBuffer(va_display_, image.buf); -- VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -- -- return ret == 0; --} -- --bool VaapiWrapper::DownloadFromCodedBuffer(VABufferID buffer_id, -- VASurfaceID sync_surface_id, -- uint8_t* target_ptr, -- size_t target_size, -- size_t* coded_data_size) { -- base::AutoLock auto_lock(*va_lock_); -- -- VAStatus va_res = vaSyncSurface(va_display_, sync_surface_id); -- VA_SUCCESS_OR_RETURN(va_res, "Failed syncing surface", false); -- -- VACodedBufferSegment* buffer_segment = NULL; -- va_res = vaMapBuffer(va_display_, buffer_id, -- reinterpret_cast(&buffer_segment)); -- VA_SUCCESS_OR_RETURN(va_res, "vaMapBuffer failed", false); -- DCHECK(target_ptr); -- -- { -- base::AutoUnlock auto_unlock(*va_lock_); -- *coded_data_size = 0; -- -- while (buffer_segment) { -- DCHECK(buffer_segment->buf); -- -- if (buffer_segment->size > target_size) { -- LOG(ERROR) << "Insufficient output buffer size"; -- break; -- } -- -- memcpy(target_ptr, buffer_segment->buf, buffer_segment->size); -- -- target_ptr += buffer_segment->size; -- *coded_data_size += buffer_segment->size; -- target_size -= buffer_segment->size; -- -- buffer_segment = -- reinterpret_cast(buffer_segment->next); -- } -- } -- -- va_res = vaUnmapBuffer(va_display_, buffer_id); -- VA_LOG_ON_ERROR(va_res, "vaUnmapBuffer failed"); -- return buffer_segment == NULL; --} -- --bool VaapiWrapper::DownloadAndDestroyCodedBuffer(VABufferID buffer_id, -- VASurfaceID sync_surface_id, -- uint8_t* target_ptr, -- size_t target_size, -- size_t* coded_data_size) { -- bool result = DownloadFromCodedBuffer(buffer_id, sync_surface_id, target_ptr, -- target_size, coded_data_size); -- -- VAStatus va_res = vaDestroyBuffer(va_display_, buffer_id); -- VA_LOG_ON_ERROR(va_res, "vaDestroyBuffer failed"); -- const auto was_found = coded_buffers_.erase(buffer_id); -- DCHECK(was_found); -- -- return result; --} -- --bool VaapiWrapper::BlitSurface( -- const scoped_refptr& va_surface_src, -- const scoped_refptr& va_surface_dest) { -- base::AutoLock auto_lock(*va_lock_); -- -- // Initialize the post processing engine if not already done. -- if (va_vpp_buffer_id_ == VA_INVALID_ID) { -- if (!InitializeVpp_Locked()) -- return false; -- } -- -- VAProcPipelineParameterBuffer* pipeline_param; -- VA_SUCCESS_OR_RETURN(vaMapBuffer(va_display_, va_vpp_buffer_id_, -- reinterpret_cast(&pipeline_param)), -- "Couldn't map vpp buffer", false); -- -- memset(pipeline_param, 0, sizeof *pipeline_param); -- const gfx::Size src_size = va_surface_src->size(); -- const gfx::Size dest_size = va_surface_dest->size(); -- -- VARectangle input_region; -- input_region.x = input_region.y = 0; -- input_region.width = src_size.width(); -- input_region.height = src_size.height(); -- pipeline_param->surface_region = &input_region; -- pipeline_param->surface = va_surface_src->id(); -- pipeline_param->surface_color_standard = VAProcColorStandardNone; -- -- VARectangle output_region; -- output_region.x = output_region.y = 0; -- output_region.width = dest_size.width(); -- output_region.height = dest_size.height(); -- pipeline_param->output_region = &output_region; -- pipeline_param->output_background_color = 0xff000000; -- pipeline_param->output_color_standard = VAProcColorStandardNone; -- pipeline_param->filter_flags = VA_FILTER_SCALING_DEFAULT; -- -- VA_SUCCESS_OR_RETURN(vaUnmapBuffer(va_display_, va_vpp_buffer_id_), -- "Couldn't unmap vpp buffer", false); -- -- VA_SUCCESS_OR_RETURN( -- vaBeginPicture(va_display_, va_vpp_context_id_, va_surface_dest->id()), -- "Couldn't begin picture", false); -- -- VA_SUCCESS_OR_RETURN( -- vaRenderPicture(va_display_, va_vpp_context_id_, &va_vpp_buffer_id_, 1), -- "Couldn't render picture", false); -- -- VA_SUCCESS_OR_RETURN(vaEndPicture(va_display_, va_vpp_context_id_), -- "Couldn't end picture", false); -- -- return true; --} -- --bool VaapiWrapper::InitializeVpp_Locked() { -- va_lock_->AssertAcquired(); -- -- VA_SUCCESS_OR_RETURN( -- vaCreateConfig(va_display_, VAProfileNone, VAEntrypointVideoProc, NULL, 0, -- &va_vpp_config_id_), -- "Couldn't create config", false); -- -- // The size of the picture for the context is irrelevant in the case -- // of the VPP, just passing 1x1. -- VA_SUCCESS_OR_RETURN(vaCreateContext(va_display_, va_vpp_config_id_, 1, 1, 0, -- NULL, 0, &va_vpp_context_id_), -- "Couldn't create context", false); -- -- VA_SUCCESS_OR_RETURN(vaCreateBuffer(va_display_, va_vpp_context_id_, -- VAProcPipelineParameterBufferType, -- sizeof(VAProcPipelineParameterBuffer), 1, -- NULL, &va_vpp_buffer_id_), -- "Couldn't create buffer", false); -- -- return true; --} -- --void VaapiWrapper::DeinitializeVpp() { -- base::AutoLock auto_lock(*va_lock_); -- -- if (va_vpp_buffer_id_ != VA_INVALID_ID) { -- vaDestroyBuffer(va_display_, va_vpp_buffer_id_); -- va_vpp_buffer_id_ = VA_INVALID_ID; -- } -- if (va_vpp_context_id_ != VA_INVALID_ID) { -- vaDestroyContext(va_display_, va_vpp_context_id_); -- va_vpp_context_id_ = VA_INVALID_ID; -- } -- if (va_vpp_config_id_ != VA_INVALID_ID) { -- vaDestroyConfig(va_display_, va_vpp_config_id_); -- va_vpp_config_id_ = VA_INVALID_ID; -- } --} -- --// static --void VaapiWrapper::PreSandboxInitialization() { -- VADisplayState::PreSandboxInitialization(); --} -- --} // namespace media ---- a/media/gpu/vaapi_wrapper.h -+++ /dev/null -@@ -1,288 +0,0 @@ --// Copyright 2013 The Chromium Authors. All rights reserved. --// Use of this source code is governed by a BSD-style license that can be --// found in the LICENSE file. --// --// This file contains an implementation of VaapiWrapper, used by --// VaapiVideoDecodeAccelerator and VaapiH264Decoder for decode, --// and VaapiVideoEncodeAccelerator for encode, to interface --// with libva (VA-API library for hardware video codec). -- --#ifndef MEDIA_GPU_VAAPI_WRAPPER_H_ --#define MEDIA_GPU_VAAPI_WRAPPER_H_ -- --#include --#include -- --#include --#include -- --#include -- --#include "base/files/file.h" --#include "base/macros.h" --#include "base/memory/ref_counted.h" --#include "base/synchronization/lock.h" --#include "media/base/video_decoder_config.h" --#include "media/base/video_frame.h" --#include "media/gpu/media_gpu_export.h" --#include "media/gpu/va_surface.h" --#include "media/video/jpeg_decode_accelerator.h" --#include "media/video/video_decode_accelerator.h" --#include "media/video/video_encode_accelerator.h" --#include "ui/gfx/geometry/size.h" -- --#if defined(USE_X11) --#include "ui/gfx/x/x11.h" --#endif // USE_X11 -- --namespace gfx { --class NativePixmap; --} -- --namespace media { -- --// This class handles VA-API calls and ensures proper locking of VA-API calls --// to libva, the userspace shim to the HW codec driver. libva is not --// thread-safe, so we have to perform locking ourselves. This class is fully --// synchronous and its methods can be called from any thread and may wait on --// the va_lock_ while other, concurrent calls run. --// --// This class is responsible for managing VAAPI connection, contexts and state. --// It is also responsible for managing and freeing VABuffers (not VASurfaces), --// which are used to queue parameters and slice data to the HW codec, --// as well as underlying memory for VASurfaces themselves. --class MEDIA_GPU_EXPORT VaapiWrapper -- : public base::RefCountedThreadSafe { -- public: -- enum CodecMode { -- kDecode, -- kEncode, -- kCodecModeMax, -- }; -- -- // Return an instance of VaapiWrapper initialized for |va_profile| and -- // |mode|. |report_error_to_uma_cb| will be called independently from -- // reporting errors to clients via method return values. -- static scoped_refptr Create( -- CodecMode mode, -- VAProfile va_profile, -- const base::Closure& report_error_to_uma_cb); -- -- // Create VaapiWrapper for VideoCodecProfile. It maps VideoCodecProfile -- // |profile| to VAProfile. -- // |report_error_to_uma_cb| will be called independently from reporting -- // errors to clients via method return values. -- static scoped_refptr CreateForVideoCodec( -- CodecMode mode, -- VideoCodecProfile profile, -- const base::Closure& report_error_to_uma_cb); -- -- // Return the supported video encode profiles. -- static VideoEncodeAccelerator::SupportedProfiles GetSupportedEncodeProfiles(); -- -- // Return the supported video decode profiles. -- static VideoDecodeAccelerator::SupportedProfiles GetSupportedDecodeProfiles(); -- -- // Return true when JPEG decode is supported. -- static bool IsJpegDecodeSupported(); -- -- // Return true when JPEG encode is supported. -- static bool IsJpegEncodeSupported(); -- -- // Create |num_surfaces| backing surfaces in driver for VASurfaces of -- // |va_format|, each of size |size|. Returns true when successful, with the -- // created IDs in |va_surfaces| to be managed and later wrapped in -- // VASurfaces. -- // The client must DestroySurfaces() each time before calling this method -- // again to free the allocated surfaces first, but is not required to do so -- // at destruction time, as this will be done automatically from -- // the destructor. -- virtual bool CreateSurfaces(unsigned int va_format, -- const gfx::Size& size, -- size_t num_surfaces, -- std::vector* va_surfaces); -- -- // Free all memory allocated in CreateSurfaces. -- virtual void DestroySurfaces(); -- -- // Create a VASurface of |va_format|, |size| and using |va_attribs| -- // attributes. The ownership of the surface is transferred to the -- // caller. It differs from surfaces created using CreateSurfaces(), -- // where VaapiWrapper is the owner of the surfaces. -- scoped_refptr CreateUnownedSurface( -- unsigned int va_format, -- const gfx::Size& size, -- const std::vector& va_attribs); -- -- // Create a VASurface for |pixmap|. The ownership of the surface is -- // transferred to the caller. It differs from surfaces created using -- // CreateSurfaces(), where VaapiWrapper is the owner of the surfaces. -- scoped_refptr CreateVASurfaceForPixmap( -- const scoped_refptr& pixmap); -- -- // Submit parameters or slice data of |va_buffer_type|, copying them from -- // |buffer| of size |size|, into HW codec. The data in |buffer| is no -- // longer needed and can be freed after this method returns. -- // Data submitted via this method awaits in the HW codec until -- // ExecuteAndDestroyPendingBuffers() is called to execute or -- // DestroyPendingBuffers() is used to cancel a pending job. -- bool SubmitBuffer(VABufferType va_buffer_type, size_t size, void* buffer); -- -- // Submit a VAEncMiscParameterBuffer of given |misc_param_type|, copying its -- // data from |buffer| of size |size|, into HW codec. The data in |buffer| is -- // no longer needed and can be freed after this method returns. -- // Data submitted via this method awaits in the HW codec until -- // ExecuteAndDestroyPendingBuffers() is called to execute or -- // DestroyPendingBuffers() is used to cancel a pending job. -- bool SubmitVAEncMiscParamBuffer(VAEncMiscParameterType misc_param_type, -- size_t size, -- void* buffer); -- -- // Cancel and destroy all buffers queued to the HW codec via SubmitBuffer(). -- // Useful when a pending job is to be cancelled (on reset or error). -- void DestroyPendingBuffers(); -- -- // Execute job in hardware on target |va_surface_id| and destroy pending -- // buffers. Return false if Execute() fails. -- bool ExecuteAndDestroyPendingBuffers(VASurfaceID va_surface_id); -- --#if defined(USE_X11) -- // Put data from |va_surface_id| into |x_pixmap| of size -- // |dest_size|, converting/scaling to it. -- bool PutSurfaceIntoPixmap(VASurfaceID va_surface_id, -- Pixmap x_pixmap, -- gfx::Size dest_size); --#endif // USE_X11 -- -- // Get a VAImage from a VASurface |va_surface_id| and map it into memory with -- // given |format| and |size|. The output is |image| and the mapped memory is -- // |mem|. If |format| doesn't equal to the internal format, the underlying -- // implementation will do format conversion if supported. |size| should be -- // smaller than or equal to the surface. If |size| is smaller, the image will -- // be cropped. The VAImage should be released using the ReturnVaImage -- // function. Returns true when successful. -- bool GetVaImage(VASurfaceID va_surface_id, -- VAImageFormat* format, -- const gfx::Size& size, -- VAImage* image, -- void** mem); -- -- // Release the VAImage (and the associated memory mapping) obtained from -- // GetVaImage(). -- void ReturnVaImage(VAImage* image); -- -- // Upload contents of |frame| into |va_surface_id| for encode. -- bool UploadVideoFrameToSurface(const scoped_refptr& frame, -- VASurfaceID va_surface_id); -- -- // Create a buffer of |size| bytes to be used as encode output. -- bool CreateCodedBuffer(size_t size, VABufferID* buffer_id); -- -- // Download the contents of the buffer with given |buffer_id| into a buffer of -- // size |target_size|, pointed to by |target_ptr|. The number of bytes -- // downloaded will be returned in |coded_data_size|. |sync_surface_id| will -- // be used as a sync point, i.e. it will have to become idle before starting -- // the download. |sync_surface_id| should be the source surface passed -- // to the encode job. -- bool DownloadFromCodedBuffer(VABufferID buffer_id, -- VASurfaceID sync_surface_id, -- uint8_t* target_ptr, -- size_t target_size, -- size_t* coded_data_size); -- -- // See DownloadFromCodedBuffer() for details. After downloading, it deletes -- // the VA buffer with |buffer_id|. -- bool DownloadAndDestroyCodedBuffer(VABufferID buffer_id, -- VASurfaceID sync_surface_id, -- uint8_t* target_ptr, -- size_t target_size, -- size_t* coded_data_size); -- -- // Destroy all previously-allocated (and not yet destroyed) coded buffers. -- void DestroyCodedBuffers(); -- -- // Blits a VASurface |va_surface_src| into another VASurface -- // |va_surface_dest| applying pixel format conversion and scaling -- // if needed. -- bool BlitSurface(const scoped_refptr& va_surface_src, -- const scoped_refptr& va_surface_dest); -- -- // Initialize static data before sandbox is enabled. -- static void PreSandboxInitialization(); -- -- // Get the created surfaces format. -- unsigned int va_surface_format() const { return va_surface_format_; } -- -- protected: -- VaapiWrapper(); -- virtual ~VaapiWrapper(); -- -- private: -- friend class base::RefCountedThreadSafe; -- -- bool Initialize(CodecMode mode, VAProfile va_profile); -- void Deinitialize(); -- bool VaInitialize(const base::Closure& report_error_to_uma_cb); -- -- // Free all memory allocated in CreateSurfaces. -- void DestroySurfaces_Locked(); -- // Destroys a |va_surface| created using CreateUnownedSurface. -- void DestroyUnownedSurface(VASurfaceID va_surface_id); -- -- // Initialize the video post processing context with the |size| of -- // the input pictures to be processed. -- bool InitializeVpp_Locked(); -- -- // Deinitialize the video post processing context. -- void DeinitializeVpp(); -- -- // Execute pending job in hardware and destroy pending buffers. Return false -- // if vaapi driver refuses to accept parameter or slice buffers submitted -- // by client, or if execution fails in hardware. -- bool Execute(VASurfaceID va_surface_id); -- -- // Attempt to set render mode to "render to texture.". Failure is non-fatal. -- void TryToSetVADisplayAttributeToLocalGPU(); -- -- // Pointer to VADisplayState's member |va_lock_|. Guaranteed to be valid for -- // the lifetime of VaapiWrapper. -- base::Lock* va_lock_; -- -- // Allocated ids for VASurfaces. -- std::vector va_surface_ids_; -- -- // VA format of surfaces with va_surface_ids_. -- unsigned int va_surface_format_; -- -- // VA handles. -- // All valid after successful Initialize() and until Deinitialize(). -- VADisplay va_display_; -- VAConfigID va_config_id_; -- // Created for the current set of va_surface_ids_ in CreateSurfaces() and -- // valid until DestroySurfaces(). -- VAContextID va_context_id_; -- -- // Data queued up for HW codec, to be committed on next execution. -- std::vector pending_slice_bufs_; -- std::vector pending_va_bufs_; -- -- // Bitstream buffers for encode. -- std::set coded_buffers_; -- -- // Called to report codec errors to UMA. Errors to clients are reported via -- // return values from public methods. -- base::Closure report_error_to_uma_cb_; -- -- // VPP (Video Post Processing) context, this is used to convert -- // pictures used by the decoder to RGBA pictures usable by GL or the -- // display hardware. -- VAConfigID va_vpp_config_id_; -- VAContextID va_vpp_context_id_; -- VABufferID va_vpp_buffer_id_; -- -- DISALLOW_COPY_AND_ASSIGN(VaapiWrapper); --}; -- --} // namespace media -- --#endif // MEDIA_GPU_VAAPI_WRAPPER_H_ ---- a/media/gpu/video_decode_accelerator_unittest.cc -+++ b/media/gpu/video_decode_accelerator_unittest.cc -@@ -75,7 +75,7 @@ - #include "media/gpu/dxva_video_decode_accelerator_win.h" - #endif // defined(OS_WIN) - #if BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #endif // BUILDFLAG(USE_VAAPI) - - #if defined(OS_CHROMEOS) ---- a/media/gpu/video_encode_accelerator_unittest.cc -+++ b/media/gpu/video_encode_accelerator_unittest.cc -@@ -56,7 +56,7 @@ - #include "testing/gtest/include/gtest/gtest.h" - - #if BUILDFLAG(USE_VAAPI) --#include "media/gpu/vaapi_wrapper.h" -+#include "media/gpu/vaapi/vaapi_wrapper.h" - #elif defined(OS_WIN) - #include "media/gpu/media_foundation_video_encode_accelerator_win.h" - #endif diff --git a/resources/patches/inox-patchset/chromium-vaapi-r16.patch b/resources/patches/inox-patchset/chromium-vaapi-r16.patch index 93702903..4aba62ef 100644 --- a/resources/patches/inox-patchset/chromium-vaapi-r16.patch +++ b/resources/patches/inox-patchset/chromium-vaapi-r16.patch @@ -1,6 +1,6 @@ -From 7f29b44224439377592be2b75da0b86d82d8ad6d Mon Sep 17 00:00:00 2001 +From 4bf343ab8c4a538205f9c1e96a661e40620c716b Mon Sep 17 00:00:00 2001 From: Daniel Charles -Date: Wed, 18 Oct 2017 17:27:42 -0700 +Date: Fri, 09 Feb 2018 14:39:27 -0800 Subject: [PATCH] Enable VAVDA, VAVEA and VAJDA on linux with VAAPI only This patch contains all the changes necessary to use VA-API along with @@ -24,12 +24,10 @@ video are used. The other flags are kept for ChromeOS and other OSes. Developer testing was made on skylake hardware, ChromeOS and Ubuntu. BUG=NONE -TEST="subjective testing with VAVDA,VAVEA and VAJDA, autotest for encoder" -TEST="and decoder hardware accelerated" -TEST="have libva/intel-vaapi-driver installed and not installed in the system" -TEST="repeat on different hardware families" -R=posciak@chromium.org -R=kcwu@chromium.org +TEST=subjective testing with VAVDA,VAVEA and VAJDA, autotest for encoder + and decoder hardware accelerated + have libva/intel-vaapi-driver installed and not installed in the system + repeat on different hardware families Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Ifbbf5c9e5221a8b5733fc6d4d0cf984a1f103171 @@ -39,10 +37,10 @@ Signed-off-by: Daniel Charles --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc @@ -1281,12 +1281,14 @@ - flag_descriptions::kEnablePreventLayerSquashingDescription, kOsAll, - FEATURE_VALUE_TYPE(features::kEnablePreventLayerSquashing)}, + flag_descriptions::kUiPartialSwapDescription, kOsAll, + SINGLE_DISABLE_VALUE_TYPE(switches::kUIDisablePartialSwap)}, #if BUILDFLAG(ENABLE_WEBRTC) -+#if !defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) ++#if defined(OS_CHROMEOS) || defined(OS_ANDROID) {"disable-webrtc-hw-decoding", flag_descriptions::kWebrtcHwDecodingName, flag_descriptions::kWebrtcHwDecodingDescription, kOsAndroid | kOsCrOS, SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)}, @@ -53,8 +51,8 @@ Signed-off-by: Daniel Charles {"enable-webrtc-hw-h264-encoding", flag_descriptions::kWebrtcHwH264EncodingName, flag_descriptions::kWebrtcHwH264EncodingDescription, kOsAndroid | kOsCrOS, -@@ -1567,6 +1569,13 @@ - flag_descriptions::kShowTouchHudDescription, kOsAll, +@@ -1582,6 +1584,13 @@ + flag_descriptions::kShowTouchHudDescription, kOsCrOS, SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud)}, #endif // OS_CHROMEOS +#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) @@ -67,15 +65,15 @@ Signed-off-by: Daniel Charles { "disable-accelerated-video-decode", flag_descriptions::kAcceleratedVideoDecodeName, -@@ -1574,6 +1583,7 @@ +@@ -1589,6 +1598,7 @@ kOsMac | kOsWin | kOsCrOS | kOsAndroid, SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode), }, +#endif - {"mojo-video-encode-accelerator", - flag_descriptions::kMojoVideoEncodeAcceleratorName, - flag_descriptions::kMojoVideoEncodeAcceleratorDescription, -@@ -2302,12 +2312,17 @@ + #if defined(OS_WIN) + {"enable-hdr", flag_descriptions::kEnableHDRName, + flag_descriptions::kEnableHDRDescription, kOsWin, +@@ -2300,12 +2310,17 @@ FEATURE_VALUE_TYPE(features::kOpenVR)}, #endif // ENABLE_OPENVR #endif // ENABLE_VR @@ -105,7 +103,7 @@ Signed-off-by: Daniel Charles #include "cc/base/switches.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chromeos/boot_times_recorder.h" -@@ -84,8 +85,13 @@ +@@ -84,9 +85,14 @@ ::switches::kDisable2dCanvasImageChromium, ::switches::kDisableAccelerated2dCanvas, ::switches::kDisableAcceleratedJpegDecoding, @@ -115,11 +113,12 @@ Signed-off-by: Daniel Charles +#else ::switches::kDisableAcceleratedMjpegDecode, ::switches::kDisableAcceleratedVideoDecode, + ::switches::kDisableAcceleratedVideoEncode, +#endif ::switches::kDisableBlinkFeatures, ::switches::kDisableCastStreamingHWEncoding, ::switches::kDisableDistanceFieldText, -@@ -166,7 +172,7 @@ +@@ -164,7 +170,7 @@ ::switches::kDisableWebGLImageChromium, ::switches::kEnableWebGLImageChromium, ::switches::kEnableWebVR, @@ -130,11 +129,11 @@ Signed-off-by: Daniel Charles #endif --- a/chrome/browser/flag_descriptions.cc +++ b/chrome/browser/flag_descriptions.cc -@@ -19,6 +19,13 @@ +@@ -14,6 +14,13 @@ "Enables the use of the GPU to perform 2d canvas rendering instead of " "using software rendering."; -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) +const char kAcceleratedVideoName[] = "Hardware-accelerated video"; +const char kAcceleratedVideoDescription[] = + "Hardware-accelerated video where VA-API driver is installed on the" @@ -144,15 +143,15 @@ Signed-off-by: Daniel Charles const char kAcceleratedVideoDecodeName[] = "Hardware-accelerated video decode"; const char kAcceleratedVideoDecodeDescription[] = "Hardware-accelerated video decode where available."; -@@ -1578,6 +1585,7 @@ +@@ -1603,6 +1610,7 @@ const char kWebrtcEchoCanceller3Description[] = "Experimental WebRTC echo canceller (AEC3)."; -+#if !defined(OS_LINUX) || !defined(OS_CHROMEOS) ++#if defined(OS_CHROMEOS) || defined(OS_ANDROID) const char kWebrtcHwDecodingName[] = "WebRTC hardware video decoding"; const char kWebrtcHwDecodingDescription[] = "Support in WebRTC for decoding video streams using platform hardware."; -@@ -1585,6 +1593,7 @@ +@@ -1610,6 +1618,7 @@ const char kWebrtcHwEncodingName[] = "WebRTC hardware video encoding"; const char kWebrtcHwEncodingDescription[] = "Support in WebRTC for encoding video streams using platform hardware."; @@ -160,7 +159,7 @@ Signed-off-by: Daniel Charles const char kWebrtcHwH264EncodingName[] = "WebRTC hardware h264 video encoding"; const char kWebrtcHwH264EncodingDescription[] = -@@ -2396,14 +2405,16 @@ +@@ -2440,14 +2449,16 @@ // Chrome OS ------------------------------------------------------------------- @@ -191,7 +190,7 @@ Signed-off-by: Daniel Charles extern const char kAcceleratedVideoDecodeName[]; extern const char kAcceleratedVideoDecodeDescription[]; -@@ -1483,13 +1487,17 @@ +@@ -1501,13 +1505,17 @@ #endif // defined(OS_MACOSX) @@ -214,75 +213,21 @@ Signed-off-by: Daniel Charles --- a/content/browser/gpu/compositor_util.cc +++ b/content/browser/gpu/compositor_util.cc -@@ -103,7 +103,11 @@ - {"video_decode", - manager->IsFeatureBlacklisted( - gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), +@@ -98,7 +98,11 @@ + {"video_decode", + manager->GetFeatureStatus( + gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), +#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ !command_line.HasSwitch(switches::kEnableAcceleratedVideo), ++ !command_line.HasSwitch(switches::kEnableAcceleratedVideo), +#else - command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), + command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), +#endif - "Accelerated video decode has been disabled, either via blacklist," - " about:flags or the command line.", - true}, ---- a/content/browser/gpu/gpu_data_manager_impl_private.cc -+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc -@@ -709,7 +709,11 @@ - DCHECK(command_line); - - if (ShouldDisableAcceleratedVideoDecode(command_line)) -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ command_line->AppendSwitch(switches::kEnableAcceleratedVideo); -+#else - command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode); -+#endif - } - - void GpuDataManagerImplPrivate::AppendGpuCommandLine( -@@ -810,7 +814,12 @@ - prefs->accelerated_2d_canvas_enabled = false; - } - if (!ShouldDisableAcceleratedVideoDecode(command_line) && -- !command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) { -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ command_line->HasSwitch(switches::kEnableAcceleratedVideo) -+#else -+ !command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) -+#endif -+ ) { - prefs->pepper_accelerated_video_decode_enabled = true; - } - } -@@ -959,7 +968,13 @@ - - bool GpuDataManagerImplPrivate::ShouldDisableAcceleratedVideoDecode( - const base::CommandLine* command_line) const { -- if (command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) { -+ if ( -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ !command_line->HasSwitch(switches::kEnableAcceleratedVideo) -+#else -+ command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) -+#endif -+ ) { - // It was already disabled on the command line. - return false; - } + "Accelerated video decode has been disabled, either via blacklist," + " about:flags or the command line.", + true}, --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc -@@ -114,13 +114,18 @@ - service_manager::switches::kDisableSeccompFilterSandbox, - service_manager::switches::kGpuSandboxAllowSysVShm, - service_manager::switches::kGpuSandboxFailuresFatal, -+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID) -+ switches::kEnableAcceleratedVideo, -+#else -+ switches::kDisableAcceleratedVideoDecode, -+#endif - switches::kDisableBreakpad, - switches::kDisableGpuRasterization, - switches::kDisableGpuSandbox, +@@ -120,7 +120,7 @@ switches::kDisableGLExtensions, switches::kDisableLogging, switches::kDisableShaderNameHashing, @@ -309,7 +254,7 @@ Signed-off-by: Daniel Charles --- a/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc +++ b/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc -@@ -64,15 +64,21 @@ +@@ -65,15 +65,21 @@ bool is_platform_supported = base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kUseFakeJpegDecodeAccelerator); @@ -337,7 +282,7 @@ Signed-off-by: Daniel Charles return; --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -2534,7 +2534,11 @@ +@@ -2530,7 +2530,11 @@ switches::kDefaultTileHeight, switches::kDisable2dCanvasImageChromium, switches::kDisableAcceleratedJpegDecoding, @@ -348,8 +293,8 @@ Signed-off-by: Daniel Charles +#endif switches::kDisableBackgroundTimerThrottling, switches::kDisableBreakpad, - switches::kDisableBrowserSideNavigation, -@@ -2682,8 +2686,10 @@ + switches::kDisableCompositorUkmForTests, +@@ -2663,8 +2667,10 @@ switches::kDisableMojoRenderer, #endif #if BUILDFLAG(ENABLE_WEBRTC) @@ -378,15 +323,7 @@ Signed-off-by: Daniel Charles private: --- a/content/gpu/BUILD.gn +++ b/content/gpu/BUILD.gn -@@ -48,7 +48,6 @@ - ] - - configs += [ "//content:content_implementation" ] -- - deps = [ - "//base", - "//base/third_party/dynamic_annotations", -@@ -124,4 +123,8 @@ +@@ -125,4 +125,8 @@ if (is_desktop_linux && (!is_chromecast || is_cast_desktop_build)) { configs += [ "//build/config/linux/dri" ] } @@ -397,16 +334,16 @@ Signed-off-by: Daniel Charles } --- a/content/gpu/gpu_main.cc +++ b/content/gpu/gpu_main.cc -@@ -271,7 +271,7 @@ - // Initializes StatisticsRecorder which tracks UMA histograms. - base::StatisticsRecorder::Initialize(); +@@ -273,7 +273,7 @@ + + base::PlatformThread::SetName("CrGpuMain"); -#if defined(OS_ANDROID) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) // Set thread priority before sandbox initialization. base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY); #endif -@@ -300,7 +300,7 @@ +@@ -302,7 +302,7 @@ GetContentClient()->SetGpuInfo(gpu_init->gpu_info()); base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL; @@ -425,7 +362,7 @@ Signed-off-by: Daniel Charles #include "content/browser/gpu/gpu_process_host.h" #include "content/public/common/content_features.h" #include "content/public/common/content_switches.h" -@@ -55,12 +56,19 @@ +@@ -55,10 +56,18 @@ gpu_preferences.in_process_gpu = command_line->HasSwitch(switches::kInProcessGPU); gpu_preferences.disable_accelerated_video_decode = @@ -433,17 +370,15 @@ Signed-off-by: Daniel Charles + !command_line->HasSwitch(switches::kEnableAcceleratedVideo); +#else command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode); --#if defined(OS_CHROMEOS) +#endif + gpu_preferences.disable_accelerated_video_encode = +#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ gpu_preferences.disable_vaapi_accelerated_video_encode = + !command_line->HasSwitch(switches::kEnableAcceleratedVideo); -+#elif defined(OS_CHROMEOS) - gpu_preferences.disable_vaapi_accelerated_video_encode = - command_line->HasSwitch(switches::kDisableVaapiAcceleratedVideoEncode); - #endif ++#else + command_line->HasSwitch(switches::kDisableAcceleratedVideoEncode); -#if BUILDFLAG(ENABLE_WEBRTC) -+#if BUILDFLAG(ENABLE_WEBRTC) && (!defined(OS_LINUX) || defined(OS_CHROMEOS)) ++#endif ++#if BUILDFLAG(ENABLE_WEBRTC) && (defined(OS_CHROMEOS) || defined(OS_ANDROID)) gpu_preferences.disable_web_rtc_hw_encoding = command_line->HasSwitch(switches::kDisableWebRtcHWEncoding); #endif @@ -472,7 +407,7 @@ Signed-off-by: Daniel Charles // Disables hardware acceleration of video decode, where available. const char kDisableAcceleratedVideoDecode[] = "disable-accelerated-video-decode"; -@@ -903,11 +912,13 @@ +@@ -888,11 +897,13 @@ // ignores this switch on its stable and beta channels. const char kDisableWebRtcEncryption[] = "disable-webrtc-encryption"; @@ -498,8 +433,8 @@ Signed-off-by: Daniel Charles CONTENT_EXPORT extern const char kDisableAcceleratedMjpegDecode[]; +#endif CONTENT_EXPORT extern const char kDisableAcceleratedVideoDecode[]; + CONTENT_EXPORT extern const char kDisableAcceleratedVideoEncode[]; CONTENT_EXPORT extern const char kDisableAudioSupportForDesktopShare[]; - extern const char kDisableBackingStoreLimit[]; @@ -107,6 +111,9 @@ CONTENT_EXPORT extern const char kDomAutomationController[]; extern const char kDisable2dCanvasClipAntialiasing[]; @@ -510,7 +445,7 @@ Signed-off-by: Daniel Charles CONTENT_EXPORT extern const char kEnableAggressiveDOMStorageFlushing[]; CONTENT_EXPORT extern const char kEnableAutomation[]; CONTENT_EXPORT extern const char kEnablePreferCompositingToLCDText[]; -@@ -248,8 +255,10 @@ +@@ -244,8 +251,10 @@ #if BUILDFLAG(ENABLE_WEBRTC) CONTENT_EXPORT extern const char kDisableWebRtcEncryption[]; @@ -523,7 +458,7 @@ Signed-off-by: Daniel Charles CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[]; --- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc +++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc -@@ -243,10 +243,19 @@ +@@ -245,12 +245,19 @@ const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); if (gpu_factories && gpu_factories->IsGpuVideoAcceleratorEnabled()) { @@ -540,24 +475,25 @@ Signed-off-by: Daniel Charles +#else + if (!cmd_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) +#endif -+ { encoder_factory.reset(new RTCVideoEncoderFactory(gpu_factories)); - } +- } } + + #if defined(OS_ANDROID) --- a/content/renderer/render_thread_impl.cc +++ b/content/renderer/render_thread_impl.cc -@@ -1496,7 +1496,11 @@ +@@ -1485,7 +1485,11 @@ scoped_refptr media_task_runner = GetMediaThreadTaskRunner(); const bool enable_video_accelerator = +#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+ cmd_line->HasSwitch(switches::kEnableAcceleratedVideo); ++ cmd_line->HasSwitch(switches::kEnableAcceleratedVideo) && +#else - !cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode); + !cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) && +#endif - const bool enable_gpu_memory_buffer_video_frames = - !is_gpu_compositing_disabled_ && - #if defined(OS_MACOSX) || defined(OS_LINUX) + (gpu_channel_host->gpu_feature_info() + .status_values[gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE] == + gpu::kGpuFeatureStatusEnabled); --- a/gpu/config/software_rendering_list.json +++ b/gpu/config/software_rendering_list.json @@ -373,17 +373,6 @@ @@ -580,7 +516,7 @@ Signed-off-by: Daniel Charles "cr_bugs": [145531, 332596, 571899, 629434], --- a/media/gpu/BUILD.gn +++ b/media/gpu/BUILD.gn -@@ -25,6 +25,14 @@ +@@ -24,6 +24,14 @@ import("//build/config/mac/mac_sdk.gni") } @@ -595,7 +531,7 @@ Signed-off-by: Daniel Charles if (use_vaapi) { action("libva_generate_stubs") { extra_header = "vaapi/va_stub_header.fragment" -@@ -356,6 +364,10 @@ +@@ -353,6 +361,10 @@ if (use_ozone) { deps += [ "//ui/ozone" ] } @@ -606,13 +542,3 @@ Signed-off-by: Daniel Charles } if (is_win) { ---- a/media/gpu/gpu_video_decode_accelerator_factory.cc -+++ b/media/gpu/gpu_video_decode_accelerator_factory.cc -@@ -87,6 +87,7 @@ - // profile (instead of calculating a superset). - // TODO(posciak,henryhsu): improve this so that we choose a superset of - // resolutions and other supported profile parameters. -+ DVLOG(1) << "Get Supported profiles"; - #if defined(OS_WIN) - capabilities.supported_profiles = - DXVAVideoDecodeAccelerator::GetSupportedProfiles(gpu_preferences, diff --git a/resources/patches/inox-patchset/chromium-vaapi-rgbx.patch b/resources/patches/inox-patchset/chromium-vaapi-rgbx.patch deleted file mode 100644 index f6e1debf..00000000 --- a/resources/patches/inox-patchset/chromium-vaapi-rgbx.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 51357dc19efbf30328ca05655fbf69886f6e9113 Mon Sep 17 00:00:00 2001 -From: Julien Isorce -Date: Tue, 05 Dec 2017 23:39:45 +0000 -Subject: [PATCH] Allow RGBX for VaapiTFPPicture - -Fixes regression on non-ozone platforms and introduced by - 73d609f366ba6a86324048bbad81527f76d237b5 - https://chromium-review.googlesource.com/787290 - -Note that the format is only used for sanity check. All the logic is -done automatically in the vaapi driver's implementation of vaPutSurface. - -Bug: 785201 -Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel -Change-Id: Idc0bdf184874bf2c238e28da6f42f4e3572e9743 -Reviewed-on: https://chromium-review.googlesource.com/807928 -Reviewed-by: Dan Sanders -Commit-Queue: Julien Isorce -Cr-Commit-Position: refs/heads/master@{#521897} ---- - -diff --git a/media/gpu/vaapi/vaapi_tfp_picture.cc b/media/gpu/vaapi/vaapi_tfp_picture.cc -index e9eecce..bd7823c 100644 ---- a/media/gpu/vaapi/vaapi_tfp_picture.cc -+++ b/media/gpu/vaapi/vaapi_tfp_picture.cc -@@ -72,7 +72,8 @@ - bool VaapiTFPPicture::Allocate(gfx::BufferFormat format) { - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); - if (format != gfx::BufferFormat::BGRX_8888 && -- format != gfx::BufferFormat::BGRA_8888) { -+ format != gfx::BufferFormat::BGRA_8888 && -+ format != gfx::BufferFormat::RGBX_8888) { - DLOG(ERROR) << "Unsupported format"; - return false; - } diff --git a/resources/patches/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch b/resources/patches/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch index f69ba973..fa7edb1f 100644 --- a/resources/patches/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch +++ b/resources/patches/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch @@ -73,7 +73,7 @@ by default. --- a/build/mac/tweak_info_plist.py +++ b/build/mac/tweak_info_plist.py -@@ -209,7 +209,7 @@ def _AddKeystoneKeys(plist, bundle_ident +@@ -209,7 +209,7 @@ also requires the |bundle_identifier| argument (com.example.product).""" plist['KSVersion'] = plist['CFBundleShortVersionString'] plist['KSProductID'] = bundle_identifier @@ -84,7 +84,7 @@ by default. for tag_suffix in _TagSuffixes(): --- a/chrome/browser/chromeos/customization/customization_document.cc +++ b/chrome/browser/chromeos/customization/customization_document.cc -@@ -167,7 +167,7 @@ std::string ReadFileInBackground(const b +@@ -168,7 +168,7 @@ // Template URL where to fetch OEM services customization manifest from. const char ServicesCustomizationDocument::kManifestUrl[] = @@ -95,7 +95,7 @@ by default. // creates and uses to publish OEM default apps to the extensions system. --- a/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc -@@ -1129,7 +1129,7 @@ void FileManagerPrivateInternalGetDownlo +@@ -1129,7 +1129,7 @@ SigninManagerFactory::GetForProfile(GetProfile()); const std::string& account_id = signin_manager->GetAuthenticatedAccountId(); std::vector scopes; @@ -106,7 +106,7 @@ by default. new google_apis::AuthService(oauth2_token_service, --- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc -@@ -66,7 +66,7 @@ namespace { +@@ -65,7 +65,7 @@ using api::file_manager_private::ProfileInfo; @@ -117,7 +117,7 @@ by default. AppWindow* GetCurrentAppWindow(UIThreadExtensionFunction* function) { --- a/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc -@@ -22,26 +22,26 @@ namespace { +@@ -22,26 +22,26 @@ // Location of the page to buy more storage for Google Drive. const char kGoogleDriveBuyStorageUrl[] = @@ -152,7 +152,7 @@ by default. const int kDownloadsLowSpaceWarningHelpNumber = 1061547; --- a/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc +++ b/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc -@@ -16,8 +16,8 @@ namespace { +@@ -29,8 +29,8 @@ const char kGoogleDotCom[] = "google.com"; constexpr const char* kGoogleGstaticAppIds[] = { @@ -161,11 +161,11 @@ by default. + "trk:273:https://www.gstatic.com/securitykey/origins.json", + "trk:274:https://www.gstatic.com/securitykey/a/google.com/origins.json"}; - } // namespace - + // ContainsAppIdByHash returns true iff the SHA-256 hash of one of the + // elements of |list| equals |hash|. --- a/chrome/browser/extensions/install_signer.cc +++ b/chrome/browser/extensions/install_signer.cc -@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2; +@@ -65,7 +65,7 @@ const size_t kSaltBytes = 32; const char kBackendUrl[] = @@ -174,17 +174,9 @@ by default. const char kPublicKeyPEM[] = \ "-----BEGIN PUBLIC KEY-----" \ ---- a/chrome/browser/media/media_url_constants.cc -+++ b/chrome/browser/media/media_url_constants.cc -@@ -4,4 +4,4 @@ - - #include "chrome/browser/media/media_url_constants.h" - --const char kUploadURL[] = "https://clients2.google.com/cr/report"; -+const char kUploadURL[] = "trk:108:https://clients2.google.com/cr/report"; --- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc +++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc -@@ -56,5 +56,5 @@ base::string16 NaClInfoBarDelegate::GetL +@@ -42,5 +42,5 @@ } GURL NaClInfoBarDelegate::GetLinkURL() const { @@ -193,7 +185,7 @@ by default. } --- a/chrome/browser/net/predictor.cc +++ b/chrome/browser/net/predictor.cc -@@ -350,7 +350,7 @@ std::vector Predictor::GetPredicte +@@ -350,7 +350,7 @@ } if (urls.empty()) @@ -204,7 +196,7 @@ by default. } --- a/chrome/browser/profiles/profile_avatar_downloader.cc +++ b/chrome/browser/profiles/profile_avatar_downloader.cc -@@ -17,7 +17,7 @@ +@@ -18,7 +18,7 @@ namespace { const char kHighResAvatarDownloadUrlPrefix[] = @@ -215,7 +207,7 @@ by default. ProfileAvatarDownloader::ProfileAvatarDownloader( --- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js -@@ -78,9 +78,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = { +@@ -78,9 +78,9 @@ 'position': '{}', 'siteSpecificEnhancements': true, 'siteSpecificScriptBase': @@ -250,7 +242,7 @@ by default. --- a/chrome/browser/safe_browsing/client_side_detection_service.cc +++ b/chrome/browser/safe_browsing/client_side_detection_service.cc -@@ -77,9 +77,9 @@ const int ClientSideDetectionService::kN +@@ -77,9 +77,9 @@ const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30; const char ClientSideDetectionService::kClientReportPhishingUrl[] = @@ -264,7 +256,7 @@ by default. std::unique_ptr fetcher; --- a/chrome/browser/safe_browsing/download_protection/download_feedback.cc +++ b/chrome/browser/safe_browsing/download_protection/download_feedback.cc -@@ -230,7 +230,7 @@ const int64_t DownloadFeedback::kMaxUplo +@@ -230,7 +230,7 @@ // static const char DownloadFeedback::kSbFeedbackURL[] = @@ -275,7 +267,7 @@ by default. DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr; --- a/chrome/browser/safe_search_api/safe_search_url_checker.cc +++ b/chrome/browser/safe_search_api/safe_search_url_checker.cc -@@ -32,7 +32,7 @@ using net::URLRequestStatus; +@@ -32,7 +32,7 @@ namespace { @@ -286,7 +278,7 @@ by default. --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc -@@ -234,7 +234,7 @@ void SpellcheckHunspellDictionary::OnURL +@@ -234,7 +234,7 @@ GURL SpellcheckHunspellDictionary::GetDictionaryURL() { static const char kDownloadServerUrl[] = @@ -297,7 +289,7 @@ by default. DCHECK(!bdict_file.empty()); --- a/chrome/browser/supervised_user/supervised_user_service.cc +++ b/chrome/browser/supervised_user/supervised_user_service.cc -@@ -103,7 +103,7 @@ namespace { +@@ -103,7 +103,7 @@ // The URL from which to download a host blacklist if no local one exists yet. const char kBlacklistURL[] = @@ -308,18 +300,18 @@ by default. --- a/chrome/browser/tracing/crash_service_uploader.cc +++ b/chrome/browser/tracing/crash_service_uploader.cc -@@ -39,7 +39,7 @@ using std::string; +@@ -40,7 +40,7 @@ namespace { -const char kUploadURL[] = "https://clients2.google.com/cr/report"; +const char kUploadURL[] = "trk:109:https://clients2.google.com/cr/report"; - const char kUploadContentType[] = "multipart/form-data"; - const char kMultipartBoundary[] = + const char kCrashUploadContentType[] = "multipart/form-data"; + const char kCrashMultipartBoundary[] = "----**--yradnuoBgoLtrapitluMklaTelgooG--**----"; --- a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc +++ b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc -@@ -32,7 +32,7 @@ namespace { +@@ -32,7 +32,7 @@ // The URL to be used to re-install Chrome when auto-update failed for too long. constexpr char kDownloadChromeUrl[] = @@ -330,7 +322,7 @@ by default. // The maximum number of ignored bubble we track in the NumLaterPerReinstall --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc -@@ -66,17 +66,17 @@ namespace { +@@ -66,17 +66,17 @@ // The URL for the the Learn More page shown on incognito new tab. const char kLearnMoreIncognitoUrl[] = #if defined(OS_CHROMEOS) @@ -354,7 +346,7 @@ by default. SkColor GetThemeColor(const ui::ThemeProvider& tp, int id) { --- a/chrome/common/extensions/chrome_extensions_client.cc +++ b/chrome/common/extensions/chrome_extensions_client.cc -@@ -58,9 +58,9 @@ namespace { +@@ -58,9 +58,9 @@ // TODO(battre): Delete the HTTP URL once the blacklist is downloaded via HTTPS. const char kExtensionBlocklistUrlPrefix[] = @@ -368,7 +360,7 @@ by default. --- a/chrome/common/extensions/extension_constants.cc +++ b/chrome/common/extensions/extension_constants.cc -@@ -11,7 +11,7 @@ namespace extension_urls { +@@ -11,7 +11,7 @@ namespace { const char kGalleryUpdateHttpsUrl[] = @@ -379,7 +371,7 @@ by default. --- a/chrome/common/url_constants.cc +++ b/chrome/common/url_constants.cc -@@ -23,7 +23,7 @@ const char kCupsPrintLearnMoreURL[] = +@@ -23,7 +23,7 @@ const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html"; const char kOemEulaURLPath[] = "oem"; const char kOnlineEulaURLPath[] = @@ -388,7 +380,7 @@ by default. const char kChromeOSCreditsPath[] = "/opt/google/chrome/resources/about_os_credits.html"; -@@ -35,7 +35,7 @@ const char kChromeOSAssetPath[] = "/usr/ +@@ -35,7 +35,7 @@ const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/"; const char kSyncGoogleDashboardURL[] = @@ -397,7 +389,7 @@ by default. const char kGoogleAccountActivityControlsURL[] = "https://myaccount.google.com/activitycontrols/search"; -@@ -237,7 +237,7 @@ const char kCloudPrintLearnMoreURL[] = +@@ -240,7 +240,7 @@ #endif const char kCloudPrintNoDestinationsLearnMoreURL[] = @@ -408,7 +400,7 @@ by default. "https://support.google.com/chrome_webstore/?p=cws_app_launcher"; --- a/chrome/installer/util/google_chrome_distribution.cc +++ b/chrome/installer/util/google_chrome_distribution.cc -@@ -48,7 +48,7 @@ base::string16 LocalizeUrl(const wchar_t +@@ -48,7 +48,7 @@ } base::string16 GetUninstallSurveyUrl() { @@ -419,7 +411,7 @@ by default. } --- a/chromecast/browser/service/cast_service_simple.cc +++ b/chromecast/browser/service/cast_service_simple.cc -@@ -25,7 +25,7 @@ GURL GetStartupURL() { +@@ -24,7 +24,7 @@ const base::CommandLine::StringVector& args = command_line->GetArgs(); if (args.empty()) @@ -430,7 +422,7 @@ by default. if (url.is_valid() && url.has_scheme()) --- a/chromeos/geolocation/simple_geolocation_provider.cc +++ b/chromeos/geolocation/simple_geolocation_provider.cc -@@ -20,7 +20,7 @@ namespace chromeos { +@@ -20,7 +20,7 @@ namespace { const char kDefaultGeolocationProviderUrl[] = @@ -468,7 +460,7 @@ by default. --- a/components/crash/content/app/breakpad_linux.cc +++ b/components/crash/content/app/breakpad_linux.cc -@@ -88,7 +88,7 @@ namespace breakpad { +@@ -87,7 +87,7 @@ namespace { #if !defined(OS_CHROMEOS) @@ -479,7 +471,7 @@ by default. bool g_is_crash_reporter_enabled = false; --- a/components/drive/service/drive_api_service.cc +++ b/components/drive/service/drive_api_service.cc -@@ -78,11 +78,11 @@ namespace drive { +@@ -77,11 +77,11 @@ namespace { // OAuth2 scopes for Drive API. @@ -497,7 +489,7 @@ by default. const char kFolderMimeType[] = "application/vnd.google-apps.folder"; --- a/components/feedback/feedback_uploader.cc +++ b/components/feedback/feedback_uploader.cc -@@ -24,7 +24,7 @@ constexpr base::FilePath::CharType kFeed +@@ -24,7 +24,7 @@ FILE_PATH_LITERAL("Feedback Reports"); constexpr char kFeedbackPostUrl[] = @@ -508,7 +500,7 @@ by default. --- a/components/gcm_driver/gcm_account_tracker.cc +++ b/components/gcm_driver/gcm_account_tracker.cc -@@ -23,9 +23,9 @@ namespace gcm { +@@ -23,9 +23,9 @@ namespace { // Scopes needed by the OAuth2 access tokens. @@ -522,7 +514,7 @@ by default. // Minimum token validity when sending to GCM groups server. --- a/components/history/core/browser/web_history_service.cc +++ b/components/history/core/browser/web_history_service.cc -@@ -41,13 +41,13 @@ namespace history { +@@ -40,13 +40,13 @@ namespace { const char kHistoryOAuthScope[] = @@ -541,7 +533,7 @@ by default. "https://history.google.com/history/api/lookup?client=audio"; --- a/components/invalidation/impl/gcm_network_channel.cc +++ b/components/invalidation/impl/gcm_network_channel.cc -@@ -39,7 +39,7 @@ namespace syncer { +@@ -39,7 +39,7 @@ namespace { const char kCacheInvalidationEndpointUrl[] = @@ -581,7 +573,7 @@ by default. --- a/components/password_manager/core/browser/password_store.cc +++ b/components/password_manager/core/browser/password_store.cc -@@ -208,10 +208,10 @@ void PasswordStore::GetLogins(const Form +@@ -210,10 +210,10 @@ // TODO(mdm): actually delete them at some point, say M24 or so. base::Time ignore_logins_cutoff; // the null time if (form.scheme == PasswordForm::SCHEME_HTML && @@ -598,7 +590,7 @@ by default. base::Time out_time; --- a/components/policy/core/common/policy_loader_win.cc +++ b/components/policy/core/common/policy_loader_win.cc -@@ -60,7 +60,7 @@ const char kKeyThirdParty[] = "3rdparty" +@@ -60,7 +60,7 @@ // The web store url that is the only trusted source for extensions. const char kExpectedWebStoreUrl[] = @@ -618,7 +610,7 @@ by default. 'id': 34, 'caption': '''Configure the list of force-installed apps and extensions''', 'tags': ['full-admin-access'], -@@ -5906,7 +5906,7 @@ +@@ -5904,7 +5904,7 @@ 'features': { 'dynamic_refresh': True, }, @@ -629,18 +621,18 @@ by default. 'tags': [], --- a/components/rappor/rappor_service_impl.cc +++ b/components/rappor/rappor_service_impl.cc -@@ -37,7 +37,7 @@ const char kRapporRolloutFieldTrialName[ - const char kRapporRolloutServerUrlParam[] = "ServerUrl"; +@@ -30,7 +30,7 @@ + const char kRapporDailyEventHistogram[] = "Rappor.DailyEvent.IntervalType"; // The rappor server's URL. -const char kDefaultServerUrl[] = "https://clients4.google.com/rappor"; +const char kDefaultServerUrl[] = "trk:266:https://clients4.google.com/rappor"; - GURL GetServerUrl() { - std::string server_url = variations::GetVariationParamValue( + } // namespace + --- a/components/search_engines/prepopulated_engines.json +++ b/components/search_engines/prepopulated_engines.json -@@ -124,7 +124,7 @@ +@@ -128,7 +128,7 @@ "google": { "name": "Google", "keyword": "google.com", @@ -651,7 +643,7 @@ by default. "image_url": "{google:baseURL}searchbyimage/upload", --- a/components/translate/core/browser/translate_url_fetcher.cc +++ b/components/translate/core/browser/translate_url_fetcher.cc -@@ -112,6 +112,7 @@ bool TranslateURLFetcher::Request( +@@ -106,6 +106,7 @@ if (!extra_request_header_.empty()) fetcher_->SetExtraRequestHeaders(extra_request_header_); @@ -661,8 +653,8 @@ by default. return true; --- a/components/translate/core/common/translate_util.cc +++ b/components/translate/core/common/translate_util.cc -@@ -76,7 +76,7 @@ const LanguageCodePair kLanguageCodeChin - {"zh-CN", "zh"}, +@@ -75,7 +75,7 @@ + {"zh-CN", "zh-SG"}, }; -const char kSecurityOrigin[] = "https://translate.googleapis.com/"; @@ -672,17 +664,18 @@ by default. for (size_t i = 0; i < arraysize(kLanguageCodeSimilitudes); ++i) { --- a/components/variations/variations_url_constants.cc +++ b/components/variations/variations_url_constants.cc -@@ -8,6 +8,6 @@ namespace variations { +@@ -8,7 +8,7 @@ // Default server of Variations seed info. const char kDefaultServerUrl[] = - "https://clientservices.googleapis.com/chrome-variations/seed"; + "trk:142:https://clientservices.googleapis.com/chrome-variations/seed"; - } // namespace variations + const char kDefaultInsecureServerUrl[] = + "http://clientservices.googleapis.com/chrome-variations/seed"; --- a/content/browser/speech/speech_recognition_engine.cc +++ b/content/browser/speech/speech_recognition_engine.cc -@@ -34,7 +34,7 @@ namespace content { +@@ -34,7 +34,7 @@ namespace { const char kWebServiceBaseUrl[] = @@ -693,7 +686,7 @@ by default. --- a/content/shell/browser/shell_browser_main_parts.cc +++ b/content/shell/browser/shell_browser_main_parts.cc -@@ -73,7 +73,7 @@ GURL GetStartupURL() { +@@ -74,7 +74,7 @@ #endif if (args.empty()) @@ -704,7 +697,7 @@ by default. if (url.is_valid() && url.has_scheme()) --- a/google_apis/gaia/gaia_constants.cc +++ b/google_apis/gaia/gaia_constants.cc -@@ -24,31 +24,31 @@ const char kSyncService[] = "chromiumsyn +@@ -24,31 +24,31 @@ const char kRemotingService[] = "chromoting"; // OAuth scopes. @@ -747,7 +740,7 @@ by default. const char kGaiaSid[] = "sid"; --- a/google_apis/gaia/google_service_auth_error.cc +++ b/google_apis/gaia/google_service_auth_error.cc -@@ -253,7 +253,7 @@ std::string GoogleServiceAuthError::ToSt +@@ -253,7 +253,7 @@ case WEB_LOGIN_REQUIRED: return "Less secure apps may not authenticate with this account. " "Please visit: " @@ -758,7 +751,7 @@ by default. return std::string(); --- a/google_apis/gcm/engine/gservices_settings.cc +++ b/google_apis/gcm/engine/gservices_settings.cc -@@ -29,18 +29,18 @@ const char kRegistrationURLKey[] = "gcm_ +@@ -29,18 +29,18 @@ const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days. const int64_t kMinimumCheckinInterval = 12 * 60 * 60; // seconds = 12 hours. @@ -782,7 +775,7 @@ by default. std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) { --- a/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc +++ b/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc -@@ -32,7 +32,7 @@ class GaiaCookieMechanism : public buzz: +@@ -32,7 +32,7 @@ // These attributes are necessary for working with non-gmail gaia // accounts. const std::string NS_GOOGLE_AUTH_PROTOCOL( @@ -793,7 +786,7 @@ by default. const buzz::QName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT( --- a/remoting/base/breakpad_mac.mm +++ b/remoting/base/breakpad_mac.mm -@@ -56,7 +56,7 @@ void InitializeCrashReporting() { +@@ -56,7 +56,7 @@ forKey:@BREAKPAD_REPORT_INTERVAL]; } if (![breakpad_config objectForKey:@BREAKPAD_URL]) { @@ -804,7 +797,7 @@ by default. --- a/remoting/protocol/jingle_messages.cc +++ b/remoting/protocol/jingle_messages.cc -@@ -25,7 +25,7 @@ const char kJabberNamespace[] = "jabber: +@@ -25,7 +25,7 @@ const char kJingleNamespace[] = "urn:xmpp:jingle:1"; // Namespace for transport messages when using standard ICE. @@ -815,7 +808,7 @@ by default. --- a/remoting/webapp/base/js/xmpp_login_handler.js +++ b/remoting/webapp/base/js/xmpp_login_handler.js -@@ -295,7 +295,7 @@ remoting.XmppLoginHandler.prototype.star +@@ -295,7 +295,7 @@ 'auth:allow-generated-jid="true" ' + 'auth:client-uses-full-bind-result="true" ' + 'auth:allow-non-google-login="true" ' + @@ -837,7 +830,7 @@ by default. "https://www.googleapis.com/auth/googletalk", --- a/ui/app_list/demo/app_list_demo_views.cc +++ b/ui/app_list/demo/app_list_demo_views.cc -@@ -93,7 +93,7 @@ views::View* DemoAppListViewDelegate::Cr +@@ -93,7 +93,7 @@ const gfx::Size& size) { web_contents_.reset(content::WebContents::Create( content::WebContents::CreateParams(browser_context_))); @@ -848,8 +841,8 @@ by default. std::string()); --- a/ui/views/examples/webview_example.cc +++ b/ui/views/examples/webview_example.cc -@@ -27,7 +27,7 @@ void WebViewExample::CreateExampleView(V - container->SetLayoutManager(new FillLayout); +@@ -27,7 +27,7 @@ + container->SetLayoutManager(std::make_unique()); container->AddChildView(webview_); - webview_->LoadInitialURL(GURL("http://www.google.com/")); @@ -859,7 +852,7 @@ by default. --- a/extensions/browser/updater/safe_manifest_parser.cc +++ b/extensions/browser/updater/safe_manifest_parser.cc -@@ -26,7 +26,7 @@ namespace { +@@ -26,7 +26,7 @@ constexpr char kExpectedGupdateProtocol[] = "2.0"; constexpr char kExpectedGupdateXmlns[] = @@ -868,3 +861,14 @@ by default. void ReportError(ParseUpdateManifestCallback callback, const std::string& error) { +--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc ++++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc +@@ -471,7 +471,7 @@ + "Not implemented, it would be good to do so." + })"); + +- constexpr char kUploadURL[] = "https://clients2.google.com/cr/report"; ++ constexpr char kUploadURL[] = "trk:108:https://clients2.google.com/cr/report"; + std::unique_ptr url_fetcher(net::URLFetcher::Create( + GURL(kUploadURL), net::URLFetcher::POST, this, traffic_annotation)); + url_fetcher->SetUploadData(content_type, *post_data); diff --git a/resources/patches/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch b/resources/patches/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch index 6af52857..19ddc54f 100644 --- a/resources/patches/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch +++ b/resources/patches/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch @@ -9,7 +9,7 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc -@@ -1624,8 +1624,6 @@ int ChromeBrowserMainParts::PreMainMessa +@@ -1657,8 +1657,6 @@ // and preferences have been registered since some of the import code depends // on preferences. if (first_run::IsChromeFirstRun()) { diff --git a/resources/patches/iridium-browser/net-add-trk-scheme-and-help-identify-URLs-being-retr.patch b/resources/patches/iridium-browser/net-add-trk-scheme-and-help-identify-URLs-being-retr.patch index e6d954d0..15c2ae60 100644 --- a/resources/patches/iridium-browser/net-add-trk-scheme-and-help-identify-URLs-being-retr.patch +++ b/resources/patches/iridium-browser/net-add-trk-scheme-and-help-identify-URLs-being-retr.patch @@ -58,7 +58,7 @@ stripped and processing continues with the inner URL. --- a/chrome/BUILD.gn +++ b/chrome/BUILD.gn -@@ -246,6 +246,7 @@ if (!is_android && !is_mac) { +@@ -246,6 +246,7 @@ deps += [ # On Linux, link the dependencies (libraries) that make up actual # Chromium functionality directly into the executable. @@ -66,7 +66,7 @@ stripped and processing continues with the inner URL. ":browser_dependencies", ":child_dependencies", -@@ -492,6 +493,7 @@ if (is_win) { +@@ -495,6 +496,7 @@ "//content/public/app:child", "//content/public/common:service_names", "//headless:headless_shell_child_lib", @@ -87,7 +87,7 @@ stripped and processing continues with the inner URL. #if BUILDFLAG(ENABLE_MUS) #include "services/service_manager/runner/common/client_util.h" -@@ -49,6 +53,19 @@ int ChromeMain(int argc, const char** ar +@@ -49,6 +53,19 @@ } #endif @@ -107,8 +107,8 @@ stripped and processing continues with the inner URL. #if defined(OS_WIN) DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, sandbox::SandboxInterfaceInfo* sandbox_info, -@@ -127,6 +144,9 @@ int ChromeMain(int argc, const char** ar - } +@@ -126,6 +143,9 @@ + #endif // defined(OS_CHROMEOS) #endif // BUILDFLAG(ENABLE_MUS) +#if !defined(CHROME_MULTIPLE_DLL_CHILD) @@ -119,7 +119,7 @@ stripped and processing continues with the inner URL. return rv; --- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc +++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc -@@ -25,6 +25,7 @@ ChromeAutocompleteSchemeClassifier::GetI +@@ -25,6 +25,7 @@ if (base::IsStringASCII(scheme) && (ProfileIOData::IsHandledProtocol(scheme) || base::LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) || @@ -129,7 +129,7 @@ stripped and processing continues with the inner URL. return metrics::OmniboxInputType::URL; --- a/chrome/browser/history/history_utils.cc +++ b/chrome/browser/history/history_utils.cc -@@ -21,6 +21,7 @@ bool CanAddURLToHistory(const GURL& url) +@@ -21,6 +21,7 @@ url.SchemeIs(content::kChromeDevToolsScheme) || url.SchemeIs(content::kChromeUIScheme) || url.SchemeIs(content::kViewSourceScheme) || @@ -139,7 +139,7 @@ stripped and processing continues with the inner URL. url.SchemeIs(dom_distiller::kDomDistillerScheme)) --- a/chrome/browser/ui/browser_navigator.cc +++ b/chrome/browser/ui/browser_navigator.cc -@@ -658,6 +658,14 @@ bool IsURLAllowedInIncognito(const GURL& +@@ -695,6 +695,14 @@ return stripped_url.is_valid() && IsURLAllowedInIncognito(stripped_url, browser_context); } @@ -156,7 +156,7 @@ stripped and processing continues with the inner URL. // chrome://settings. --- a/chrome/browser/ui/singleton_tabs.cc +++ b/chrome/browser/ui/singleton_tabs.cc -@@ -99,7 +99,8 @@ int GetIndexOfSingletonTab(NavigateParam +@@ -101,7 +101,8 @@ // Skip view-source tabs. This is needed because RewriteURLIfNecessary // removes the "view-source:" scheme which leads to incorrect matching. @@ -168,7 +168,7 @@ stripped and processing continues with the inner URL. GURL rewritten_tab_url = tab_url; --- a/components/infobars/core/infobar_delegate.h +++ b/components/infobars/core/infobar_delegate.h -@@ -147,6 +147,7 @@ class InfoBarDelegate { +@@ -148,6 +148,7 @@ FRAMEBUST_BLOCK_INFOBAR_ANDROID = 77, SURVEY_INFOBAR_ANDROID = 78, NEAR_OOM_INFOBAR_ANDROID = 79, @@ -178,7 +178,7 @@ stripped and processing continues with the inner URL. // Describes navigation events, used to decide whether infobars should be --- a/components/omnibox/browser/autocomplete_input.cc +++ b/components/omnibox/browser/autocomplete_input.cc -@@ -474,7 +474,8 @@ void AutocompleteInput::ParseForEmphasiz +@@ -486,7 +486,8 @@ int after_scheme_and_colon = parts.scheme.end() + 1; // For the view-source scheme, we should emphasize the scheme and host of the // URL qualified by the view-source prefix. @@ -188,7 +188,7 @@ stripped and processing continues with the inner URL. (static_cast(text.length()) > after_scheme_and_colon)) { // Obtain the URL prefixed by view-source and parse it. base::string16 real_url(text.substr(after_scheme_and_colon)); -@@ -543,9 +544,10 @@ int AutocompleteInput::NumNonHostCompone +@@ -555,9 +556,10 @@ bool AutocompleteInput::HasHTTPScheme(const base::string16& input) { std::string utf8_input(base::UTF16ToUTF8(input)); url::Component scheme; @@ -232,7 +232,7 @@ stripped and processing continues with the inner URL. // Handles rewriting view-source URLs for what we'll actually load. static bool HandleViewSource(GURL* url, BrowserContext* browser_context) { if (url->SchemeIs(kViewSourceScheme)) { -@@ -100,6 +119,7 @@ BrowserURLHandlerImpl::BrowserURLHandler +@@ -100,6 +119,7 @@ AddHandlerPair(&HandleViewSource, &ReverseViewSource); GetContentClient()->browser()->BrowserURLHandlerCreated(this); @@ -242,7 +242,7 @@ stripped and processing continues with the inner URL. BrowserURLHandlerImpl::~BrowserURLHandlerImpl() { --- a/content/browser/child_process_security_policy_impl.cc +++ b/content/browser/child_process_security_policy_impl.cc -@@ -355,6 +355,7 @@ ChildProcessSecurityPolicyImpl::ChildPro +@@ -350,6 +350,7 @@ RegisterPseudoScheme(kViewSourceScheme); RegisterPseudoScheme(url::kHttpSuboriginScheme); RegisterPseudoScheme(url::kHttpsSuboriginScheme); @@ -433,7 +433,7 @@ stripped and processing continues with the inner URL. +#endif /* IRIDIUM_TRKNOTIFY_H */ --- a/net/url_request/url_request.cc +++ b/net/url_request/url_request.cc -@@ -52,6 +52,8 @@ using std::string; +@@ -53,6 +53,8 @@ namespace net { @@ -442,20 +442,21 @@ stripped and processing continues with the inner URL. namespace { // TODO(battre): Delete this, see http://crbug.com/89321: -@@ -578,6 +580,10 @@ URLRequest::URLRequest(const GURL& url, +@@ -581,6 +583,11 @@ // Sanity check out environment. DCHECK(base::ThreadTaskRunnerHandle::IsSet()); -+ if (trace_urlreq_cb != NULL) -+ (*trace_urlreq_cb)("URLRequest", url); -+ if (url.scheme() == url::kTraceScheme) -+ url_chain_[0] = url.strip_trk(); - context->InsertURLRequest(this); ++ if (trace_urlreq_cb != NULL) ++ (*trace_urlreq_cb)("URLRequest", url); ++ if (url.scheme() == url::kTraceScheme) ++ url_chain_[0] = url.strip_trk(); ++ + context->url_requests()->insert(this); net_log_.BeginEvent( NetLogEventType::REQUEST_ALIVE, --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h -@@ -901,6 +901,8 @@ class NET_EXPORT URLRequest : public bas +@@ -913,6 +913,8 @@ DISALLOW_COPY_AND_ASSIGN(URLRequest); }; @@ -466,7 +467,7 @@ stripped and processing continues with the inner URL. #endif // NET_URL_REQUEST_URL_REQUEST_H_ --- a/tools/metrics/histograms/enums.xml +++ b/tools/metrics/histograms/enums.xml -@@ -21873,6 +21873,7 @@ Called by update_gpu_driver_bug_workarou +@@ -22508,6 +22508,7 @@ @@ -476,7 +477,7 @@ stripped and processing continues with the inner URL. --- a/url/gurl.cc +++ b/url/gurl.cc -@@ -470,6 +470,41 @@ size_t GURL::EstimateMemoryUsage() const +@@ -470,6 +470,41 @@ (parsed_.inner_parsed() ? sizeof(url::Parsed) : 0); } @@ -520,7 +521,7 @@ stripped and processing continues with the inner URL. } --- a/url/gurl.h +++ b/url/gurl.h -@@ -433,6 +433,9 @@ class URL_EXPORT GURL { +@@ -432,6 +432,9 @@ // See base/trace_event/memory_usage_estimator.h for more info. size_t EstimateMemoryUsage() const; @@ -530,7 +531,7 @@ stripped and processing continues with the inner URL. private: // Variant of the string parsing constructor that allows the caller to elect // retain trailing whitespace, if any, on the passed URL spec, but only if -@@ -477,6 +480,8 @@ class URL_EXPORT GURL { +@@ -476,6 +479,8 @@ // Stream operator so GURL can be used in assertion statements. URL_EXPORT std::ostream& operator<<(std::ostream& out, const GURL& url); @@ -541,7 +542,7 @@ stripped and processing continues with the inner URL. URL_EXPORT bool operator!=(const GURL& x, const GURL& y); --- a/url/url_constants.cc +++ b/url/url_constants.cc -@@ -24,6 +24,7 @@ const char kHttpScheme[] = "http"; +@@ -24,6 +24,7 @@ const char kHttpsScheme[] = "https"; const char kJavaScriptScheme[] = "javascript"; const char kMailToScheme[] = "mailto"; @@ -551,7 +552,7 @@ stripped and processing continues with the inner URL. --- a/url/url_constants.h +++ b/url/url_constants.h -@@ -30,6 +30,7 @@ URL_EXPORT extern const char kHttpScheme +@@ -30,6 +30,7 @@ URL_EXPORT extern const char kHttpsScheme[]; URL_EXPORT extern const char kJavaScriptScheme[]; URL_EXPORT extern const char kMailToScheme[]; diff --git a/resources/patches/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch b/resources/patches/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch index 0f80d6c9..397fb894 100644 --- a/resources/patches/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch +++ b/resources/patches/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch @@ -12,7 +12,7 @@ it as hidden as it was before? --- a/net/cert/x509_util.cc +++ b/net/cert/x509_util.cc -@@ -216,7 +216,7 @@ bool GetTLSServerEndPointChannelBinding( +@@ -188,7 +188,7 @@ } // RSA keys created by CreateKeyAndSelfSignedCert will be of this length. diff --git a/resources/patches/iridium-browser/safe_browsing-disable-incident-reporting.patch b/resources/patches/iridium-browser/safe_browsing-disable-incident-reporting.patch index fa4ea2f9..f8e4d05f 100644 --- a/resources/patches/iridium-browser/safe_browsing-disable-incident-reporting.patch +++ b/resources/patches/iridium-browser/safe_browsing-disable-incident-reporting.patch @@ -16,7 +16,7 @@ the URL so we get notified if this happens again in the future). --- a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc +++ b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc -@@ -21,7 +21,7 @@ namespace safe_browsing { +@@ -21,7 +21,7 @@ namespace { const char kSbIncidentReportUrl[] = @@ -27,7 +27,7 @@ the URL so we get notified if this happens again in the future). net::DefineNetworkTrafficAnnotation("safe_browsing_incident", R"( --- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc +++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc -@@ -309,11 +309,14 @@ IncidentReportingService::UploadContext: +@@ -309,11 +309,14 @@ // static bool IncidentReportingService::IsEnabledForProfile(Profile* profile) { @@ -44,7 +44,7 @@ the URL so we get notified if this happens again in the future). IncidentReportingService::IncidentReportingService( --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc -@@ -62,8 +62,7 @@ class SafeBrowsingBlockingPageFactoryImp +@@ -65,8 +65,7 @@ PrefService* prefs = Profile::FromBrowserContext(web_contents->GetBrowserContext()) ->GetPrefs(); @@ -56,7 +56,7 @@ the URL so we get notified if this happens again in the future). --- a/chrome/browser/safe_browsing/safe_browsing_service.cc +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc -@@ -316,7 +316,7 @@ SafeBrowsingDatabaseManager* SafeBrowsin +@@ -315,7 +315,7 @@ } void SafeBrowsingService::RegisterAllDelayedAnalysis() { @@ -67,7 +67,7 @@ the URL so we get notified if this happens again in the future). } --- a/components/security_interstitials/core/safe_browsing_loud_error_ui.cc +++ b/components/security_interstitials/core/safe_browsing_loud_error_ui.cc -@@ -22,6 +22,7 @@ namespace { +@@ -22,6 +22,7 @@ // For malware interstitial pages, we link the problematic URL to Google's // diagnostic page. diff --git a/resources/patches/opensuse/gcc60-fixes.patch b/resources/patches/opensuse/gcc60-fixes.patch index 501521d7..00a609f1 100644 --- a/resources/patches/opensuse/gcc60-fixes.patch +++ b/resources/patches/opensuse/gcc60-fixes.patch @@ -2,7 +2,7 @@ Description: Fixes builds with GCC version 6 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn -@@ -465,6 +465,7 @@ config("compiler") { +@@ -509,6 +509,7 @@ # TODO(thakis): Eventually switch this to c++11 instead, # http://crbug.com/427584 cflags_c += [ "-std=gnu11" ] @@ -12,7 +12,7 @@ Description: Fixes builds with GCC version 6 cflags_cc += [ "-std=gnu++11" ] --- a/chrome/browser/safe_browsing/BUILD.gn +++ b/chrome/browser/safe_browsing/BUILD.gn -@@ -54,6 +54,8 @@ static_library("safe_browsing") { +@@ -56,6 +56,8 @@ "//chrome/app:generated_resources", "//components/chrome_cleaner/public/interfaces", "//components/safe_browsing/common:interfaces", @@ -23,7 +23,7 @@ Description: Fixes builds with GCC version 6 if (enable_extensions) { --- a/chrome/browser/devtools/devtools_file_system_indexer.cc +++ b/chrome/browser/devtools/devtools_file_system_indexer.cc -@@ -39,8 +39,6 @@ using std::vector; +@@ -39,8 +39,6 @@ namespace { @@ -32,7 +32,7 @@ Description: Fixes builds with GCC version 6 base::SequencedTaskRunner* impl_task_runner() { constexpr base::TaskTraits kBlockingTraits = {base::MayBlock(), base::TaskPriority::BACKGROUND}; -@@ -192,7 +190,7 @@ vector Index::Search(const str +@@ -192,7 +190,7 @@ if (trigram != kUndefinedTrigram) trigrams.push_back(trigram); } @@ -41,7 +41,7 @@ Description: Fixes builds with GCC version 6 bool first = true; vector::const_iterator it = trigrams.begin(); for (; it != trigrams.end(); ++it) { -@@ -204,7 +202,7 @@ vector Index::Search(const str +@@ -204,7 +202,7 @@ first = false; continue; } diff --git a/resources/patches/ungoogled-chromium/add-flag-for-search-engine-collection.patch b/resources/patches/ungoogled-chromium/add-flag-for-search-engine-collection.patch index f4b5a652..f2cc9fef 100644 --- a/resources/patches/ungoogled-chromium/add-flag-for-search-engine-collection.patch +++ b/resources/patches/ungoogled-chromium/add-flag-for-search-engine-collection.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1234,6 +1234,10 @@ +@@ -1244,6 +1244,10 @@ "Enable stacking in tab strip", "Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior.", kOsAll, SINGLE_VALUE_TYPE("enable-stacked-tab-strip")}, @@ -15,7 +15,7 @@ "Record histograms and user actions.", --- a/chrome/renderer/chrome_render_frame_observer.cc +++ b/chrome/renderer/chrome_render_frame_observer.cc -@@ -138,9 +138,10 @@ +@@ -139,9 +139,10 @@ if (!render_frame->IsMainFrame()) return; @@ -27,7 +27,7 @@ if (!command_line.HasSwitch(switches::kDisableClientSidePhishingDetection)) SetClientSidePhishingDetection(true); #endif -@@ -326,14 +327,16 @@ +@@ -327,14 +328,16 @@ if (frame->Parent()) return; @@ -54,7 +54,7 @@ --- a/chrome/renderer/chrome_render_frame_observer.h +++ b/chrome/renderer/chrome_render_frame_observer.h -@@ -93,6 +93,7 @@ +@@ -96,6 +96,7 @@ // Have the same lifetime as us. translate::TranslateHelper* translate_helper_; safe_browsing::PhishingClassifierDelegate* phishing_classifier_; @@ -64,7 +64,7 @@ #if !defined(OS_ANDROID) --- a/components/search_engines/template_url_service.cc +++ b/components/search_engines/template_url_service.cc -@@ -194,6 +194,12 @@ +@@ -193,6 +193,12 @@ template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION; } @@ -77,7 +77,7 @@ } // namespace // TemplateURLService::LessWithPrefix ----------------------------------------- -@@ -233,6 +239,7 @@ +@@ -232,6 +238,7 @@ rappor::RapporServiceImpl* rappor_service, const base::Closure& dsp_change_callback) : prefs_(prefs), @@ -85,7 +85,7 @@ search_terms_data_(std::move(search_terms_data)), web_data_service_(web_data_service), client_(std::move(client)), -@@ -261,6 +268,7 @@ +@@ -260,6 +267,7 @@ TemplateURLService::TemplateURLService(const Initializer* initializers, const int count) : prefs_(nullptr), @@ -93,7 +93,7 @@ search_terms_data_(new SearchTermsData), web_data_service_(nullptr), google_url_tracker_(nullptr), -@@ -315,7 +323,7 @@ +@@ -314,7 +322,7 @@ if (existing_url) { // We already have a TemplateURL for this keyword. Only allow it to be // replaced if the TemplateURL can be replaced. @@ -102,7 +102,7 @@ } // We don't have a TemplateURL with keyword. We still may not allow this -@@ -324,8 +332,8 @@ +@@ -323,8 +331,8 @@ // that may interfere with search queries). An easy heuristic for this is // whether the user has a TemplateURL that has been manually modified (e.g., // renamed) connected to the same host. @@ -113,7 +113,7 @@ } bool TemplateURLService::IsPrepopulatedOrCreatedByPolicy( -@@ -1286,6 +1294,8 @@ +@@ -1285,6 +1293,8 @@ void TemplateURLService::Init(const Initializer* initializers, int num_initializers) { @@ -122,7 +122,7 @@ if (client_) client_->SetOwner(this); -@@ -1517,16 +1527,17 @@ +@@ -1516,16 +1526,17 @@ const std::string& host) const { const TemplateURLSet* urls = provider_map_->GetURLsForHost(host); if (!urls) diff --git a/resources/patches/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch b/resources/patches/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch index 3ced8022..93f86e19 100644 --- a/resources/patches/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch +++ b/resources/patches/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch @@ -3,7 +3,7 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -179,6 +179,16 @@ const unsigned kOsDesktop = kOsMac | kOs +@@ -175,6 +175,16 @@ const unsigned kOsAura = kOsWin | kOsLinux | kOsCrOS; #endif // USE_AURA @@ -20,7 +20,7 @@ const FeatureEntry::Choice kTouchEventFeatureDetectionChoices[] = { {flags_ui::kGenericExperimentChoiceAutomatic, "", ""}, {flags_ui::kGenericExperimentChoiceEnabled, -@@ -1216,6 +1226,10 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1226,6 +1236,10 @@ flag_descriptions::kDisableTrkbarDescription, kOsDesktop, SINGLE_VALUE_TYPE("disable-trkbar")}, #endif @@ -41,7 +41,7 @@ #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/extensions/crx_installer.h" #include "chrome/browser/extensions/extension_install_prompt.h" -@@ -116,6 +117,14 @@ scoped_refptr +@@ -116,6 +117,14 @@ return installer; } @@ -56,7 +56,7 @@ bool IsExtensionDownload(const DownloadItem& download_item) { if (download_item.GetTargetDisposition() == DownloadItem::TARGET_DISPOSITION_PROMPT) -@@ -124,7 +133,7 @@ bool IsExtensionDownload(const DownloadI +@@ -124,7 +133,7 @@ if (download_item.GetMimeType() == extensions::Extension::kMimeType || extensions::UserScript::IsURLUserScript(download_item.GetURL(), download_item.GetMimeType())) { @@ -73,9 +73,9 @@ #include "base/bind_helpers.h" +#include "base/command_line.h" #include "base/logging.h" - #include "base/memory/ptr_util.h" #include "base/metrics/histogram_macros.h" -@@ -142,6 +143,13 @@ bool ExtensionManagement::IsInstallation + #include "base/stl_util.h" +@@ -141,6 +142,13 @@ bool ExtensionManagement::IsOffstoreInstallAllowed( const GURL& url, const GURL& referrer_url) const { @@ -91,7 +91,7 @@ return false; --- a/chrome/browser/download/download_crx_util.h +++ b/chrome/browser/download/download_crx_util.h -@@ -43,6 +43,10 @@ scoped_refptr +@@ -43,6 +43,10 @@ Profile* profile, const content::DownloadItem& download_item); @@ -104,7 +104,7 @@ bool IsExtensionDownload(const content::DownloadItem& download_item); --- a/chrome/browser/download/download_target_determiner.cc +++ b/chrome/browser/download/download_target_determiner.cc -@@ -900,10 +900,12 @@ DownloadConfirmationReason DownloadTarge +@@ -900,10 +900,12 @@ return DownloadConfirmationReason::SAVE_AS; #if BUILDFLAG(ENABLE_EXTENSIONS) diff --git a/resources/patches/ungoogled-chromium/add-flag-to-disable-trkbar.patch b/resources/patches/ungoogled-chromium/add-flag-to-disable-trkbar.patch index 970a86d7..e4f603e0 100644 --- a/resources/patches/ungoogled-chromium/add-flag-to-disable-trkbar.patch +++ b/resources/patches/ungoogled-chromium/add-flag-to-disable-trkbar.patch @@ -12,7 +12,7 @@ #if BUILDFLAG(ENABLE_MUS) #include "services/service_manager/runner/common/client_util.h" -@@ -54,20 +49,6 @@ int ChromeMain(int argc, const char** ar +@@ -54,20 +49,6 @@ } #endif @@ -33,8 +33,8 @@ #if defined(OS_WIN) DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, sandbox::SandboxInterfaceInfo* sandbox_info, -@@ -146,9 +127,6 @@ int ChromeMain(int argc, const char** ar - } +@@ -145,9 +126,6 @@ + #endif // defined(OS_CHROMEOS) #endif // BUILDFLAG(ENABLE_MUS) -#if !defined(CHROME_MULTIPLE_DLL_CHILD) @@ -45,7 +45,7 @@ return rv; --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1211,6 +1211,11 @@ const FeatureEntry::FeatureVariation kSp +@@ -1221,6 +1221,11 @@ // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -59,9 +59,9 @@ "Record histograms and user actions.", --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc -@@ -293,8 +293,27 @@ - #include "ui/aura/env.h" +@@ -302,8 +302,27 @@ #endif + #include "services/service_manager/public/cpp/connector.h" +#if !defined(CHROME_MULTIPLE_DLL_CHILD) +# include "iridium/trknotify.h" @@ -87,7 +87,7 @@ namespace { // This function provides some ways to test crash and assertion handling -@@ -981,6 +1000,13 @@ int ChromeBrowserMainParts::PreCreateThr +@@ -1007,6 +1026,13 @@ about_flags::ConvertFlagsToSwitches(&flags_storage, base::CommandLine::ForCurrentProcess(), flags_ui::kAddSentinels); @@ -103,7 +103,7 @@ // The MaterialDesignController needs to look at command line flags, which --- a/chrome/browser/flag_descriptions.cc +++ b/chrome/browser/flag_descriptions.cc -@@ -751,6 +751,12 @@ const char kIconNtpName[] = "Large icons +@@ -781,6 +781,12 @@ const char kIconNtpDescription[] = "Enable the experimental New Tab page using large icons."; @@ -118,7 +118,7 @@ "Overrides the built-in software rendering list and enables " --- a/chrome/browser/flag_descriptions.h +++ b/chrome/browser/flag_descriptions.h -@@ -475,6 +475,9 @@ extern const char kHtmlBasedUsernameDete +@@ -490,6 +490,9 @@ extern const char kIconNtpName[]; extern const char kIconNtpDescription[]; diff --git a/resources/patches/ungoogled-chromium/add-flag-to-enable-potentially-annoying-security-features.patch b/resources/patches/ungoogled-chromium/add-flag-to-enable-potentially-annoying-security-features.patch index 39de9d1b..c464594d 100644 --- a/resources/patches/ungoogled-chromium/add-flag-to-enable-potentially-annoying-security-features.patch +++ b/resources/patches/ungoogled-chromium/add-flag-to-enable-potentially-annoying-security-features.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -2073,11 +2073,11 @@ +@@ -2075,11 +2075,11 @@ {"enable-wifi-credential-sync", flag_descriptions::kWifiCredentialSyncName, flag_descriptions::kWifiCredentialSyncDescription, kOsCrOS, SINGLE_VALUE_TYPE(switches::kEnableWifiCredentialSync)}, @@ -10,6 +10,6 @@ flag_descriptions::kExperimentalSecurityFeaturesDescription, kOsAll, SINGLE_VALUE_TYPE(switches::kEnablePotentiallyAnnoyingSecurityFeatures)}, -#endif // OS_CHROMEOS - {"mark-non-secure-as", flag_descriptions::kMarkHttpAsName, - flag_descriptions::kMarkHttpAsDescription, kOsAll, - MULTI_VALUE_TYPE(kMarkHttpAsChoices)}, + {"enable-http-form-warning", flag_descriptions::kEnableHttpFormWarningName, + flag_descriptions::kEnableHttpFormWarningDescription, kOsAll, + FEATURE_VALUE_TYPE(security_state::kHttpFormWarningFeature)}, diff --git a/resources/patches/ungoogled-chromium/add-flag-to-stack-tabs.patch b/resources/patches/ungoogled-chromium/add-flag-to-stack-tabs.patch index 1ed3eb61..2016423b 100644 --- a/resources/patches/ungoogled-chromium/add-flag-to-stack-tabs.patch +++ b/resources/patches/ungoogled-chromium/add-flag-to-stack-tabs.patch @@ -10,7 +10,7 @@ #include "base/macros.h" #include "base/metrics/user_metrics.h" #include "base/task_scheduler/post_task.h" -@@ -66,13 +67,13 @@ using content::WebContents; +@@ -66,13 +67,13 @@ namespace { bool DetermineTabStripLayoutStacked(PrefService* prefs, bool* adjust_layout) { @@ -29,7 +29,7 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1216,6 +1216,10 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1226,6 +1226,10 @@ flag_descriptions::kDisableTrkbarDescription, kOsDesktop, SINGLE_VALUE_TYPE("disable-trkbar")}, #endif diff --git a/resources/patches/ungoogled-chromium/add-ipv6-probing-option.patch b/resources/patches/ungoogled-chromium/add-ipv6-probing-option.patch index 6c7c289a..adab2757 100644 --- a/resources/patches/ungoogled-chromium/add-ipv6-probing-option.patch +++ b/resources/patches/ungoogled-chromium/add-ipv6-probing-option.patch @@ -11,7 +11,7 @@ #include "base/compiler_specific.h" #include "base/containers/circular_deque.h" #include "base/debug/debugger.h" -@@ -108,11 +109,6 @@ const unsigned kMinimumTTLSeconds = kCac +@@ -108,11 +109,6 @@ // cached. const int kIPv6ProbePeriodMs = 1000; @@ -23,7 +23,7 @@ // We use a separate histogram name for each platform to facilitate the // display of error codes by their symbolic name (since each platform has // different mappings). -@@ -2352,7 +2348,7 @@ bool HostResolverImpl::IsIPv6Reachable(c +@@ -2357,7 +2353,7 @@ if ((base::TimeTicks::Now() - last_ipv6_probe_time_).InMilliseconds() > kIPv6ProbePeriodMs) { last_ipv6_probe_result_ = diff --git a/resources/patches/ungoogled-chromium/clear-http-auth-cache-menu-item.patch b/resources/patches/ungoogled-chromium/clear-http-auth-cache-menu-item.patch index d95027a4..fd0d2329 100644 --- a/resources/patches/ungoogled-chromium/clear-http-auth-cache-menu-item.patch +++ b/resources/patches/ungoogled-chromium/clear-http-auth-cache-menu-item.patch @@ -2,7 +2,7 @@ --- a/chrome/app/chrome_command_ids.h +++ b/chrome/app/chrome_command_ids.h -@@ -149,6 +149,7 @@ +@@ -148,6 +148,7 @@ #define IDC_DEV_TOOLS_INSPECT 40023 #define IDC_UPGRADE_DIALOG 40024 #define IDC_VIEW_INCOMPATIBILITIES 40025 @@ -34,7 +34,7 @@ --- a/chrome/browser/ui/toolbar/app_menu_model.cc +++ b/chrome/browser/ui/toolbar/app_menu_model.cc -@@ -195,6 +195,7 @@ +@@ -215,6 +215,7 @@ AddSeparator(ui::NORMAL_SEPARATOR); AddItemWithStringId(IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA); @@ -42,7 +42,7 @@ AddItemWithStringId(IDC_MANAGE_EXTENSIONS, IDS_SHOW_EXTENSIONS); if (chrome::CanOpenTaskManager()) AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); -@@ -452,6 +453,13 @@ +@@ -475,6 +476,13 @@ } LogMenuAction(MENU_ACTION_CLEAR_BROWSING_DATA); break; @@ -58,11 +58,11 @@ UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.ViewSource", delta); --- a/chrome/browser/ui/toolbar/app_menu_model.h +++ b/chrome/browser/ui/toolbar/app_menu_model.h -@@ -72,6 +72,7 @@ - MENU_ACTION_UPGRADE_DIALOG = 44, - MENU_ACTION_CAST = 45, - MENU_ACTION_BETA_FORUM = 46, -+ MENU_ACTION_CLEAR_HTTP_AUTH_CACHE = 47, +@@ -76,6 +76,7 @@ + MENU_ACTION_OPEN_IN_CHROME = 48, + MENU_ACTION_SITE_SETTINGS = 49, + MENU_ACTION_APP_INFO = 50, ++ MENU_ACTION_CLEAR_HTTP_AUTH_CACHE = 51, LIMIT_MENU_ACTION }; @@ -78,9 +78,9 @@ --- a/chrome/browser/ui/browser_command_controller.cc +++ b/chrome/browser/ui/browser_command_controller.cc -@@ -59,6 +59,9 @@ +@@ -58,6 +58,9 @@ + #include "extensions/browser/extension_system.h" #include "printing/features/features.h" - #include "services/service_manager/public/cpp/connector.h" #include "ui/events/keycodes/keyboard_codes.h" +#include "net/url_request/url_request_context.h" +#include "net/url_request/url_request_context_getter.h" @@ -88,7 +88,7 @@ #if defined(OS_MACOSX) #include "chrome/browser/ui/browser_commands_mac.h" -@@ -640,6 +643,9 @@ +@@ -625,6 +628,9 @@ case IDC_CLEAR_BROWSING_DATA: ShowClearBrowsingDataDialog(browser_); break; @@ -98,20 +98,20 @@ case IDC_IMPORT_SETTINGS: ShowImportDialog(browser_); break; -@@ -891,6 +897,7 @@ +@@ -867,6 +873,7 @@ !profile()->IsOffTheRecord()); command_updater_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA, !guest_session); + command_updater_.UpdateCommandEnabled(IDC_CLEAR_HTTP_AUTH_CACHE, true); #if defined(OS_CHROMEOS) command_updater_.UpdateCommandEnabled(IDC_TAKE_SCREENSHOT, true); - command_updater_.UpdateCommandEnabled(IDC_TOUCH_HUD_PROJECTION_TOGGLE, true); + #else --- a/tools/metrics/histograms/histograms.xml +++ b/tools/metrics/histograms/histograms.xml -@@ -109741,6 +109741,7 @@ - - - +@@ -112583,6 +112583,7 @@ + + + + @@ -140,13 +140,3 @@ // Clears cache entries created within |duration| of base::TimeTicks::Now(). void ClearEntriesAddedWithin(base::TimeDelta duration); ---- a/tools/metrics/histograms/enums.xml -+++ b/tools/metrics/histograms/enums.xml -@@ -44909,6 +44909,7 @@ - - - -+ - - - diff --git a/resources/patches/ungoogled-chromium/disable-download-quarantine.patch b/resources/patches/ungoogled-chromium/disable-download-quarantine.patch index 8b8878eb..a93f08b6 100644 --- a/resources/patches/ungoogled-chromium/disable-download-quarantine.patch +++ b/resources/patches/ungoogled-chromium/disable-download-quarantine.patch @@ -51,7 +51,7 @@ --- a/content/common/BUILD.gn +++ b/content/common/BUILD.gn -@@ -259,11 +259,6 @@ +@@ -249,11 +249,6 @@ "presentation/presentation_struct_traits.cc", "presentation/presentation_struct_traits.h", "process_type.cc", @@ -82,7 +82,7 @@ -#endif // !WIN && !MAC && !LINUX --- a/content/public/common/BUILD.gn +++ b/content/public/common/BUILD.gn -@@ -195,7 +195,6 @@ +@@ -196,7 +196,6 @@ "process_type.h", "push_event_payload.h", "push_subscription_options.h", @@ -92,7 +92,7 @@ "renderer_preferences.cc", --- a/content/browser/download/base_file.cc +++ b/content/browser/download/base_file.cc -@@ -21,7 +21,6 @@ +@@ -22,7 +22,6 @@ #include "content/browser/download/download_stats.h" #include "content/public/browser/content_browser_client.h" #include "content/public/browser/download_item.h" @@ -100,7 +100,7 @@ #include "crypto/secure_hash.h" #include "net/base/net_errors.h" -@@ -437,7 +436,7 @@ +@@ -438,7 +437,7 @@ return reason; } @@ -109,7 +109,7 @@ namespace { -@@ -521,7 +520,7 @@ +@@ -522,7 +521,7 @@ } return DOWNLOAD_INTERRUPT_REASON_FILE_FAILED; } diff --git a/resources/patches/ungoogled-chromium/disable-formatting-in-omnibox.patch b/resources/patches/ungoogled-chromium/disable-formatting-in-omnibox.patch index 5bfc0542..68b49d09 100644 --- a/resources/patches/ungoogled-chromium/disable-formatting-in-omnibox.patch +++ b/resources/patches/ungoogled-chromium/disable-formatting-in-omnibox.patch @@ -2,7 +2,7 @@ --- a/components/url_formatter/url_formatter.cc +++ b/components/url_formatter/url_formatter.cc -@@ -401,13 +401,13 @@ bool IDNToUnicodeOneComponent(const base +@@ -401,13 +401,13 @@ } // namespace @@ -12,14 +12,14 @@ -const FormatUrlType kFormatUrlOmitTrailingSlashOnBareHostname = 1 << 2; -const FormatUrlType kFormatUrlOmitHTTPS = 1 << 3; -const FormatUrlType kFormatUrlExperimentalElideAfterHost = 1 << 4; --const FormatUrlType kFormatUrlExperimentalOmitTrivialSubdomains = 1 << 5; +-const FormatUrlType kFormatUrlOmitTrivialSubdomains = 1 << 5; +const FormatUrlType kFormatUrlOmitNothing = 1; +const FormatUrlType kFormatUrlOmitUsernamePassword = 0 << 0; +const FormatUrlType kFormatUrlOmitHTTP = 0 << 1; +const FormatUrlType kFormatUrlOmitTrailingSlashOnBareHostname = 0 << 2; +const FormatUrlType kFormatUrlOmitHTTPS = 0 << 3; +const FormatUrlType kFormatUrlExperimentalElideAfterHost = 0 << 4; -+const FormatUrlType kFormatUrlExperimentalOmitTrivialSubdomains = 0 << 5; ++const FormatUrlType kFormatUrlOmitTrivialSubdomains = 0 << 5; const FormatUrlType kFormatUrlOmitDefaults = kFormatUrlOmitUsernamePassword | kFormatUrlOmitHTTP | diff --git a/resources/patches/ungoogled-chromium/disable-gaia.patch b/resources/patches/ungoogled-chromium/disable-gaia.patch index f8d7a1f8..316bb3de 100644 --- a/resources/patches/ungoogled-chromium/disable-gaia.patch +++ b/resources/patches/ungoogled-chromium/disable-gaia.patch @@ -3,7 +3,7 @@ --- a/google_apis/gaia/gaia_auth_fetcher.cc +++ b/google_apis/gaia/gaia_auth_fetcher.cc -@@ -219,35 +219,6 @@ void GaiaAuthFetcher::CreateAndStartGaia +@@ -219,35 +219,6 @@ int load_flags, const net::NetworkTrafficAnnotationTag& traffic_annotation) { DCHECK(!fetch_pending_) << "Tried to fetch two things at once!"; @@ -52,7 +52,7 @@ --- a/chrome/browser/extensions/signin/gaia_auth_extension_loader.cc +++ b/chrome/browser/extensions/signin/gaia_auth_extension_loader.cc -@@ -42,18 +42,11 @@ extensions::ComponentLoader* GetComponen +@@ -42,18 +42,11 @@ void LoadGaiaAuthExtension(BrowserContext* context) { DCHECK_CURRENTLY_ON(BrowserThread::UI); @@ -73,7 +73,7 @@ void UnloadGaiaAuthExtension(BrowserContext* context) { --- a/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc +++ b/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc -@@ -67,7 +67,6 @@ bool IsComponentExtensionWhitelisted(int +@@ -67,7 +67,6 @@ #endif case IDR_CRYPTOTOKEN_MANIFEST: case IDR_FEEDBACK_MANIFEST: @@ -83,7 +83,7 @@ #endif --- a/chrome/browser/ui/webui/signin/inline_login_ui.cc +++ b/chrome/browser/ui/webui/signin/inline_login_ui.cc -@@ -43,7 +43,6 @@ content::WebUIDataSource* CreateWebUIDat +@@ -44,7 +44,6 @@ source->AddResourcePath("inline_login.css", IDR_INLINE_LOGIN_CSS); source->AddResourcePath("inline_login.js", IDR_INLINE_LOGIN_JS); @@ -93,7 +93,7 @@ source->AddLocalizedString( --- a/chrome/browser/browser_resources.grd +++ b/chrome/browser/browser_resources.grd -@@ -306,7 +306,6 @@ +@@ -307,7 +307,6 @@ @@ -101,11 +101,11 @@ -@@ -441,7 +440,6 @@ +@@ -445,7 +444,6 @@ - - - + + diff --git a/resources/patches/ungoogled-chromium/disable-google-host-detection.patch b/resources/patches/ungoogled-chromium/disable-google-host-detection.patch index 2d00ad42..d2592afd 100644 --- a/resources/patches/ungoogled-chromium/disable-google-host-detection.patch +++ b/resources/patches/ungoogled-chromium/disable-google-host-detection.patch @@ -2,7 +2,7 @@ --- a/net/base/url_util.cc +++ b/net/base/url_util.cc -@@ -393,28 +393,6 @@ void GetIdentityFromURL(const GURL& url, +@@ -397,28 +397,6 @@ } bool HasGoogleHost(const GURL& url) { @@ -33,7 +33,7 @@ --- a/components/variations/net/variations_http_headers.cc +++ b/components/variations/net/variations_http_headers.cc -@@ -18,28 +18,6 @@ namespace variations { +@@ -19,27 +19,6 @@ namespace { @@ -56,13 +56,12 @@ - "googleweblight.com", -}; - --const char kChromeUMAEnabled[] = "X-Chrome-UMA-Enabled"; -const char kClientData[] = "X-Client-Data"; - // The result of checking if a URL should have variations headers appended. // This enum is used to record UMA histogram values, and should not be // reordered. -@@ -56,28 +34,6 @@ enum URLValidationResult { +@@ -56,28 +35,6 @@ // Checks whether headers should be appended to the |url|, based on the domain // of |url|. |url| is assumed to be valid, and to have an http/https scheme. bool IsGoogleDomain(const GURL& url) { @@ -91,9 +90,9 @@ return false; } -@@ -93,35 +49,10 @@ void AppendVariationHeaders(const GURL& - bool uma_enabled, - bool is_signed_in, +@@ -92,30 +49,10 @@ + InIncognito incognito, + SignedIn signed_in, net::HttpRequestHeaders* headers) { - // Note the criteria for attaching client experiment headers: - // 1. We only transmit to Google owned domains which can evaluate experiments. @@ -102,18 +101,14 @@ - // exactly www.googleadservices.com or - // international TLD domains *.google. or *.youtube.. - // 2. Only transmit for non-Incognito profiles. -- // 3. For the X-Chrome-UMA-Enabled bit, only set it if UMA is in fact enabled -- // for this install of Chrome. -- // 4. For the X-Client-Data header, only include non-empty variation IDs. -- if (incognito || !internal::ShouldAppendVariationHeaders(url)) +- // 3. For the X-Client-Data header, only include non-empty variation IDs. +- if ((incognito == InIncognito::kYes) || +- !internal::ShouldAppendVariationHeaders(url)) - return; - -- if (uma_enabled) -- headers->SetHeaderIfMissing(kChromeUMAEnabled, "1"); -- - const std::string variation_ids_header = - VariationsHttpHeaderProvider::GetInstance()->GetClientDataHeader( -- is_signed_in); +- signed_in == SignedIn::kYes); - if (!variation_ids_header.empty()) { - // Note that prior to M33 this header was named X-Chrome-Variations. - headers->SetHeaderIfMissing(kClientData, variation_ids_header); @@ -122,14 +117,13 @@ std::set GetVariationHeaderNames() { std::set headers; -- headers.insert(kChromeUMAEnabled); - headers.insert(kClientData); return headers; } --- a/chrome/browser/page_load_metrics/page_load_metrics_util.cc +++ b/chrome/browser/page_load_metrics/page_load_metrics_util.cc -@@ -164,9 +164,7 @@ bool DidObserveLoadingBehaviorInAnyFrame +@@ -164,9 +164,7 @@ } bool IsGoogleSearchHostname(const GURL& url) { @@ -142,7 +136,7 @@ bool IsGoogleSearchResultUrl(const GURL& url) { --- a/components/search_engines/template_url.cc +++ b/components/search_engines/template_url.cc -@@ -455,11 +455,6 @@ base::string16 TemplateURLRef::SearchTer +@@ -455,11 +455,6 @@ bool TemplateURLRef::HasGoogleBaseURLs( const SearchTermsData& search_terms_data) const { ParseIfNecessary(search_terms_data); @@ -156,7 +150,7 @@ --- a/components/google/core/browser/google_util.cc +++ b/components/google/core/browser/google_util.cc -@@ -41,118 +41,16 @@ namespace { +@@ -41,118 +41,16 @@ bool gUseMockLinkDoctorBaseURLForTesting = false; @@ -276,7 +270,7 @@ } void SetMockLinkDoctorBaseURLForTesting() { -@@ -166,119 +64,50 @@ std::string GetGoogleLocale(const std::s +@@ -166,119 +64,50 @@ GURL AppendGoogleLocaleParam(const GURL& url, const std::string& application_locale) { diff --git a/resources/patches/ungoogled-chromium/disable-profile-avatar-downloading.patch b/resources/patches/ungoogled-chromium/disable-profile-avatar-downloading.patch index aec16357..b4d33788 100644 --- a/resources/patches/ungoogled-chromium/disable-profile-avatar-downloading.patch +++ b/resources/patches/ungoogled-chromium/disable-profile-avatar-downloading.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/profiles/profile_avatar_downloader.cc +++ b/chrome/browser/profiles/profile_avatar_downloader.cc -@@ -26,8 +26,7 @@ ProfileAvatarDownloader::ProfileAvatarDo +@@ -27,8 +27,7 @@ : icon_index_(icon_index), callback_(callback) { DCHECK(!callback_.is_null()); diff --git a/resources/patches/ungoogled-chromium/disable-signin.patch b/resources/patches/ungoogled-chromium/disable-signin.patch index d501024c..6682a45f 100644 --- a/resources/patches/ungoogled-chromium/disable-signin.patch +++ b/resources/patches/ungoogled-chromium/disable-signin.patch @@ -2,7 +2,7 @@ --- a/components/signin/core/browser/signin_manager_base.cc +++ b/components/signin/core/browser/signin_manager_base.cc -@@ -162,7 +162,7 @@ void SigninManagerBase::Initialize(PrefS +@@ -158,7 +158,7 @@ bool SigninManagerBase::IsInitialized() const { return initialized_; } bool SigninManagerBase::IsSigninAllowed() const { @@ -13,7 +13,7 @@ AccountInfo SigninManagerBase::GetAuthenticatedAccountInfo() const { --- a/chrome/browser/ui/chrome_pages.cc +++ b/chrome/browser/ui/chrome_pages.cc -@@ -74,12 +74,6 @@ void OpenBookmarkManagerForNode(Browser* +@@ -76,12 +76,6 @@ ShowSingletonTabOverwritingNTP(browser, params); } @@ -26,7 +26,7 @@ // Shows either the help app or the appropriate help page for |source|. If // |browser| is NULL and the help page is used (vs the app), the help page is // shown in the last active browser. If there is no such browser, a new browser -@@ -384,6 +378,7 @@ void ShowSearchEngineSettings(Browser* b +@@ -386,6 +380,7 @@ #if !defined(OS_ANDROID) void ShowBrowserSignin(Browser* browser, signin_metrics::AccessPoint access_point) { @@ -34,7 +34,7 @@ Profile* original_profile = browser->profile()->GetOriginalProfile(); SigninManagerBase* manager = SigninManagerFactory::GetForProfile(original_profile); -@@ -424,6 +419,7 @@ void ShowBrowserSignin(Browser* browser, +@@ -426,6 +421,7 @@ false)); DCHECK_GT(browser->tab_strip_model()->count(), 0); } diff --git a/resources/patches/ungoogled-chromium/disable-untraceable-urls.patch b/resources/patches/ungoogled-chromium/disable-untraceable-urls.patch index ee2cdd79..0add75dd 100644 --- a/resources/patches/ungoogled-chromium/disable-untraceable-urls.patch +++ b/resources/patches/ungoogled-chromium/disable-untraceable-urls.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/plugins/plugins_resource_service.cc +++ b/chrome/browser/plugins/plugins_resource_service.cc -@@ -51,9 +51,6 @@ const int kStartResourceFetchDelayMs = 6 +@@ -51,9 +51,6 @@ // Delay between calls to update the cache 1 day and 2 minutes in testing mode. const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000; @@ -12,7 +12,7 @@ GURL GetPluginsServerURL() { std::string filename; #if defined(OS_WIN) -@@ -68,7 +65,7 @@ GURL GetPluginsServerURL() { +@@ -68,7 +65,7 @@ #error Unknown platform #endif @@ -23,7 +23,7 @@ } // namespace --- a/chrome/browser/safe_browsing/client_side_model_loader.cc +++ b/chrome/browser/safe_browsing/client_side_model_loader.cc -@@ -34,8 +34,6 @@ namespace safe_browsing { +@@ -34,8 +34,6 @@ // Model Loader strings const size_t ModelLoader::kMaxModelSizeBytes = 150 * 1024; const int ModelLoader::kClientModelFetchIntervalMs = 3600 * 1000; @@ -32,7 +32,7 @@ const char ModelLoader::kClientModelNamePattern[] = "client_model_v5%s_variation_%d.pb"; const char ModelLoader::kClientModelFinchExperiment[] = -@@ -88,7 +86,7 @@ ModelLoader::ModelLoader(base::Closure u +@@ -88,7 +86,7 @@ net::URLRequestContextGetter* request_context_getter, bool is_extended_reporting) : name_(FillInModelName(is_extended_reporting, GetModelNumber())), @@ -41,7 +41,7 @@ update_renderers_callback_(update_renderers_callback), request_context_getter_(request_context_getter), weak_factory_(this) { -@@ -99,7 +97,7 @@ ModelLoader::ModelLoader(base::Closure u +@@ -99,7 +97,7 @@ ModelLoader::ModelLoader(base::Closure update_renderers_callback, const std::string& model_name) : name_(model_name), @@ -52,7 +52,7 @@ weak_factory_(this) { --- a/chrome/browser/safe_browsing/client_side_model_loader.h +++ b/chrome/browser/safe_browsing/client_side_model_loader.h -@@ -43,7 +43,6 @@ class ModelLoader : public net::URLFetch +@@ -43,7 +43,6 @@ static const int kClientModelFetchIntervalMs; static const char kClientModelFinchExperiment[]; static const char kClientModelFinchParam[]; @@ -62,17 +62,17 @@ // Constructs a model loader to fetch a model using |request_context_getter|. --- a/rlz/lib/lib_values.cc +++ b/rlz/lib/lib_values.cc -@@ -41,7 +41,6 @@ const char kSetDccResponseVariable[] = " +@@ -41,7 +41,6 @@ // const char kFinancialPingPath[] = "/tools/pso/ping"; -const char kFinancialServer[] = "clients1.google.com"; - const int kFinancialPort = 80; + const int kFinancialPort = 443; // Ping times in 100-nanosecond intervals. --- a/rlz/lib/lib_values.h +++ b/rlz/lib/lib_values.h -@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl +@@ -72,7 +72,6 @@ // extern const char kFinancialPingPath[]; @@ -82,7 +82,7 @@ --- a/rlz/lib/financial_ping.cc +++ b/rlz/lib/financial_ping.cc -@@ -366,7 +366,7 @@ bool FinancialPing::PingServer(const cha +@@ -366,7 +366,7 @@ // Open network connection. InternetHandle connection_handle = InternetConnectA(inet_handle, @@ -91,12 +91,12 @@ INTERNET_FLAG_NO_CACHE_WRITE, 0); if (!connection_handle) return false; -@@ -408,7 +408,7 @@ bool FinancialPing::PingServer(const cha +@@ -410,7 +410,7 @@ return true; #else - std::string url = base::StringPrintf("http://%s:%d%s", -- kFinancialServer, kFinancialPort, -+ "about:blank", kFinancialPort, - request); + std::string url = +- base::StringPrintf("https://%s%s", kFinancialServer, request); ++ base::StringPrintf("https://%s%s", "about:blank", request); // Use a waitable event to cause this function to block, to match the + // wininet implementation. diff --git a/resources/patches/ungoogled-chromium/disable-webrtc-log-uploader.patch b/resources/patches/ungoogled-chromium/disable-webrtc-log-uploader.patch index 2a55b379..703ef6d9 100644 --- a/resources/patches/ungoogled-chromium/disable-webrtc-log-uploader.patch +++ b/resources/patches/ungoogled-chromium/disable-webrtc-log-uploader.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc +++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc -@@ -117,30 +117,11 @@ void WebRtcLogUploader::LoggingStoppedDo +@@ -115,30 +115,11 @@ DCHECK(meta_data.get()); DCHECK(!upload_done_data.log_path.empty()); @@ -34,7 +34,7 @@ } void WebRtcLogUploader::PrepareMultipartPostData( -@@ -151,29 +132,7 @@ void WebRtcLogUploader::PrepareMultipart +@@ -149,29 +130,7 @@ DCHECK(!compressed_log.empty()); DCHECK(meta_data.get()); @@ -52,7 +52,7 @@ - // implemented according to the test plan. http://crbug.com/257329. - if (post_data_) { - *post_data_ = *post_data; -- NotifyUploadDone(kHttpResponseOk, "", upload_done_data); +- NotifyUploadDone(net::HTTP_OK, "", upload_done_data); - return; - } - @@ -65,7 +65,7 @@ } void WebRtcLogUploader::UploadStoredLog( -@@ -239,43 +198,6 @@ void WebRtcLogUploader::LoggingStoppedDo +@@ -237,43 +196,6 @@ WebRtcLogUtil::DeleteOldWebRtcLogFiles(log_paths.log_path); diff --git a/resources/patches/ungoogled-chromium/disable-webstore-urls.patch b/resources/patches/ungoogled-chromium/disable-webstore-urls.patch index 6b2ede54..a0a40793 100644 --- a/resources/patches/ungoogled-chromium/disable-webstore-urls.patch +++ b/resources/patches/ungoogled-chromium/disable-webstore-urls.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/extensions/chrome_content_verifier_delegate.cc +++ b/chrome/browser/extensions/chrome_content_verifier_delegate.cc -@@ -135,13 +135,7 @@ ContentVerifierDelegate::Mode ChromeCont +@@ -134,13 +134,7 @@ // between which extensions are considered in-store. // See https://crbug.com/766806 for details. if (!InstallVerifier::IsFromStore(extension)) { @@ -19,7 +19,7 @@ return default_mode_; --- a/extensions/common/extension_urls.cc +++ b/extensions/common/extension_urls.cc -@@ -30,9 +30,9 @@ bool IsSourceFromAnExtension(const base: +@@ -30,9 +30,9 @@ namespace extension_urls { @@ -33,7 +33,7 @@ extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get(); --- a/extensions/browser/updater/extension_downloader.cc +++ b/extensions/browser/updater/extension_downloader.cc -@@ -88,27 +88,18 @@ const char kNotFromWebstoreInstallSource +@@ -89,27 +89,18 @@ const char kDefaultInstallSource[] = ""; const char kReinstallInstallSource[] = "reinstall"; @@ -63,7 +63,7 @@ bool ShouldRetryRequest(const net::URLRequestStatus& status, int response_code) { -@@ -288,17 +279,6 @@ void ExtensionDownloader::StartBlacklist +@@ -289,17 +280,6 @@ const std::string& version, const ManifestFetchData::PingData& ping_data, int request_id) { @@ -81,7 +81,7 @@ } void ExtensionDownloader::SetWebstoreIdentityProvider( -@@ -328,23 +308,16 @@ bool ExtensionDownloader::AddExtensionDa +@@ -329,23 +309,16 @@ return false; } @@ -107,7 +107,7 @@ } else { url_stats_.other_url_count++; } -@@ -656,23 +629,6 @@ void ExtensionDownloader::HandleManifest +@@ -657,23 +630,6 @@ FetchUpdatedExtension(std::move(fetch)); } @@ -131,7 +131,7 @@ NotifyExtensionsDownloadFailed( not_updated, fetch_data->request_ids(), ExtensionDownloaderDelegate::NO_UPDATE_AVAILABLE); -@@ -982,11 +938,7 @@ bool ExtensionDownloader::IterateFetchCr +@@ -983,11 +939,7 @@ // fetch. switch (fetch->credentials) { case ExtensionFetch::CREDENTIALS_NONE: @@ -146,7 +146,7 @@ fetch->oauth2_attempt_count++; --- a/chrome/browser/extensions/extension_migrator.cc +++ b/chrome/browser/extensions/extension_migrator.cc -@@ -18,7 +18,9 @@ namespace extensions { +@@ -18,7 +18,9 @@ ExtensionMigrator::ExtensionMigrator(Profile* profile, const std::string& old_id, const std::string& new_id) @@ -157,7 +157,7 @@ ExtensionMigrator::~ExtensionMigrator() { } -@@ -31,7 +33,7 @@ void ExtensionMigrator::StartLoading() { +@@ -31,7 +33,7 @@ if (should_have_extension) { std::unique_ptr entry(new base::DictionaryValue); entry->SetKey(ExternalProviderImpl::kExternalUpdateUrl, @@ -176,7 +176,7 @@ class Profile; -@@ -37,6 +38,7 @@ class ExtensionMigrator : public Externa +@@ -37,6 +38,7 @@ Profile* profile_; const std::string old_id_; const std::string new_id_; diff --git a/resources/patches/ungoogled-chromium/enable-page-saving-on-more-pages.patch b/resources/patches/ungoogled-chromium/enable-page-saving-on-more-pages.patch index f28e0da0..b0763d31 100644 --- a/resources/patches/ungoogled-chromium/enable-page-saving-on-more-pages.patch +++ b/resources/patches/ungoogled-chromium/enable-page-saving-on-more-pages.patch @@ -2,7 +2,7 @@ --- a/content/public/common/url_utils.cc +++ b/content/public/common/url_utils.cc -@@ -18,11 +18,7 @@ bool HasWebUIScheme(const GURL& url) { +@@ -19,11 +19,7 @@ } bool IsSavableURL(const GURL& url) { @@ -17,7 +17,7 @@ // PlzNavigate --- a/chrome/browser/ui/browser_commands.cc +++ b/chrome/browser/ui/browser_commands.cc -@@ -347,12 +347,6 @@ int GetContentRestrictions(const Browser +@@ -347,12 +347,6 @@ CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(current_tab); content_restrictions = core_tab_helper->content_restrictions(); @@ -30,7 +30,7 @@ if (current_tab->ShowingInterstitialPage()) content_restrictions |= CONTENT_RESTRICTION_PRINT; } -@@ -891,8 +885,7 @@ bool CanSavePage(const Browser* browser) +@@ -895,8 +889,7 @@ prefs::kAllowFileSelectionDialogs)) { return false; } @@ -42,7 +42,7 @@ void ShowFindBar(Browser* browser) { --- a/components/offline_pages/core/offline_page_model.cc +++ b/components/offline_pages/core/offline_page_model.cc -@@ -33,7 +33,7 @@ OfflinePageModel::DeletedPageInfo::Delet +@@ -33,7 +33,7 @@ // static bool OfflinePageModel::CanSaveURL(const GURL& url) { @@ -53,7 +53,7 @@ OfflinePageModel::OfflinePageModel() = default; --- a/content/common/url_schemes.cc +++ b/content/common/url_schemes.cc -@@ -25,6 +25,10 @@ std::vector* secure_origins = null +@@ -26,6 +26,10 @@ std::vector* service_worker_schemes = nullptr; const char* const kDefaultSavableSchemes[] = { @@ -64,7 +64,7 @@ url::kHttpScheme, url::kHttpsScheme, url::kFileScheme, -@@ -32,7 +36,13 @@ const char* const kDefaultSavableSchemes +@@ -33,7 +37,13 @@ url::kFtpScheme, kChromeDevToolsScheme, kChromeUIScheme, diff --git a/resources/patches/ungoogled-chromium/fix-building-without-one-click-signin.patch b/resources/patches/ungoogled-chromium/fix-building-without-one-click-signin.patch index 7594ed40..ea3223e2 100644 --- a/resources/patches/ungoogled-chromium/fix-building-without-one-click-signin.patch +++ b/resources/patches/ungoogled-chromium/fix-building-without-one-click-signin.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc +++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc -@@ -420,6 +420,7 @@ void OneClickSigninSyncStarter::CancelSi +@@ -392,6 +392,7 @@ } void OneClickSigninSyncStarter::ConfirmAndSignin() { @@ -10,7 +10,7 @@ SigninManager* signin = SigninManagerFactory::GetForProfile(profile_); if (confirmation_required_ == CONFIRM_UNTRUSTED_SIGNIN) { browser_ = EnsureBrowser(browser_, profile_); -@@ -434,6 +435,7 @@ void OneClickSigninSyncStarter::ConfirmA +@@ -406,6 +407,7 @@ // No confirmation required - just sign in the user. signin->CompletePendingSignin(); } @@ -20,15 +20,15 @@ void OneClickSigninSyncStarter::UntrustedSigninConfirmed( --- a/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc +++ b/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc -@@ -17,13 +17,7 @@ OneClickSigninLinksDelegateImpl::OneClic +@@ -17,13 +17,7 @@ OneClickSigninLinksDelegateImpl::~OneClickSigninLinksDelegateImpl() {} void OneClickSigninLinksDelegateImpl::OnLearnMoreLinkClicked(bool is_dialog) { -- chrome::NavigateParams params(browser_, GURL(chrome::kChromeSyncLearnMoreURL), -- ui::PAGE_TRANSITION_LINK); +- NavigateParams params(browser_, GURL(chrome::kChromeSyncLearnMoreURL), +- ui::PAGE_TRANSITION_LINK); - params.disposition = is_dialog ? WindowOpenDisposition::NEW_WINDOW - : WindowOpenDisposition::NEW_FOREGROUND_TAB; -- chrome::Navigate(¶ms); +- Navigate(¶ms); } void OneClickSigninLinksDelegateImpl::OnAdvancedLinkClicked() { @@ -36,7 +36,7 @@ } --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -2253,10 +2253,6 @@ split_static_library("ui") { +@@ -2275,10 +2275,6 @@ "cocoa/omnibox/omnibox_view_mac.mm", "cocoa/omnibox_decoration_bubble_controller.h", "cocoa/omnibox_decoration_bubble_controller.mm", @@ -47,7 +47,7 @@ "cocoa/page_info/page_info_bubble_controller.h", "cocoa/page_info/page_info_bubble_controller.mm", "cocoa/page_info/page_info_utils_cocoa.h", -@@ -3141,8 +3137,6 @@ split_static_library("ui") { +@@ -3168,8 +3164,6 @@ "views/profiles/signin_view_controller_delegate_views.cc", "views/profiles/signin_view_controller_delegate_views.h", "views/screen_capture_notification_ui_views.cc", diff --git a/resources/patches/ungoogled-chromium/popups-to-tabs.patch b/resources/patches/ungoogled-chromium/popups-to-tabs.patch index d8db33fb..003069c5 100644 --- a/resources/patches/ungoogled-chromium/popups-to-tabs.patch +++ b/resources/patches/ungoogled-chromium/popups-to-tabs.patch @@ -2,7 +2,7 @@ --- a/content/renderer/render_view_impl.cc +++ b/content/renderer/render_view_impl.cc -@@ -308,7 +308,7 @@ WindowOpenDisposition RenderViewImpl::Na +@@ -306,7 +306,7 @@ case blink::kWebNavigationPolicyNewWindow: return WindowOpenDisposition::NEW_WINDOW; case blink::kWebNavigationPolicyNewPopup: @@ -13,7 +13,7 @@ return WindowOpenDisposition::IGNORE_ACTION; --- a/chrome/browser/ui/views/frame/browser_view.cc +++ b/chrome/browser/ui/views/frame/browser_view.cc -@@ -1442,7 +1442,7 @@ void BrowserView::CutCopyPaste(int comma +@@ -1399,7 +1399,7 @@ WindowOpenDisposition BrowserView::GetDispositionForPopupBounds( const gfx::Rect& bounds) { diff --git a/resources/patches/ungoogled-chromium/prevent-trace-url-requests.patch b/resources/patches/ungoogled-chromium/prevent-trace-url-requests.patch index e620d0a3..83255975 100644 --- a/resources/patches/ungoogled-chromium/prevent-trace-url-requests.patch +++ b/resources/patches/ungoogled-chromium/prevent-trace-url-requests.patch @@ -2,7 +2,7 @@ --- a/url/gurl.cc +++ b/url/gurl.cc -@@ -472,15 +472,7 @@ size_t GURL::EstimateMemoryUsage() const +@@ -472,15 +472,7 @@ std::string &gurl_strip_trk(std::string &s) { @@ -21,7 +21,7 @@ bool gurl_is_trq(const std::string &s) --- a/chrome/browser/ui/browser_navigator.cc +++ b/chrome/browser/ui/browser_navigator.cc -@@ -660,10 +660,7 @@ bool IsURLAllowedInIncognito(const GURL& +@@ -697,10 +697,7 @@ } if (url.SchemeIs(url::kTraceScheme)) { @@ -35,7 +35,7 @@ // Most URLs are allowed in incognito; the following are exceptions. --- a/components/url_formatter/url_fixer.cc +++ b/components/url_formatter/url_fixer.cc -@@ -539,6 +539,10 @@ GURL FixupURL(const std::string& text, c +@@ -539,6 +539,10 @@ } } diff --git a/resources/patches/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch b/resources/patches/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch index 9024a322..cadde7ed 100644 --- a/resources/patches/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch +++ b/resources/patches/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/startup/bad_flags_prompt.cc +++ b/chrome/browser/ui/startup/bad_flags_prompt.cc -@@ -89,7 +89,7 @@ void ShowBadFlagsPrompt(Browser* browser +@@ -69,7 +69,7 @@ // These flags disable sandbox-related security. service_manager::switches::kDisableGpuSandbox, service_manager::switches::kDisableSeccompFilterSandbox, diff --git a/resources/patches/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch b/resources/patches/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch index 5d8de6df..66cc6b65 100644 --- a/resources/patches/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch +++ b/resources/patches/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch @@ -1,6 +1,6 @@ --- a/components/search_engines/prepopulated_engines.json +++ b/components/search_engines/prepopulated_engines.json -@@ -122,22 +122,11 @@ +@@ -126,22 +126,11 @@ }, "google": { diff --git a/resources/patches/ungoogled-chromium/use-local-devtools-files.patch b/resources/patches/ungoogled-chromium/use-local-devtools-files.patch index 6d01262e..6ab641af 100644 --- a/resources/patches/ungoogled-chromium/use-local-devtools-files.patch +++ b/resources/patches/ungoogled-chromium/use-local-devtools-files.patch @@ -5,7 +5,7 @@ --- a/third_party/WebKit/Source/devtools/BUILD.gn +++ b/third_party/WebKit/Source/devtools/BUILD.gn -@@ -981,12 +981,6 @@ generated_non_autostart_non_remote_modul +@@ -979,12 +979,6 @@ "$resources_out_dir/timeline_model/timeline_model_module.js", "$resources_out_dir/timeline/timeline_module.js", "$resources_out_dir/workspace_diff/workspace_diff_module.js", @@ -18,7 +18,7 @@ "$resources_out_dir/accessibility/accessibility_module.js", "$resources_out_dir/audits2_worker/audits2_worker_module.js", "$resources_out_dir/cm_modes/cm_modes_module.js", -@@ -995,6 +989,12 @@ generated_remote_modules = [ +@@ -993,6 +987,12 @@ "$resources_out_dir/screencast/screencast_module.js", ] @@ -33,7 +33,7 @@ "toolbox", --- a/third_party/WebKit/Source/devtools/front_end/inspector.json +++ b/third_party/WebKit/Source/devtools/front_end/inspector.json -@@ -22,10 +22,10 @@ +@@ -22,7 +22,7 @@ { "name": "timeline", "condition": "!v8only" }, { "name": "timeline_model", "condition": "!v8only" }, { "name": "product_registry", "type": "autostart" }, @@ -41,12 +41,8 @@ + { "name": "product_registry_impl", "condition": "!v8only" }, { "name": "profiler" }, { "name": "resources", "condition": "!v8only" }, -- { "name": "audits", "condition": "!v8only", "type": "remote" }, -+ { "name": "audits", "condition": "!v8only" }, { "name": "audits2", "condition": "!v8only" }, - { "name": "devices" }, - { "name": "security", "condition": "!v8only" }, -@@ -33,18 +33,18 @@ +@@ -32,18 +32,18 @@ { "name": "source_frame" }, { "name": "text_editor" }, { "name": "cm" },