android: Merge CreateOffscreenContext and CreateContext into one function.
commitc0a93f375a87b8a7685a19bba712f20ab22f168c
authortfarina <tfarina@chromium.org>
Tue, 7 Apr 2015 12:15:07 +0000 (7 05:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Apr 2015 12:15:35 +0000 (7 12:15 +0000)
treefd77e6fa6b0003b3590e8b1fe3d3b236dbbf6cdb
parentd1f9bcddf7af4a6ba1289193156a5157fe3d0834
android: Merge CreateOffscreenContext and CreateContext into one function.

These refactor these two functions into a single one to ease the
transition of https://codereview.chromium.org/920443003.

Tested on Android (with Nexus 5 device) with the following command lines:

$ ./build/gyp_chromium -DOS=android -Goutput_dir=out_android
$ ninja -C out_android/Debug content_unittests content_unittests_apk
$ export CHROMIUM_OUT_DIR=out_android
$ build/android/test_runner.py gtest -s content_unittests --debug -vvv

ContentShell tests:
$ ninja -C out_android/Debug content_shell_apk
$ ninja -C out_android/Debug content_shell_test_apk
$ build/android/adb_install_apk.py --apk=ContentShell.apk --debug
$ build/android/test_runner.py instrumentation --test-apk=ContentShellTest --isolate-file-path content/content_shell_test_apk.isolate --debug -vv

AndroidWebView tests:
$ ninja -C out_android/Debug android_webview_apk
$ ninja -C out_android/Debug android_webview_test_apk
$ build/android/adb_install_apk.py --apk=AndroidWebView.apk --debug
$ build/android/test_runner.py instrumentation --test-apk=AndroidWebViewTest --test_data webview:android_webview/test/data/device_files --debug -vvv

BUG=338338
TEST=see above
R=boliu@chromium.org

Review URL: https://codereview.chromium.org/1061763002

Cr-Commit-Position: refs/heads/master@{#324033}
content/browser/android/in_process/synchronous_compositor_factory_impl.cc