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

Issue 1083843002: android_webview: Remove dependency on webkit's ContextProviderInProcess. (Closed)

Created:
5 years, 8 months ago by tfarina
Modified:
5 years, 7 months ago
Reviewers:
boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android_webview: Remove dependency on webkit's ContextProviderInProcess. Instead build our own simplified version, so we don't need to depend on webkit/common/gpu. This should help 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 android_webview_apk android_webview_test_apk $ export CHROMIUM_OUT_DIR=out_android $ 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 BUG=338338 TEST=see above R=boliu@chromium.org Committed: https://crrev.com/29c37c903e8f1d153fe2a77cebb972096880c386 Cr-Commit-Position: refs/heads/master@{#326968}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : it links #

Total comments: 6

Patch Set 4 : GLInProcess #

Total comments: 14

Patch Set 5 : changes #

Patch Set 6 : rm leftbehind code from BindToCurrentThread() #

Patch Set 7 : rm leftbehind code from BindToCurrentThread() #

Total comments: 4

Patch Set 8 : #

Total comments: 7

Patch Set 9 : more review fixes #

Patch Set 10 : for real #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -188 lines) Patch
M android_webview/DEPS View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/android_webview.gyp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M android_webview/browser/DEPS View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
A + android_webview/browser/aw_render_thread_context_provider.h View 1 2 3 4 5 6 9 2 chunks +20 lines, -33 lines 0 comments Download
A + android_webview/browser/aw_render_thread_context_provider.cc View 1 2 3 4 5 6 7 8 9 5 chunks +77 lines, -102 lines 0 comments Download
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 4 chunks +3 lines, -48 lines 0 comments Download

Messages

