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

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)

Created:
4 years, 3 months ago by ericrk
Modified:
4 years, 3 months ago
Reviewers:
danakj, msw, no sievers, Wez, boliu
CC:
chromium-reviews, sievers+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, jam, gcasto+watch-blimp_chromium.org, jbauman+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, android-webview-reviews_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, khushalsagar+watch-blimp_chromium.org, rjkroege, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, danakj+watch_chromium.org, dtrainor+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide TaskRunner to ContextCacheController Both ContextCacheController and the CommandBuffer/GpuControl need access to a TaskRunner. CommandBuffer/GpuControl currently creates this TaskRunner internally in most cases. This change moves TaskRunner creation to the ContextProvider, allowing the same TaskRunner to be passed to both objects. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/d989e6a0815a6f77d3a6fbab24afe9ff6abbf25e Cr-Commit-Position: refs/heads/master@{#419553}

Patch Set 1 #

Total comments: 1

Patch Set 2 : cleanup #

Total comments: 5

Patch Set 3 : feedback #

Patch Set 4 : rebase #

Patch Set 5 : fix unittests #

Total comments: 4

Patch Set 6 : feedback #

Total comments: 5

Patch Set 7 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -78 lines) Patch
M android_webview/browser/aw_render_thread_context_provider.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M blimp/client/support/compositor/blimp_context_provider.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M cc/output/context_cache_controller.h View 3 chunks +9 lines, -1 line 0 comments Download
M cc/output/context_cache_controller.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M cc/output/context_cache_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/raster/raster_buffer_provider_perftest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/test_context_provider.cc View 1 chunk +4 lines, -1 line 0 comments Download
M cc/test/test_in_process_context_provider.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/test_in_process_context_provider.cc View 1 2 3 4 5 3 chunks +14 lines, -10 lines 0 comments Download
M components/display_compositor/gl_helper_benchmark.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M components/display_compositor/gl_helper_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M components/display_compositor/yuv_readback_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.h View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.cc View 1 2 3 4 5 6 7 chunks +21 lines, -20 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M gpu/ipc/client/gpu_in_process_context_tests.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/demo/bitmap_uploader.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/public/cpp/context_provider.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M services/ui/public/cpp/gles2_context.h View 1 chunk +4 lines, -2 lines 0 comments Download
M services/ui/public/cpp/gles2_context.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M services/ui/surfaces/surfaces_context_provider.h View 2 chunks +5 lines, -0 lines 0 comments Download
M services/ui/surfaces/surfaces_context_provider.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M ui/compositor/test/in_process_context_provider.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 82 (54 generated)
ericrk
https://codereview.chromium.org/2286873003/diff/160001/cc/output/context_cache_controller.h File cc/output/context_cache_controller.h (right): https://codereview.chromium.org/2286873003/diff/160001/cc/output/context_cache_controller.h#newcode74 cc/output/context_cache_controller.h:74: scoped_refptr<base::SingleThreadTaskRunner> task_runner_; This will be used in a follow-up ...
4 years, 3 months ago (2016-08-30 21:36:13 UTC) #15
ericrk
4 years, 3 months ago (2016-08-31 20:53:55 UTC) #18
ericrk
friendly ping :D - sievers@, can you take a look?
4 years, 3 months ago (2016-09-01 19:15:58 UTC) #19
no sievers
content + gpu lgtm
4 years, 3 months ago (2016-09-02 19:47:33 UTC) #20
ericrk
Adding additional owners for ContextProvider changes. +wez for Blimp/ +msw for services/ +boliu for aw/ ...
4 years, 3 months ago (2016-09-06 21:57:09 UTC) #22
Wez
https://codereview.chromium.org/2286873003/diff/180001/blimp/client/support/compositor/blimp_context_provider.cc File blimp/client/support/compositor/blimp_context_provider.cc (right): https://codereview.chromium.org/2286873003/diff/180001/blimp/client/support/compositor/blimp_context_provider.cc#newcode46 blimp/client/support/compositor/blimp_context_provider.cc:46: auto task_runner = base::ThreadTaskRunnerHandle::Get(); It's non-obvious what the type ...
4 years, 3 months ago (2016-09-06 23:29:02 UTC) #23
danakj
https://codereview.chromium.org/2286873003/diff/180001/blimp/client/support/compositor/blimp_context_provider.cc File blimp/client/support/compositor/blimp_context_provider.cc (right): https://codereview.chromium.org/2286873003/diff/180001/blimp/client/support/compositor/blimp_context_provider.cc#newcode55 blimp/client/support/compositor/blimp_context_provider.cc:55: context_->GetImplementation(), std::move(task_runner))); On 2016/09/06 23:29:02, Wez wrote: > It ...
4 years, 3 months ago (2016-09-06 23:42:39 UTC) #24
boliu
lgtm
4 years, 3 months ago (2016-09-07 16:29:27 UTC) #25
ericrk
https://codereview.chromium.org/2286873003/diff/180001/blimp/client/support/compositor/blimp_context_provider.cc File blimp/client/support/compositor/blimp_context_provider.cc (right): https://codereview.chromium.org/2286873003/diff/180001/blimp/client/support/compositor/blimp_context_provider.cc#newcode46 blimp/client/support/compositor/blimp_context_provider.cc:46: auto task_runner = base::ThreadTaskRunnerHandle::Get(); On 2016/09/06 23:29:02, Wez wrote: ...
4 years, 3 months ago (2016-09-13 17:04:27 UTC) #27
Wez
On 2016/09/13 17:04:27, ericrk - OOO Until 9-19 wrote: [snip] > That said, I took ...
4 years, 3 months ago (2016-09-13 20:04:47 UTC) #28
Wez
blimp/ LGTM
4 years, 3 months ago (2016-09-13 20:05:21 UTC) #29
danakj
On Tue, Sep 13, 2016 at 1:04 PM, <wez@chromium.org> wrote: > On 2016/09/13 17:04:27, ericrk ...
4 years, 3 months ago (2016-09-13 21:37:08 UTC) #30
ericrk
msw@, friendly ping for review. Thanks!
4 years, 3 months ago (2016-09-14 06:55:57 UTC) #31
msw
services/* rubber stamp lgtm. +CC Robert, you'd be a better owner there than myself.
4 years, 3 months ago (2016-09-14 17:07:05 UTC) #32
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/2286873003/220001
4 years, 3 months ago (2016-09-15 08:12:00 UTC) #35
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/224877) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-15 08:21:49 UTC) #37
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/2286873003/240001
4 years, 3 months ago (2016-09-18 13:00:52 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/130836)
4 years, 3 months ago (2016-09-18 13:13:02 UTC) #42
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/2286873003/260001
4 years, 3 months ago (2016-09-18 16:58:16 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/280200)
4 years, 3 months ago (2016-09-18 17:08:35 UTC) #47
ericrk
Had to add a few more files to get the build to pass - very ...
4 years, 3 months ago (2016-09-19 17:37:33 UTC) #70
danakj
https://codereview.chromium.org/2286873003/diff/350001/cc/output/context_cache_controller.h File cc/output/context_cache_controller.h (right): https://codereview.chromium.org/2286873003/diff/350001/cc/output/context_cache_controller.h#newcode74 cc/output/context_cache_controller.h:74: scoped_refptr<base::SingleThreadTaskRunner> task_runner_; Remind me why this is here? It's ...
4 years, 3 months ago (2016-09-19 18:59:17 UTC) #71
ericrk
https://codereview.chromium.org/2286873003/diff/350001/cc/output/context_cache_controller.h File cc/output/context_cache_controller.h (right): https://codereview.chromium.org/2286873003/diff/350001/cc/output/context_cache_controller.h#newcode74 cc/output/context_cache_controller.h:74: scoped_refptr<base::SingleThreadTaskRunner> task_runner_; On 2016/09/19 18:59:17, danakj wrote: > Remind ...
4 years, 3 months ago (2016-09-19 20:00:28 UTC) #73
danakj
LGTM https://codereview.chromium.org/2286873003/diff/370001/gpu/command_buffer/client/gl_in_process_context.cc File gpu/command_buffer/client/gl_in_process_context.cc (right): https://codereview.chromium.org/2286873003/diff/370001/gpu/command_buffer/client/gl_in_process_context.cc#newcode193 gpu/command_buffer/client/gl_in_process_context.cc:193: if (surface.get()) { no .get here either while ...
4 years, 3 months ago (2016-09-19 20:03:25 UTC) #75
ericrk
https://codereview.chromium.org/2286873003/diff/370001/gpu/command_buffer/client/gl_in_process_context.cc File gpu/command_buffer/client/gl_in_process_context.cc (right): https://codereview.chromium.org/2286873003/diff/370001/gpu/command_buffer/client/gl_in_process_context.cc#newcode193 gpu/command_buffer/client/gl_in_process_context.cc:193: if (surface.get()) { On 2016/09/19 20:03:25, danakj wrote: > ...
4 years, 3 months ago (2016-09-19 20:08:03 UTC) #76
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/2286873003/390001
4 years, 3 months ago (2016-09-19 20:09:01 UTC) #79
commit-bot: I haz the power
Committed patchset #7 (id:390001)
4 years, 3 months ago (2016-09-19 21:17:24 UTC) #80
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 21:20:47 UTC) #82
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d989e6a0815a6f77d3a6fbab24afe9ff6abbf25e
Cr-Commit-Position: refs/heads/master@{#419553}

Powered by Google App Engine
This is Rietveld 408576698