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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2358683002: Android: enable/disable WebRTC HW H264 with a flag. (Closed)
Patch Set: rebase to Oct17 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/public/browser/gpu_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_DEFAULT, "", ""}, 593 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_DEFAULT, "", ""},
594 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONE, switches::kSecurityChipAnimation, 594 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONE, switches::kSecurityChipAnimation,
595 switches::kSecurityChipAnimationNone}, 595 switches::kSecurityChipAnimationNone},
596 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONSECURE_ONLY, 596 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONSECURE_ONLY,
597 switches::kSecurityChipAnimation, 597 switches::kSecurityChipAnimation,
598 switches::kSecurityChipAnimationNonSecureOnly}, 598 switches::kSecurityChipAnimationNonSecureOnly},
599 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_ALL, switches::kSecurityChipAnimation, 599 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_ALL, switches::kSecurityChipAnimation,
600 switches::kSecurityChipAnimationAll}, 600 switches::kSecurityChipAnimationAll},
601 }; 601 };
602 602
603 #if defined(ENABLE_WEBRTC)
604 const FeatureEntry::Choice kDisableWebRtcHWEncodingChoices[] = {
605 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
606 {IDS_FLAGS_WEBRTC_HW_ENCODING_ALL, switches::kDisableWebRtcHWEncoding, ""},
607 {IDS_FLAGS_WEBRTC_HW_ENCODING_VPX, switches::kDisableWebRtcHWEncoding,
608 switches::kDisableWebRtcHWEncodingVPx},
609 {IDS_FLAGS_WEBRTC_HW_ENCODING_H264, switches::kDisableWebRtcHWEncoding,
610 switches::kDisableWebRtcHWEncodingH264},
611 {IDS_FLAGS_WEBRTC_HW_ENCODING_NONE, switches::kDisableWebRtcHWEncoding,
612 switches::kDisableWebRtcHWEncodingNone},
613 };
614 #endif
615
603 // RECORDING USER METRICS FOR FLAGS: 616 // RECORDING USER METRICS FOR FLAGS:
604 // ----------------------------------------------------------------------------- 617 // -----------------------------------------------------------------------------
605 // The first line of the entry is the internal name. 618 // The first line of the entry is the internal name.
606 // 619 //
607 // To add a new entry, add to the end of kFeatureEntries. There are two 620 // To add a new entry, add to the end of kFeatureEntries. There are two
608 // distinct types of entries: 621 // distinct types of entries:
609 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE 622 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE
610 // macro for this type supplying the command line to the macro. 623 // macro for this type supplying the command line to the macro.
611 // . MULTI_VALUE: a list of choices, the first of which should correspond to a 624 // . MULTI_VALUE: a list of choices, the first of which should correspond to a
612 // deactivated state for this lab (i.e. no command line option). To specify 625 // deactivated state for this lab (i.e. no command line option). To specify
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 {"gl-composited-texture-quad-borders", 662 {"gl-composited-texture-quad-borders",
650 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS, 663 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS,
651 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS_DESCRIPTION, kOsAll, 664 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS_DESCRIPTION, kOsAll,
652 SINGLE_VALUE_TYPE(cc::switches::kGlCompositedTextureQuadBorder)}, 665 SINGLE_VALUE_TYPE(cc::switches::kGlCompositedTextureQuadBorder)},
653 #if defined(ENABLE_WEBRTC) 666 #if defined(ENABLE_WEBRTC)
654 {"disable-webrtc-hw-decoding", IDS_FLAGS_WEBRTC_HW_DECODING_NAME, 667 {"disable-webrtc-hw-decoding", IDS_FLAGS_WEBRTC_HW_DECODING_NAME,
655 IDS_FLAGS_WEBRTC_HW_DECODING_DESCRIPTION, kOsAndroid | kOsCrOS, 668 IDS_FLAGS_WEBRTC_HW_DECODING_DESCRIPTION, kOsAndroid | kOsCrOS,
656 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)}, 669 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)},
657 {"disable-webrtc-hw-encoding", IDS_FLAGS_WEBRTC_HW_ENCODING_NAME, 670 {"disable-webrtc-hw-encoding", IDS_FLAGS_WEBRTC_HW_ENCODING_NAME,
658 IDS_FLAGS_WEBRTC_HW_ENCODING_DESCRIPTION, kOsAndroid | kOsCrOS, 671 IDS_FLAGS_WEBRTC_HW_ENCODING_DESCRIPTION, kOsAndroid | kOsCrOS,
659 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWEncoding)}, 672 MULTI_VALUE_TYPE(kDisableWebRtcHWEncodingChoices)},
660 {"enable-webrtc-stun-origin", IDS_FLAGS_WEBRTC_STUN_ORIGIN_NAME, 673 {"enable-webrtc-stun-origin", IDS_FLAGS_WEBRTC_STUN_ORIGIN_NAME,
661 IDS_FLAGS_WEBRTC_STUN_ORIGIN_DESCRIPTION, kOsAll, 674 IDS_FLAGS_WEBRTC_STUN_ORIGIN_DESCRIPTION, kOsAll,
662 SINGLE_VALUE_TYPE(switches::kEnableWebRtcStunOrigin)}, 675 SINGLE_VALUE_TYPE(switches::kEnableWebRtcStunOrigin)},
663 #endif // ENABLE_WEBRTC 676 #endif // ENABLE_WEBRTC
664 #if defined(OS_ANDROID) 677 #if defined(OS_ANDROID)
665 {"enable-osk-overscroll", IDS_FLAGS_ENABLE_OSK_OVERSCROLL_NAME, 678 {"enable-osk-overscroll", IDS_FLAGS_ENABLE_OSK_OVERSCROLL_NAME,
666 IDS_FLAGS_ENABLE_OSK_OVERSCROLL_DESCRIPTION, kOsAndroid, 679 IDS_FLAGS_ENABLE_OSK_OVERSCROLL_DESCRIPTION, kOsAndroid,
667 SINGLE_VALUE_TYPE(switches::kEnableOSKOverscroll)}, 680 SINGLE_VALUE_TYPE(switches::kEnableOSKOverscroll)},
668 {"enable-usermedia-screen-capturing", IDS_FLAGS_MEDIA_SCREEN_CAPTURE_NAME, 681 {"enable-usermedia-screen-capturing", IDS_FLAGS_MEDIA_SCREEN_CAPTURE_NAME,
669 IDS_FLAGS_MEDIA_SCREEN_CAPTURE_DESCRIPTION, kOsAndroid, 682 IDS_FLAGS_MEDIA_SCREEN_CAPTURE_DESCRIPTION, kOsAndroid,
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2236 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2249 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2237 2250
2238 const FeatureEntry* GetFeatureEntries(size_t* count) { 2251 const FeatureEntry* GetFeatureEntries(size_t* count) {
2239 *count = arraysize(kFeatureEntries); 2252 *count = arraysize(kFeatureEntries);
2240 return kFeatureEntries; 2253 return kFeatureEntries;
2241 } 2254 }
2242 2255
2243 } // namespace testing 2256 } // namespace testing
2244 2257
2245 } // namespace about_flags 2258 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/public/browser/gpu_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698