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

Issue 2686243002: content/ui[Android]: Remove ContextProviderFactory. (Closed)

Created:
3 years, 10 months ago by Khushal
Modified:
3 years, 9 months ago
CC:
chromium-reviews, rjkroege, creis+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, nasko+codewatch_chromium.org, jam, sadrul, jbauman+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, shuchen+watch_chromium.org, mcasas+watch+vc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

content/ui[Android]: Remove ContextProviderFactory. The class was added in ui/ to expose the compositor dependencies needed by blimp, which is no longer necessary. The change removes the interface and the implementation from content with the functionality added to CompositorImpl. Also, the logic for shutdown in GpuChannelEstablishFactory can currently be reentrant, since the factory loops over all pending callbacks, and running the callbacks with a null host can have the caller retry and add to this list. This makes sure that the factory doesn't add any more requests during shutdown. BUG=684072 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2686243002 Cr-Commit-Position: refs/heads/master@{#453738} Committed: https://chromium.googlesource.com/chromium/src/+/31690fb03a1ca682147c4e1f81a7d8479c88a233

Patch Set 1 #

Patch Set 2 : .. #

Patch Set 3 : .. #

Patch Set 4 : .. #

Total comments: 20

Patch Set 5 : Addressed comments. #

Total comments: 4

Patch Set 6 : bo's comment #

Patch Set 7 : test #

Patch Set 8 : Rebase #

