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

Issue 1799713002: gpu_host_messages.h => content/gpu (Closed)

Created:
4 years, 9 months ago by Fady Samuel
Modified:
4 years, 9 months ago
Reviewers:
jam, dcheng, piman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nona+watch_chromium.org, piman+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu_host_messages.h => content/gpu gpu_host_messages consists of host <=> gpu IPC messages and is browser specific. Thus, for the time being, it makes sense to keep this file in content. The rest of content/common/gpu is moving to gpu/ipc. Thus, we are moving gpu_host_messages to content/gpu. GpuHostMsg_EstablishGpuChannel, and GpuHostMsg_HasGpuProcess didn't fit in with the rest of gpu_host_messages because they are renderer => browser messages. Thus this CL also moves those oddball IPCs to child_process_messsages.h. Some traits are used by both child_process_messages and gpu_host_messages. I've moved those traits to content/common/gpu/gpu_param_traits_macros.h. BUG=586365 Committed: https://crrev.com/68efb4803bf77935194d31ca1d93e639282cd7b5 Cr-Commit-Position: refs/heads/master@{#381693}

Patch Set 1 #

Patch Set 2 : WIP update #

Patch Set 3 : Moved some messages to child_process_messages.h #

Patch Set 4 : Fix Adroid Build #

Patch Set 5 : Fixed Mac build (and hopefully other platforms) #

Patch Set 6 : Fix Windows Build (I hope) #

Patch Set 7 : Fixed missing include (hopefully fix windows build) #

Patch Set 8 : Removed an unnecessary include #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -680 lines) Patch
M content/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 1 chunk +1 line, -0 lines 1 comment Download
M content/browser/gpu/gpu_data_manager_impl_private.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 chunk +1 line, -1 line 0 comments Download
D content/browser/renderer_host/gpu_message_filter.h View 1 2 1 chunk +0 lines, -58 lines 0 comments Download
M content/browser/renderer_host/gpu_message_filter.cc View 1 2 1 chunk +0 lines, -110 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 4 chunks +77 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 6 chunks +1 line, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/child_process_messages.h View 1 2 3 chunks +20 lines, -20 lines 0 comments Download
M content/common/content_message_generator.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/content_param_traits_macros.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
D content/common/gpu/gpu_host_messages.h View 1 1 chunk +0 lines, -314 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 5 chunks +12 lines, -88 lines 0 comments Download
A content/common/gpu/gpu_param_traits.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A + content/common/gpu/gpu_param_traits.cc View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
A content/common/gpu/gpu_param_traits_macros.h View 1 2 3 4 5 1 chunk +140 lines, -0 lines 0 comments Download
M content/common/gpu/media/media_messages.h View 1 2 2 chunks +0 lines, -22 lines 0 comments Download
M content/content.gyp View 1 3 chunks +2 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_gpu.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M content/gpu/BUILD.gn View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A + content/gpu/content_gpu_message_generator.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
A + content/gpu/content_gpu_message_generator.cc View 1 1 chunk +7 lines, -7 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + content/gpu/gpu_host_messages.h View 1 2 3 4 4 chunks +4 lines, -19 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 51 (26 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799713002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/40001
4 years, 9 months ago (2016-03-16 16:50:35 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157605)
4 years, 9 months ago (2016-03-16 17:00:50 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799713002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/60001
4 years, 9 months ago (2016-03-16 17:43:59 UTC) #10
Fady Samuel
Hi Antoine, How do you feel about this refactor? Thanks! Fady
4 years, 9 months ago (2016-03-16 17:55:59 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/174028)
4 years, 9 months ago (2016-03-16 17:57:48 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/1799713002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/80001
4 years, 9 months ago (2016-03-16 20:41:15 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157743)
4 years, 9 months ago (2016-03-16 20:59:57 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799713002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/100001
4 years, 9 months ago (2016-03-16 21:10:45 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157754)
4 years, 9 months ago (2016-03-16 21:22:29 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799713002/70037 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/70037
4 years, 9 months ago (2016-03-16 22:10:09 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157789)
4 years, 9 months ago (2016-03-16 22:22:58 UTC) #27
piman
lgtm
4 years, 9 months ago (2016-03-17 00:15:09 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799713002/70037 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/70037
4 years, 9 months ago (2016-03-17 00:18:22 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157857)
4 years, 9 months ago (2016-03-17 00:30:10 UTC) #32
Fady Samuel
+dcheng@ for messages
4 years, 9 months ago (2016-03-17 00:49:17 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799713002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/130001
4 years, 9 months ago (2016-03-17 02:37:53 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-17 03:37:08 UTC) #38
dcheng
lgtm
4 years, 9 months ago (2016-03-17 07:48:43 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799713002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799713002/130001
4 years, 9 months ago (2016-03-17 12:10:26 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 9 months ago (2016-03-17 12:15:53 UTC) #44
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/68efb4803bf77935194d31ca1d93e639282cd7b5 Cr-Commit-Position: refs/heads/master@{#381693}
4 years, 9 months ago (2016-03-17 12:17:33 UTC) #46
jam
https://codereview.chromium.org/1799713002/diff/130001/content/browser/DEPS File content/browser/DEPS (right): https://codereview.chromium.org/1799713002/diff/130001/content/browser/DEPS#newcode14 content/browser/DEPS:14: "+content/gpu", this is incorrect. content/browser should not depend on ...
4 years, 9 months ago (2016-03-22 16:50:48 UTC) #48
brettw
This is wrong. GPU is a "child" process and links with content/child which in turn ...
4 years, 9 months ago (2016-03-22 16:56:06 UTC) #49
Fady Samuel
On 2016/03/22 16:50:48, jam wrote: > https://codereview.chromium.org/1799713002/diff/130001/content/browser/DEPS > File content/browser/DEPS (right): > > https://codereview.chromium.org/1799713002/diff/130001/content/browser/DEPS#newcode14 > ...
4 years, 9 months ago (2016-03-22 16:56:24 UTC) #50
jam
4 years, 9 months ago (2016-03-22 17:02:22 UTC) #51
Message was sent while issue was closed.
On 2016/03/22 16:56:24, Fady Samuel wrote:
> On 2016/03/22 16:50:48, jam wrote:
> > https://codereview.chromium.org/1799713002/diff/130001/content/browser/DEPS
> > File content/browser/DEPS (right):
> > 
> >
>
https://codereview.chromium.org/1799713002/diff/130001/content/browser/DEPS#n...
> > content/browser/DEPS:14: "+content/gpu",
> > this is incorrect. content/browser should not depend on content/gpu.
> > 
> > for one thing, it brings in code from blink into the browser process through
> all
> > the dependencies.
> > 
> > if code is shared with the browser and gpu processes, it should be in
> > content/common. but we can't include content/gpu here, just like we can't
> > include content/renderer
> 
> Hmm, so the problem here is we're trying to separate browser<=>gpu code in
> content/gpu from client<=>gpu code in content/common/gpu.
> 
> How about a content/gpu/common? :P

content/gpu would still not be the place to put shared code. it has to be under
content/common somewhere. you can rename the subdirs of content/common to be
whatever you think clearly identifies this (i.e. content/common/browser_gpu and
content/common/child_gpu).

Powered by Google App Engine
This is Rietveld 408576698