summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host
diff options
context:
space:
mode:
authormichaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-30 23:30:24 +0000
committermichaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-30 23:30:24 +0000
commitc4603320c70869222933b97d9a9a93f336d6425b (patch)
treec160b1bf90116a887dae80d8067c4f97b581a0fc /content/browser/renderer_host
parent96608acf8661dfe96f97146a31e7ffe49346ba72 (diff)
downloadchromium_src-c4603320c70869222933b97d9a9a93f336d6425b.zip
chromium_src-c4603320c70869222933b97d9a9a93f336d6425b.tar.gz
chromium_src-c4603320c70869222933b97d9a9a93f336d6425b.tar.bz2
Remove 'AVOID_LIBYUV_FOR_ANDROID_WEBVIEW'
BUG=299611 Review URL: https://codereview.chromium.org/257343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host')
-rw-r--r--content/browser/renderer_host/media/video_capture_controller.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc
index d208281..98721c5 100644
--- a/content/browser/renderer_host/media/video_capture_controller.cc
+++ b/content/browser/renderer_host/media/video_capture_controller.cc
@@ -19,10 +19,7 @@
#include "media/base/video_frame.h"
#include "media/base/video_util.h"
#include "media/base/yuv_convert.h"
-
-#if !defined(AVOID_LIBYUV_FOR_ANDROID_WEBVIEW)
#include "third_party/libyuv/include/libyuv.h"
-#endif
using media::VideoCaptureFormat;
@@ -340,7 +337,6 @@ void VideoCaptureController::VideoCaptureDeviceClient::OnIncomingCapturedData(
if (!buffer)
return;
uint8* yplane = NULL;
-#if !defined(AVOID_LIBYUV_FOR_ANDROID_WEBVIEW)
bool flip = false;
yplane = reinterpret_cast<uint8*>(buffer->data());
uint8* uplane =
@@ -425,12 +421,6 @@ void VideoCaptureController::VideoCaptureDeviceClient::OnIncomingCapturedData(
frame_format.frame_size.height(),
rotation_mode,
origin_colorspace);
-#else
- // Libyuv is not linked in for Android WebView builds, but video capture is
- // not used in those builds either. Whenever libyuv is added in that build,
- // address all these #ifdef parts, see http://crbug.com/299611 .
- NOTREACHED();
-#endif // if !defined(AVOID_LIBYUV_FOR_ANDROID_WEBVIEW)
scoped_refptr<media::VideoFrame> frame =
media::VideoFrame::WrapExternalPackedMemory(
media::VideoFrame::I420,