Patch Set 9 : more rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -775 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 3 chunks +0 lines, -10 lines 0 comments Download
M content/browser/compositor/surface_utils.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +0 lines, -16 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest_unittest.cc View 1 2 3 4 5 6 7 7 chunks +0 lines, -27 lines 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 1 2 3 4 5 6 1 chunk +0 lines, -19 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -3 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 13 chunks +124 lines, -78 lines 0 comments Download
D content/browser/renderer_host/context_provider_factory_impl_android.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -117 lines 0 comments Download
D content/browser/renderer_host/context_provider_factory_impl_android.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -246 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_surface_manager_unittest.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 4 chunks +0 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/test/test_renderer_host.h View 2 chunks +0 lines, -2 lines 0 comments Download
M content/public/test/test_renderer_host.cc View 3 chunks +0 lines, -9 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
D content/test/mock_gpu_channel_establish_factory.h View 1 chunk +0 lines, -26 lines 0 comments Download
D content/test/mock_gpu_channel_establish_factory.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -16 lines 0 comments Download
M services/ui/public/cpp/gpu/command_buffer_metrics.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M services/ui/public/cpp/gpu/command_buffer_metrics.cc View 1 2 2 chunks +0 lines, -12 lines 0 comments Download
M services/ui/public/cpp/gpu/gpu.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -2 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
D ui/android/context_provider_factory.h View 1 chunk +0 lines, -89 lines 0 comments Download
D ui/android/context_provider_factory.cc View 1 chunk +0 lines, -29 lines 0 comments Download
M ui/android/delegated_frame_host_android.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/delegated_frame_host_android.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 60 (26 generated)
Khushal
+boliu for content/ android. +jbauman for content/gpu. Does the BrowserGpuChannelHostFactory change look reasonable? +dtrainor for ...
3 years, 10 months ago (2017-02-10 18:04:43 UTC) #9
Khushal
+sky for content/ test and services/
3 years, 10 months ago (2017-02-10 18:06:35 UTC) #11
Khushal
+asvitkine for histograms.xml.
3 years, 10 months ago (2017-02-10 18:07:49 UTC) #13
Alexei Svitkine (slow)
Don't delete things from histograms.xml as they're still needed to decode data from old versions. ...
3 years, 10 months ago (2017-02-10 20:11:16 UTC) #14
sky
LGTM - but wait for fady to review changes to services/ui/public/cpp/gpu/gpu.cc.
3 years, 10 months ago (2017-02-10 21:07:59 UTC) #16
David Trainor- moved to gerrit
ui/android lgtm
3 years, 10 months ago (2017-02-10 21:59:15 UTC) #17
Fady Samuel
lgtm
3 years, 10 months ago (2017-02-10 22:17:29 UTC) #18
boliu
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) Hmm, I guess this is ok. But ...
3 years, 10 months ago (2017-02-10 22:23:02 UTC) #19
Khushal
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) On 2017/02/10 22:23:02, boliu wrote: > Hmm, ...
3 years, 10 months ago (2017-02-10 22:42:39 UTC) #20
boliu
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) On 2017/02/10 22:42:39, Khushal wrote: > On ...
3 years, 10 months ago (2017-02-10 22:45:18 UTC) #21
Khushal
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) On 2017/02/10 22:45:18, boliu wrote: > On ...
3 years, 10 months ago (2017-02-10 22:51:30 UTC) #22
boliu
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) On 2017/02/10 22:51:30, Khushal wrote: > On ...
3 years, 10 months ago (2017-02-10 23:05:22 UTC) #23
Khushal
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) On 2017/02/10 23:05:22, boliu wrote: > On ...
3 years, 10 months ago (2017-02-10 23:24:30 UTC) #24
Khushal
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) On 2017/02/10 23:24:30, Khushal wrote: > On ...
3 years, 10 months ago (2017-02-11 02:10:22 UTC) #25
jbauman
On 2017/02/11 02:10:22, Khushal wrote: > https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc > File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): > > https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 > ...
3 years, 10 months ago (2017-02-11 02:13:52 UTC) #26
Khushal
https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/2686243002/diff/60001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode290 content/browser/gpu/browser_gpu_channel_host_factory.cc:290: if (in_shutdown_) On 2017/02/11 02:10:22, Khushal wrote: > On ...
3 years, 10 months ago (2017-02-13 21:07:14 UTC) #27
boliu
https://codereview.chromium.org/2686243002/diff/80001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/2686243002/diff/80001/content/browser/renderer_host/compositor_impl_android.cc#newcode652 content/browser/renderer_host/compositor_impl_android.cc:652: LOG_IF(FATAL, ++num_successive_gpu_initialization_failures_ > 2) this is new.. if you ...
3 years, 10 months ago (2017-02-13 22:00:46 UTC) #28
Khushal
https://codereview.chromium.org/2686243002/diff/80001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/2686243002/diff/80001/content/browser/renderer_host/compositor_impl_android.cc#newcode652 content/browser/renderer_host/compositor_impl_android.cc:652: LOG_IF(FATAL, ++num_successive_gpu_initialization_failures_ > 2) On 2017/02/13 22:00:46, boliu wrote: ...
3 years, 10 months ago (2017-02-13 23:49:51 UTC) #29
boliu
lgtm
3 years, 10 months ago (2017-02-13 23:58:08 UTC) #30
Khushal
asvitkine for histograms.xml. jbauman to take a look at content/browser/gpu. fsamuel for another look at ...
3 years, 10 months ago (2017-02-14 00:06:46 UTC) #31
jbauman
lgtm
3 years, 10 months ago (2017-02-14 00:08:03 UTC) #32
Fady Samuel
lgtm
3 years, 10 months ago (2017-02-14 00:30:22 UTC) #33
Alexei Svitkine (slow)
lgtm
3 years, 10 months ago (2017-02-14 01:40:52 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686243002/100001
3 years, 10 months ago (2017-02-14 03:15:02 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/309097)
3 years, 10 months ago (2017-02-14 03:50:32 UTC) #39
Khushal
Removing the test which was checking that pending callbacks in BrowserGpuChannelHostFactory are run on shutdown.
3 years, 10 months ago (2017-02-14 06:00:19 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686243002/120001
3 years, 10 months ago (2017-02-14 06:00:48 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/118357)
3 years, 10 months ago (2017-02-14 07:34:44 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686243002/140001
3 years, 9 months ago (2017-02-28 19:26:50 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/47222) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-02-28 19:30:36 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686243002/140002
3 years, 9 months ago (2017-02-28 19:49:31 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/6371)
3 years, 9 months ago (2017-02-28 21:51:38 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686243002/140002
3 years, 9 months ago (2017-02-28 22:02:58 UTC) #57
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 23:24:37 UTC) #60
Message was sent while issue was closed.
Committed patchset #9 (id:140002) as
https://chromium.googlesource.com/chromium/src/+/31690fb03a1ca682147c4e1f81a7...

Powered by Google App Engine
This is Rietveld 408576698