diff options
author | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-02 21:06:59 +0000 |
---|---|---|
committer | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-02 21:06:59 +0000 |
commit | d8ab023cefaa25623bad01e00f5aa4a70c3d7f63 (patch) | |
tree | 1fc57e4d70f0929d7f9f67c26d9bfc4fab9dba47 | |
parent | f8ff6ed8e737ceb13e3679a14bafc082b3fa6d29 (diff) | |
download | chromium_src-d8ab023cefaa25623bad01e00f5aa4a70c3d7f63.zip chromium_src-d8ab023cefaa25623bad01e00f5aa4a70c3d7f63.tar.gz chromium_src-d8ab023cefaa25623bad01e00f5aa4a70c3d7f63.tar.bz2 |
wrap stray switches::kDisableWebRtcHWEncoding in ifdefs
Followup from https://codereview.chromium.org/74563002
TEST=Build with enable_webrtc=0
BUG=313115
Review URL: https://codereview.chromium.org/115063004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242794 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/common/gpu/media/android_video_encode_accelerator.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/common/gpu/media/android_video_encode_accelerator.cc b/content/common/gpu/media/android_video_encode_accelerator.cc index 7928143..05f18b6 100644 --- a/content/common/gpu/media/android_video_encode_accelerator.cc +++ b/content/common/gpu/media/android_video_encode_accelerator.cc @@ -87,9 +87,11 @@ AndroidVideoEncodeAccelerator::GetSupportedProfiles() { std::vector<SupportedProfile> profiles; +#if defined(ENABLE_WEBRTC) const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); if (cmd_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) return profiles; +#endif for (size_t i = 0; i < codecs_info.size(); ++i) { const MediaCodecBridge::CodecsInfo& info = codecs_info[i]; |