diff options
author | andresp@webrtc.org <andresp@webrtc.org> | 2014-09-17 11:44:51 +0000 |
---|---|---|
committer | andresp@webrtc.org <andresp@webrtc.org> | 2014-09-17 11:44:51 +0000 |
commit | 8d6e944bee3e0228ca0e52e23fabea8ed787d5ec (patch) | |
tree | 56224335ac16c70725bd1a7806ff544386ea7375 /video_engine/test | |
parent | 1c655450cf12d21bfa5b2ff277f337335149186a (diff) | |
download | webrtc-8d6e944bee3e0228ca0e52e23fabea8ed787d5ec.tar.gz |
Split video engine android initialization into each internal module initialization.
This is to later on allow targets to pick at link time if to include the external or internal implementation. In order to do that the video_engine cannot compile different based on which option is picked later on.
BUG=3768,3770
R=glaznev@webrtc.org, stefan@webrtc.org
TBR=henrike@webrtc.org, mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/25529004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@7208 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'video_engine/test')
-rw-r--r-- | video_engine/test/auto_test/source/vie_autotest_android.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/video_engine/test/auto_test/source/vie_autotest_android.cc b/video_engine/test/auto_test/source/vie_autotest_android.cc index ac0dd17e..ced235f6 100644 --- a/video_engine/test/auto_test/source/vie_autotest_android.cc +++ b/video_engine/test/auto_test/source/vie_autotest_android.cc @@ -13,15 +13,18 @@ #include <android/log.h> #include <stdio.h> -#include "webrtc/video_engine/test/auto_test/interface/vie_autotest.h" +#include "webrtc/modules/video_capture/video_capture_internal.h" +#include "webrtc/modules/video_render/video_render_internal.h" #include "webrtc/video_engine/test/auto_test/interface/vie_autotest_defines.h" +#include "webrtc/video_engine/test/auto_test/interface/vie_autotest.h" int ViEAutoTestAndroid::RunAutotest(int testSelection, int subTestSelection, void* window1, void* window2, JavaVM* javaVM, void* env, void* context) { ViEAutoTest vieAutoTest(window1, window2); ViETest::Log("RunAutoTest(%d, %d)", testSelection, subTestSelection); - webrtc::VideoEngine::SetAndroidObjects(javaVM, static_cast<jobject>(context)); + webrtc::SetCaptureAndroidVM(javaVM, static_cast<jobject>(context)); + webrtc::SetRenderAndroidVM(javaVM); #ifndef WEBRTC_ANDROID_OPENSLES // voice engine calls into ADM directly webrtc::VoiceEngine::SetAndroidObjects(javaVM, env, context); |