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

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

Issue 2549283002: Android: enable WebRTC HW H264 with a flag by default (Closed)
Patch Set: fix histograms value Created 4 years 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
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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_DEFAULT, "", ""}, 608 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_DEFAULT, "", ""},
609 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONE, switches::kSecurityChipAnimation, 609 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONE, switches::kSecurityChipAnimation,
610 switches::kSecurityChipAnimationNone}, 610 switches::kSecurityChipAnimationNone},
611 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONSECURE_ONLY, 611 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONSECURE_ONLY,
612 switches::kSecurityChipAnimation, 612 switches::kSecurityChipAnimation,
613 switches::kSecurityChipAnimationNonSecureOnly}, 613 switches::kSecurityChipAnimationNonSecureOnly},
614 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_ALL, switches::kSecurityChipAnimation, 614 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_ALL, switches::kSecurityChipAnimation,
615 switches::kSecurityChipAnimationAll}, 615 switches::kSecurityChipAnimationAll},
616 }; 616 };
617 617
618 #if BUILDFLAG(ENABLE_WEBRTC)
619 const FeatureEntry::Choice kDisableWebRtcHWEncodingChoices[] = {
620 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
621 {IDS_FLAGS_WEBRTC_HW_ENCODING_ALL, switches::kDisableWebRtcHWEncoding, ""},
622 {IDS_FLAGS_WEBRTC_HW_ENCODING_VPX, switches::kDisableWebRtcHWEncoding,
623 switches::kDisableWebRtcHWEncodingVPx},
624 {IDS_FLAGS_WEBRTC_HW_ENCODING_H264, switches::kDisableWebRtcHWEncoding,
625 switches::kDisableWebRtcHWEncodingH264},
626 {IDS_FLAGS_WEBRTC_HW_ENCODING_NONE, switches::kDisableWebRtcHWEncoding,
627 switches::kDisableWebRtcHWEncodingNone},
628 };
629 #endif // ENABLE_WEBRTC
630
631 #if !defined(OS_ANDROID) 618 #if !defined(OS_ANDROID)
632 const FeatureEntry::Choice kEnableDefaultMediaSessionChoices[] = { 619 const FeatureEntry::Choice kEnableDefaultMediaSessionChoices[] = {
633 {IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DISABLED, "", ""}, 620 {IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DISABLED, "", ""},
634 {IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_ENABLED, 621 {IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_ENABLED,
635 switches::kEnableDefaultMediaSession, ""}, 622 switches::kEnableDefaultMediaSession, ""},
636 #if BUILDFLAG(ENABLE_PLUGINS) 623 #if BUILDFLAG(ENABLE_PLUGINS)
637 {IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_ENABLED_DUCK_FLASH, 624 {IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_ENABLED_DUCK_FLASH,
638 switches::kEnableDefaultMediaSession, 625 switches::kEnableDefaultMediaSession,
639 switches::kEnableDefaultMediaSessionDuckFlash}, 626 switches::kEnableDefaultMediaSessionDuckFlash},
640 #endif // BUILDFLAG(ENABLE_PLUGINS) 627 #endif // BUILDFLAG(ENABLE_PLUGINS)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, kOsAll, 675 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, kOsAll,
689 SINGLE_VALUE_TYPE(cc::switches::kShowCompositedLayerBorders)}, 676 SINGLE_VALUE_TYPE(cc::switches::kShowCompositedLayerBorders)},
690 {"gl-composited-texture-quad-borders", 677 {"gl-composited-texture-quad-borders",
691 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS, 678 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS,
692 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS_DESCRIPTION, kOsAll, 679 IDS_FLAGS_GL_COMPOSITED_TEXTURE_QUAD_BORDERS_DESCRIPTION, kOsAll,
693 SINGLE_VALUE_TYPE(cc::switches::kGlCompositedTextureQuadBorder)}, 680 SINGLE_VALUE_TYPE(cc::switches::kGlCompositedTextureQuadBorder)},
694 #if BUILDFLAG(ENABLE_WEBRTC) 681 #if BUILDFLAG(ENABLE_WEBRTC)
695 {"disable-webrtc-hw-decoding", IDS_FLAGS_WEBRTC_HW_DECODING_NAME, 682 {"disable-webrtc-hw-decoding", IDS_FLAGS_WEBRTC_HW_DECODING_NAME,
696 IDS_FLAGS_WEBRTC_HW_DECODING_DESCRIPTION, kOsAndroid | kOsCrOS, 683 IDS_FLAGS_WEBRTC_HW_DECODING_DESCRIPTION, kOsAndroid | kOsCrOS,
697 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)}, 684 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)},
698 {"disable-webrtc-hw-encoding", IDS_FLAGS_WEBRTC_HW_ENCODING_NAME, 685 {"disable-webrtc-hw-vp8-encoding", IDS_FLAGS_WEBRTC_HW_VP8_ENCODING_NAME,
699 IDS_FLAGS_WEBRTC_HW_ENCODING_DESCRIPTION, kOsAndroid | kOsCrOS, 686 IDS_FLAGS_WEBRTC_HW_VP8_ENCODING_DESCRIPTION, kOsAndroid | kOsCrOS,
700 MULTI_VALUE_TYPE(kDisableWebRtcHWEncodingChoices)}, 687 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWVP8Encoding)},
688 {"enable-webrtc-hw-h264-encoding", IDS_FLAGS_WEBRTC_HW_H264_ENCODING_NAME,
689 IDS_FLAGS_WEBRTC_HW_H264_ENCODING_DESCRIPTION, kOsAndroid | kOsCrOS,
690 FEATURE_VALUE_TYPE(features::kWebRtcHWH264Encoding)},
701 {"enable-webrtc-stun-origin", IDS_FLAGS_WEBRTC_STUN_ORIGIN_NAME, 691 {"enable-webrtc-stun-origin", IDS_FLAGS_WEBRTC_STUN_ORIGIN_NAME,
702 IDS_FLAGS_WEBRTC_STUN_ORIGIN_DESCRIPTION, kOsAll, 692 IDS_FLAGS_WEBRTC_STUN_ORIGIN_DESCRIPTION, kOsAll,
703 SINGLE_VALUE_TYPE(switches::kEnableWebRtcStunOrigin)}, 693 SINGLE_VALUE_TYPE(switches::kEnableWebRtcStunOrigin)},
704 #endif // ENABLE_WEBRTC 694 #endif // ENABLE_WEBRTC
705 #if defined(OS_ANDROID) 695 #if defined(OS_ANDROID)
706 {"enable-osk-overscroll", IDS_FLAGS_ENABLE_OSK_OVERSCROLL_NAME, 696 {"enable-osk-overscroll", IDS_FLAGS_ENABLE_OSK_OVERSCROLL_NAME,
707 IDS_FLAGS_ENABLE_OSK_OVERSCROLL_DESCRIPTION, kOsAndroid, 697 IDS_FLAGS_ENABLE_OSK_OVERSCROLL_DESCRIPTION, kOsAndroid,
708 SINGLE_VALUE_TYPE(switches::kEnableOSKOverscroll)}, 698 SINGLE_VALUE_TYPE(switches::kEnableOSKOverscroll)},
709 {"enable-usermedia-screen-capturing", IDS_FLAGS_MEDIA_SCREEN_CAPTURE_NAME, 699 {"enable-usermedia-screen-capturing", IDS_FLAGS_MEDIA_SCREEN_CAPTURE_NAME,
710 IDS_FLAGS_MEDIA_SCREEN_CAPTURE_DESCRIPTION, kOsAndroid, 700 IDS_FLAGS_MEDIA_SCREEN_CAPTURE_DESCRIPTION, kOsAndroid,
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2301 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2312 2302
2313 const FeatureEntry* GetFeatureEntries(size_t* count) { 2303 const FeatureEntry* GetFeatureEntries(size_t* count) {
2314 *count = arraysize(kFeatureEntries); 2304 *count = arraysize(kFeatureEntries);
2315 return kFeatureEntries; 2305 return kFeatureEntries;
2316 } 2306 }
2317 2307
2318 } // namespace testing 2308 } // namespace testing
2319 2309
2320 } // namespace about_flags 2310 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698