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

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed)

Created:
4 years, 8 months ago by danakj
Modified:
4 years, 8 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, yzshen+watch_chromium.org, sievers+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, ben+mojo_chromium.org, qsr+mojo_chromium.org, darin (slow to review), maniscalco+watch-blimp_chromium.org, jam, abarth-chromium, jbauman+watch_chromium.org, nona+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, kalyank, android-webview-reviews_chromium.org, dtrainor+watch-blimp_chromium.org, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, rjkroege, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, Ian Vollick, shuchen+watch_chromium.org, Aaron Boodman, mkwst+moarreviews-renderer_chromium.org, danakj+watch_chromium.org, James Su, dcheng, Ken Russell (switch to Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@limits
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. This moves the SharedMemoryLimits out to gpu::SharedMemoryLimits in gpu/command_buffer/client/ and puts the kNoLimit constant in there, used by GLES2Implementation and MappedMemoryManager. While doing this we determined that the max_transfer_buffer_usage_bytes capability on ContextProvider is now unused, so delete it and just have ContextProvider::ContextCapabilities return gpu::Capabilities instead. There is still also a GLInProcessContextSharedMemoryLimits class which we can merge after this. R=piman, sievers@chromium.org TBR=nyquist, sky, raymes BUG=584497 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/6f4e1e255293c50cad768678852d0cb3d5576fdb Cr-Commit-Position: refs/heads/master@{#388418}

Patch Set 1 #

Patch Set 2 : move-limits: . #

Total comments: 1

Patch Set 3 : move-limits: . #

Patch Set 4 : move-limits: . #

Patch Set 5 : move-limits: 2016 #

Patch Set 6 : move-limits: rebase #

Total comments: 14

Patch Set 7 : move-limits: rebase #

Patch Set 8 : move-limits: reviews #

Patch Set 9 : move-limits: another.gpu. #

Total comments: 1

Patch Set 10 : move-limits: types #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -360 lines) Patch
M android_webview/browser/aw_render_thread_context_provider.h View 2 chunks +1 line, -3 lines 0 comments Download
M android_webview/browser/aw_render_thread_context_provider.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M blimp/client/feature/compositor/blimp_context_provider.h View 2 chunks +1 line, -3 lines 0 comments Download
M blimp/client/feature/compositor/blimp_context_provider.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M cc/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/context_provider.h View 2 chunks +1 line, -8 lines 0 comments Download
D cc/output/context_provider.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M cc/output/delegating_renderer.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 2 chunks +13 lines, -14 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 4 chunks +14 lines, -14 lines 0 comments Download
M cc/test/test_context_provider.h View 2 chunks +1 line, -3 lines 0 comments Download
M cc/test/test_context_provider.cc View 2 chunks +1 line, -7 lines 0 comments Download
M cc/test/test_in_process_context_provider.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/test/test_in_process_context_provider.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 2 4 chunks +17 lines, -26 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 3 chunks +2 lines, -19 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M components/mus/public/cpp/context_provider.h View 2 chunks +1 line, -2 lines 0 comments Download
M components/mus/public/cpp/lib/context_provider.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M components/mus/surfaces/direct_output_surface.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/surfaces/direct_output_surface_ozone.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/mus/surfaces/surfaces_context_provider.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/mus/surfaces/surfaces_context_provider.cc View 1 2 3 4 5 6 4 chunks +11 lines, -14 lines 0 comments Download
M components/mus/surfaces/top_level_display_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 chunks +6 lines, -7 lines 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 1 2 3 4 5 4 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 3 chunks +33 lines, -33 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 4 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 3 4 5 6 4 chunks +5 lines, -19 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 7 chunks +5 lines, -19 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 5 6 10 chunks +14 lines, -20 lines 0 comments Download
M content/renderer/media/renderer_gpu_video_accelerator_factories.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/pepper/video_decoder_shim.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 3 chunks +11 lines, -11 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/webgraphicscontext3d_provider_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/mapped_memory.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
A gpu/command_buffer/client/shared_memory_limits.h View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 2 chunks +4 lines, -5 lines 0 comments Download
M gpu/gles2_conform_support/egl/display.cc View 1 2 3 4 5 6 2 chunks +4 lines, -5 lines 0 comments Download
M mojo/gles2/gles2_context.cc View 3 chunks +8 lines, -12 lines 0 comments Download
M ppapi/shared_impl/ppb_graphics_3d_shared.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/compositor/test/in_process_context_provider.h View 2 chunks +1 line, -2 lines 0 comments Download
M ui/compositor/test/in_process_context_provider.cc View 2 chunks +2 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 52 (25 generated)
danakj
piman: please review everything sievers: please review android stuff boliu: webview fsamual: mus
4 years, 8 months ago (2016-04-19 01:45:30 UTC) #8
danakj
There's a few TODOs in here where I found confusing or undocumented things and I ...
4 years, 8 months ago (2016-04-19 01:46:03 UTC) #9
boliu
This needs a rebase. content/browser/android/in_process/context_provider_in_process.* doesn't exist anymore :)
4 years, 8 months ago (2016-04-19 01:48:55 UTC) #10
danakj
https://codereview.chromium.org/1900993002/diff/20001/content/common/gpu/client/context_provider_command_buffer.h File content/common/gpu/client/context_provider_command_buffer.h (right): https://codereview.chromium.org/1900993002/diff/20001/content/common/gpu/client/context_provider_command_buffer.h#newcode69 content/common/gpu/client/context_provider_command_buffer.h:69: gpu::SharedMemoryLimits memory_limits_; We could in theory pass this to ...
4 years, 8 months ago (2016-04-19 01:57:16 UTC) #11
danakj
https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc File blimp/client/feature/compositor/blimp_context_provider.cc (right): https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc#newcode70 blimp/client/feature/compositor/blimp_context_provider.cc:70: // TODO(danakj): Why? Is this even valid? This is ...
4 years, 8 months ago (2016-04-19 02:02:11 UTC) #12
danakj
On Mon, Apr 18, 2016 at 6:48 PM, <boliu@chromium.org> wrote: > This needs a rebase. ...
4 years, 8 months ago (2016-04-19 02:08:41 UTC) #13
piman
lgtm https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc File blimp/client/feature/compositor/blimp_context_provider.cc (right): https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc#newcode70 blimp/client/feature/compositor/blimp_context_provider.cc:70: // TODO(danakj): Why? Is this even valid? This ...
4 years, 8 months ago (2016-04-19 03:22:17 UTC) #14
Fady Samuel
mus lgtm. There are parts of mus I don't own here. Pass the rest to ...
4 years, 8 months ago (2016-04-19 03:28:31 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900993002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900993002/90001
4 years, 8 months ago (2016-04-19 19:55:12 UTC) #17
danakj
+sky for mojo/ and components/mus/
4 years, 8 months ago (2016-04-19 19:55:58 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/147309)
4 years, 8 months ago (2016-04-19 20:09:42 UTC) #21
no sievers
lgtm https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc File blimp/client/feature/compositor/blimp_context_provider.cc (right): https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc#newcode70 blimp/client/feature/compositor/blimp_context_provider.cc:70: // TODO(danakj): Why? Is this even valid? This ...
4 years, 8 months ago (2016-04-19 20:24:13 UTC) #22
boliu
a_w rs lgtm
4 years, 8 months ago (2016-04-19 21:20:03 UTC) #23
danakj
PTAL at the comments https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc File blimp/client/feature/compositor/blimp_context_provider.cc (right): https://codereview.chromium.org/1900993002/diff/90001/blimp/client/feature/compositor/blimp_context_provider.cc#newcode70 blimp/client/feature/compositor/blimp_context_provider.cc:70: // TODO(danakj): Why? Is this ...
4 years, 8 months ago (2016-04-20 00:01:53 UTC) #24
danakj
+wez for blimp +raymes for ppapi Will TBR for these, and for sky@.
4 years, 8 months ago (2016-04-20 00:03:05 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900993002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900993002/130001
4 years, 8 months ago (2016-04-20 00:04:09 UTC) #28
no sievers
https://codereview.chromium.org/1900993002/diff/90001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/1900993002/diff/90001/content/browser/renderer_host/compositor_impl_android.cc#newcode545 content/browser/renderer_host/compositor_impl_android.cc:545: // TODO(danakj): Why this limit on the compositor context? ...
4 years, 8 months ago (2016-04-20 00:06:29 UTC) #29
Wez
Replacing myself with the eminently better qualified Tommy.
4 years, 8 months ago (2016-04-20 00:09:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900993002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900993002/130001
4 years, 8 months ago (2016-04-20 00:13:50 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/147520)
4 years, 8 months ago (2016-04-20 00:23:47 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900993002/40002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900993002/40002
4 years, 8 months ago (2016-04-20 00:40:21 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/200423)
4 years, 8 months ago (2016-04-20 02:02:50 UTC) #43
danakj
https://codereview.chromium.org/1900993002/diff/40002/gpu/command_buffer/client/shared_memory_limits.h File gpu/command_buffer/client/shared_memory_limits.h (right): https://codereview.chromium.org/1900993002/diff/40002/gpu/command_buffer/client/shared_memory_limits.h#newcode13 gpu/command_buffer/client/shared_memory_limits.h:13: size_t command_buffer_size = 1024 * 1024; Turns out these ...
4 years, 8 months ago (2016-04-20 02:11:20 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900993002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900993002/160001
4 years, 8 months ago (2016-04-20 02:12:29 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:160001)
4 years, 8 months ago (2016-04-20 03:27:46 UTC) #49
sky
LGTM
4 years, 8 months ago (2016-04-20 14:42:28 UTC) #50
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:20:36 UTC) #52
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/6f4e1e255293c50cad768678852d0cb3d5576fdb
Cr-Commit-Position: refs/heads/master@{#388418}

Powered by Google App Engine
This is Rietveld 408576698