Total messages: 22 (2 generated)
tfarina
Hi Bo, could you review this to me and help me get out all the ...
5 years, 8 months ago (2015-04-13 22:52:28 UTC) #1
boliu
I spent half an hour trying to wrap my ahead around the dependencies (this stuff ...
5 years, 8 months ago (2015-04-14 00:29:52 UTC) #2
boliu
Ok, going with the "alternative plan", ie you can continue on this patch. I'd recommend ...
5 years, 8 months ago (2015-04-14 21:45:46 UTC) #3
tfarina
Bo, fyi, I'm sleeping on this. Hopefully, I will be able to work on this ...
5 years, 8 months ago (2015-04-17 20:44:04 UTC) #4
tfarina
Bo, could you take a look at patch set 3 and answer the two questions ...
5 years, 8 months ago (2015-04-19 02:46:34 UTC) #6
boliu
https://codereview.chromium.org/1083843002/diff/60001/android_webview/browser/context_provider_in_process.cc File android_webview/browser/context_provider_in_process.cc (left): https://codereview.chromium.org/1083843002/diff/60001/android_webview/browser/context_provider_in_process.cc#oldcode94 android_webview/browser/context_provider_in_process.cc:94: gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu; On 2015/04/19 02:46:33, tfarina wrote: ...
5 years, 8 months ago (2015-04-19 08:40:08 UTC) #7
tfarina
Bo, please, see if I got the creation of GLInProcess right. I have had to ...
5 years, 8 months ago (2015-04-19 13:29:54 UTC) #8
boliu
https://codereview.chromium.org/1083843002/diff/80001/android_webview/browser/context_provider_in_process.cc File android_webview/browser/context_provider_in_process.cc (right): https://codereview.chromium.org/1083843002/diff/80001/android_webview/browser/context_provider_in_process.cc#newcode1 android_webview/browser/context_provider_in_process.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
5 years, 8 months ago (2015-04-20 10:06:05 UTC) #9
tfarina
https://codereview.chromium.org/1083843002/diff/80001/android_webview/browser/context_provider_in_process.cc File android_webview/browser/context_provider_in_process.cc (right): https://codereview.chromium.org/1083843002/diff/80001/android_webview/browser/context_provider_in_process.cc#newcode1 android_webview/browser/context_provider_in_process.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
5 years, 8 months ago (2015-04-22 02:09:05 UTC) #10
boliu
https://codereview.chromium.org/1083843002/diff/140001/android_webview/browser/aw_render_thread_context_provider.cc File android_webview/browser/aw_render_thread_context_provider.cc (right): https://codereview.chromium.org/1083843002/diff/140001/android_webview/browser/aw_render_thread_context_provider.cc#newcode91 android_webview/browser/aw_render_thread_context_provider.cc:91: capabilities_.gpu = context_->GetImplementation()->capabilities(); These two lines can move to ...
5 years, 8 months ago (2015-04-22 07:59:18 UTC) #11
tfarina
https://codereview.chromium.org/1083843002/diff/140001/android_webview/browser/aw_render_thread_context_provider.cc File android_webview/browser/aw_render_thread_context_provider.cc (right): https://codereview.chromium.org/1083843002/diff/140001/android_webview/browser/aw_render_thread_context_provider.cc#newcode91 android_webview/browser/aw_render_thread_context_provider.cc:91: capabilities_.gpu = context_->GetImplementation()->capabilities(); On 2015/04/22 07:59:18, boliu wrote: > ...
5 years, 8 months ago (2015-04-23 12:07:51 UTC) #12
boliu
https://codereview.chromium.org/1083843002/diff/160001/android_webview/android_webview.gyp File android_webview/android_webview.gyp (right): https://codereview.chromium.org/1083843002/diff/160001/android_webview/android_webview.gyp#newcode205 android_webview/android_webview.gyp:205: 'browser/aw_content_browser_client.h', were you intentionally sorting this, or was presubmit ...
5 years, 8 months ago (2015-04-23 12:23:42 UTC) #13
boliu
https://codereview.chromium.org/1083843002/diff/160001/android_webview/browser/aw_render_thread_context_provider.cc File android_webview/browser/aw_render_thread_context_provider.cc (right): https://codereview.chromium.org/1083843002/diff/160001/android_webview/browser/aw_render_thread_context_provider.cc#newcode190 android_webview/browser/aw_render_thread_context_provider.cc:190: { On 2015/04/23 12:23:41, boliu wrote: > Now the ...
5 years, 8 months ago (2015-04-23 12:24:41 UTC) #14
tfarina
https://codereview.chromium.org/1083843002/diff/160001/android_webview/android_webview.gyp File android_webview/android_webview.gyp (right): https://codereview.chromium.org/1083843002/diff/160001/android_webview/android_webview.gyp#newcode205 android_webview/android_webview.gyp:205: 'browser/aw_content_browser_client.h', On 2015/04/23 12:23:41, boliu wrote: > were you ...
5 years, 8 months ago (2015-04-24 15:04:55 UTC) #15
boliu
https://codereview.chromium.org/1083843002/diff/160001/android_webview/browser/aw_render_thread_context_provider.cc File android_webview/browser/aw_render_thread_context_provider.cc (right): https://codereview.chromium.org/1083843002/diff/160001/android_webview/browser/aw_render_thread_context_provider.cc#newcode190 android_webview/browser/aw_render_thread_context_provider.cc:190: { On 2015/04/24 15:04:55, tfarina wrote: > On 2015/04/23 ...
5 years, 8 months ago (2015-04-24 15:36:54 UTC) #16
tfarina
https://codereview.chromium.org/1083843002/diff/160001/android_webview/browser/aw_render_thread_context_provider.cc File android_webview/browser/aw_render_thread_context_provider.cc (right): https://codereview.chromium.org/1083843002/diff/160001/android_webview/browser/aw_render_thread_context_provider.cc#newcode190 android_webview/browser/aw_render_thread_context_provider.cc:190: { On 2015/04/24 15:36:54, boliu wrote: > On 2015/04/24 ...
5 years, 8 months ago (2015-04-24 17:25:43 UTC) #17
boliu
lgtm
5 years, 8 months ago (2015-04-24 22:21:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1083843002/200001
5 years, 7 months ago (2015-04-25 10:58:12 UTC) #20
commit-bot: I haz the power
Committed patchset #10 (id:200001)
5 years, 7 months ago (2015-04-25 13:10:52 UTC) #21
commit-bot: I haz the power
5 years, 7 months ago (2015-04-25 13:12:38 UTC) #22
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/29c37c903e8f1d153fe2a77cebb972096880c386
Cr-Commit-Position: refs/heads/master@{#326968}

Powered by Google App Engine
This is Rietveld 408576698