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

Issue 2781293003: gpu: Have GpuService create and own GpuMemoryBufferFactory. (Closed)

Created:
3 years, 8 months ago by sadrul
Modified:
3 years, 8 months ago
Reviewers:
Tom Sepez, reveman, jbauman
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org, rjkroege
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Have GpuService create and own GpuMemoryBufferFactory. Move GpuMemoryBufferFactory ownership into GpuService. Some additional cleanups: . Update GpuMemoryBufferFactory::CreateNativeType() to return nullptr when native buffers are not supported, instead of the callers having to explicitly check first (using GetNativeGpuMemoryBufferType()). . InProcessGpuThread::gpu_preferences_ is never used. So remove. . Some now unnecessary #includes. BUG=none CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2781293003 Cr-Commit-Position: refs/heads/master@{#461337} Committed: https://chromium.googlesource.com/chromium/src/+/6d41b82585204a17ce52137c71722122221be72b

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : tot merge #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : . #

Total comments: 4

Patch Set 7 : tot merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -117 lines) Patch
M content/browser/gpu/gpu_main_thread_factory.h View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M content/common/gpu_host_messages.h View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 3 chunks +3 lines, -7 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 chunks +7 lines, -33 lines 0 comments Download
M content/gpu/gpu_main.cc View 3 chunks +1 line, -8 lines 0 comments Download
M content/gpu/in_process_gpu_thread.h View 1 2 3 4 3 chunks +2 lines, -14 lines 0 comments Download
M content/gpu/in_process_gpu_thread.cc View 1 2 3 4 4 chunks +6 lines, -16 lines 0 comments Download
M gpu/ipc/service/gpu_memory_buffer_factory.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/ipc/service/gpu_memory_buffer_factory.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/gpu/gpu_main.cc View 2 chunks +2 lines, -12 lines 0 comments Download
M services/ui/gpu/gpu_service.h View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M services/ui/gpu/gpu_service.cc View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M services/ui/ws/gpu_host_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 40 (31 generated)
sadrul
tsepez@ for #include removals from gpu_host_messages.h reveman@ for change in gpu_memory_buffer_factory jbauman@ for the rest. ...
3 years, 8 months ago (2017-03-31 04:50:25 UTC) #22
reveman
lgtm with nit https://codereview.chromium.org/2781293003/diff/80001/gpu/ipc/service/gpu_memory_buffer_factory.cc File gpu/ipc/service/gpu_memory_buffer_factory.cc (right): https://codereview.chromium.org/2781293003/diff/80001/gpu/ipc/service/gpu_memory_buffer_factory.cc#newcode25 gpu/ipc/service/gpu_memory_buffer_factory.cc:25: if (GetNativeGpuMemoryBufferType() == gfx::EMPTY_BUFFER) nit: can ...
3 years, 8 months ago (2017-03-31 06:13:34 UTC) #23
sadrul
https://codereview.chromium.org/2781293003/diff/80001/gpu/ipc/service/gpu_memory_buffer_factory.cc File gpu/ipc/service/gpu_memory_buffer_factory.cc (right): https://codereview.chromium.org/2781293003/diff/80001/gpu/ipc/service/gpu_memory_buffer_factory.cc#newcode25 gpu/ipc/service/gpu_memory_buffer_factory.cc:25: if (GetNativeGpuMemoryBufferType() == gfx::EMPTY_BUFFER) On 2017/03/31 06:13:34, reveman wrote: ...
3 years, 8 months ago (2017-03-31 13:09:15 UTC) #26
reveman
https://codereview.chromium.org/2781293003/diff/100001/gpu/ipc/service/gpu_memory_buffer_factory.cc File gpu/ipc/service/gpu_memory_buffer_factory.cc (right): https://codereview.chromium.org/2781293003/diff/100001/gpu/ipc/service/gpu_memory_buffer_factory.cc#newcode10 gpu/ipc/service/gpu_memory_buffer_factory.cc:10: #include "gpu/ipc/common/gpu_memory_buffer_support.h" no need for this after removing the ...
3 years, 8 months ago (2017-03-31 13:38:38 UTC) #27
Tom Sepez
RS LGTM. Geting simpler. Thanks.
3 years, 8 months ago (2017-03-31 16:07:55 UTC) #30
jbauman
lgtm
3 years, 8 months ago (2017-04-01 09:02:00 UTC) #31
sadrul
https://codereview.chromium.org/2781293003/diff/100001/gpu/ipc/service/gpu_memory_buffer_factory.cc File gpu/ipc/service/gpu_memory_buffer_factory.cc (right): https://codereview.chromium.org/2781293003/diff/100001/gpu/ipc/service/gpu_memory_buffer_factory.cc#newcode10 gpu/ipc/service/gpu_memory_buffer_factory.cc:10: #include "gpu/ipc/common/gpu_memory_buffer_support.h" On 2017/03/31 13:38:38, reveman wrote: > no ...
3 years, 8 months ago (2017-04-02 02:50:50 UTC) #36
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/2781293003/120001
3 years, 8 months ago (2017-04-02 02:50:56 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-02 03:40:41 UTC) #40
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/6d41b82585204a17ce52137c7172...

Powered by Google App Engine
This is Rietveld 408576698