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

Issue 665463003: gpu: Add CHROMIUM_image support to in-process command buffer. (Closed)

Created:
6 years, 2 months ago by reveman
Modified:
6 years, 1 month ago
Reviewers:
jamesr, no sievers, boliu
CC:
chromium-reviews, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@move-gpu-memory-buffer-factory-to-gpu-image-factory
Project:
chromium
Visibility:
Public.

Description

gpu: Add CHROMIUM_image support to in-process command buffer. This makes it possible to use the in-process command buffer with CHROMIUM_image extension. GpuMemoryBufferManager and ImageFactory interfaces need to be provided when creating an in-process command buffer. Existing implementations of these interfaces in content/ should work just fine. cc::TestGpuMemoryBufferManager and cc::TestImageFactory are used for cc pixel tests. They provide a minimal implementation of these interfaces using shared memory. Note: shared memory is used for in-process testing as it maps better to the GpuMemoryBuffer framework that has been designed for multi-process usage. Non-shared memory might be a bit more efficient but it would require more complexity and not match real usage as well. BUG=423533 Committed: https://crrev.com/2232bce10844b88b9816027c2b546ccee64f46d4 Cr-Commit-Position: refs/heads/master@{#301763}

Patch Set 1 #

Patch Set 2 : add cc pixel test support #

Patch Set 3 : make code more consistent with command buffer proxy #

Total comments: 10

Patch Set 4 : rebase, address review feedback and fix a few other nits #

Patch Set 5 : rebase #

Patch Set 6 : Fix SynchronousCompositorFactoryImpl #

Patch Set 7 : fix HardwareRenderer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -52 lines) Patch
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M cc/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_gpu_memory_buffer_manager.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/test_gpu_memory_buffer_manager.cc View 1 2 3 4 3 chunks +29 lines, -19 lines 0 comments Download
A cc/test/test_image_factory.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A cc/test/test_image_factory.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download
M cc/test/test_in_process_context_provider.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M cc/test/test_in_process_context_provider.cc View 1 2 chunks +13 lines, -3 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_factory_impl.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.h View 1 chunk +3 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.cc View 1 2 3 4 5 chunks +23 lines, -14 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 3 4 8 chunks +21 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 9 chunks +97 lines, -8 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (4 generated)
reveman
and now some real changes
6 years, 2 months ago (2014-10-17 20:25:14 UTC) #2
no sievers
https://codereview.chromium.org/665463003/diff/40001/cc/test/test_gpu_memory_buffer_manager.cc File cc/test/test_gpu_memory_buffer_manager.cc (right): https://codereview.chromium.org/665463003/diff/40001/cc/test/test_gpu_memory_buffer_manager.cc#newcode64 cc/test/test_gpu_memory_buffer_manager.cc:64: const gfx::Size size_; nit: could make size_ and format_ ...
6 years, 2 months ago (2014-10-17 21:16:50 UTC) #3
reveman
PTAL https://codereview.chromium.org/665463003/diff/40001/cc/test/test_gpu_memory_buffer_manager.cc File cc/test/test_gpu_memory_buffer_manager.cc (right): https://codereview.chromium.org/665463003/diff/40001/cc/test/test_gpu_memory_buffer_manager.cc#newcode64 cc/test/test_gpu_memory_buffer_manager.cc:64: const gfx::Size size_; On 2014/10/17 21:16:50, sievers wrote: ...
6 years, 2 months ago (2014-10-17 22:36:18 UTC) #4
no sievers
lgtm
6 years, 2 months ago (2014-10-17 23:37:59 UTC) #5
reveman
+jamesr for webkit/
6 years, 1 month ago (2014-10-28 23:01:22 UTC) #7
reveman
+boliu for android_webview/
6 years, 1 month ago (2014-10-28 23:49:58 UTC) #9
boliu
On 2014/10/28 23:49:58, reveman wrote: > +boliu for android_webview/ lgtm
6 years, 1 month ago (2014-10-28 23:53:32 UTC) #10
jamesr
webkit/ lgtm
6 years, 1 month ago (2014-10-29 00:24:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/665463003/120001
6 years, 1 month ago (2014-10-29 00:41:12 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-10-29 01:28:27 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 01:29:01 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2232bce10844b88b9816027c2b546ccee64f46d4
Cr-Commit-Position: refs/heads/master@{#301763}

Powered by Google App Engine
This is Rietveld 408576698