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

Issue 1703163002: Remove dependency on GURL from content/common/gpu (Closed)

Created:
4 years, 10 months ago by Mark Dittmer
Modified:
4 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency on GURL from content/common/gpu BUG=586368

Patch Set 1 #

Total comments: 10

Patch Set 2 : Implement delegate pattern for accessing GURL via ChildThread #

Patch Set 3 : Integrate new delegate into content_unittests #

Total comments: 2

Patch Set 4 : Remove unnecessary include from gpu_command_buffer_stub #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -116 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.cc View 2 chunks +4 lines, -7 lines 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 2 chunks +6 lines, -12 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.h View 1 3 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 4 chunks +8 lines, -10 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 1 4 chunks +8 lines, -1 line 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
A content/common/gpu/gpu_channel_manager_delegate.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_test_common.h View 1 2 3 chunks +15 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_test_common.cc View 1 2 2 chunks +18 lines, -6 lines 0 comments Download
M content/common/gpu/gpu_channel_unittest.cc View 11 chunks +11 lines, -11 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 4 chunks +6 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 8 chunks +22 lines, -21 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 3 chunks +6 lines, -1 line 0 comments Download
M content/public/common/content_client.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/common/content_client.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_video_encoder_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 1 chunk +3 lines, -6 lines 0 comments Download
M content/renderer/render_widget.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
piman
https://codereview.chromium.org/1703163002/diff/1/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1703163002/diff/1/content/browser/gpu/gpu_process_host.cc#newcode864 content/browser/gpu/gpu_process_host.cc:864: GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs(gurl, guilt); Oh, I hadn't realized we used the ...
4 years, 10 months ago (2016-02-18 18:29:28 UTC) #3
Mark Dittmer
Locally all but GURL/WebString and SetActiveURL overload. Patch forthcoming (hopefully tomorrow morning EST). https://codereview.chromium.org/1703163002/diff/1/content/browser/gpu/gpu_process_host.cc File ...
4 years, 10 months ago (2016-02-18 21:10:25 UTC) #4
Mark Dittmer
Locally all but GURL/WebString and SetActiveURL overload. Patch forthcoming (hopefully tomorrow morning EST).
4 years, 10 months ago (2016-02-18 21:10:33 UTC) #5
piman
+brettw, probably knows the answer to the question about WebStringToGURL above (is string.utf8() equivalent to ...
4 years, 10 months ago (2016-02-18 23:06:32 UTC) #7
Mark Dittmer
Fixed issue with overload using delegate pattern. Hope to hear from brettw@ about (no?) need ...
4 years, 10 months ago (2016-02-19 14:58:46 UTC) #8
Fady Samuel
https://codereview.chromium.org/1703163002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1703163002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode29 content/common/gpu/gpu_command_buffer_stub.cc:29: #include "content/public/common/content_client.h" You can remove this include now, right?
4 years, 10 months ago (2016-02-19 18:38:37 UTC) #10
brettw
If we have URLs, we should always be using URL objects, why are we doing ...
4 years, 10 months ago (2016-02-19 22:11:17 UTC) #11
Fady Samuel
+ben@ for thoughts: you suggested the GPU service should not know about GURL.
4 years, 10 months ago (2016-02-19 22:16:21 UTC) #13
Ben Goodger (Google)
On 2016/02/19 22:16:21, Fady Samuel wrote: > +ben@ for thoughts: you suggested the GPU service ...
4 years, 10 months ago (2016-02-19 22:38:05 UTC) #14
Fady Samuel
On 2016/02/19 22:38:05, Ben Goodger (Google) wrote: > On 2016/02/19 22:16:21, Fady Samuel wrote: > ...
4 years, 10 months ago (2016-02-19 23:19:26 UTC) #15
brettw
On 2016/02/19 23:19:26, Fady Samuel wrote: > To the GPU service, the URL is an ...
4 years, 10 months ago (2016-02-20 00:08:49 UTC) #16
brettw
On 2016/02/20 00:08:49, brettw wrote: > On 2016/02/19 23:19:26, Fady Samuel wrote: > > To ...
4 years, 10 months ago (2016-02-20 00:12:35 UTC) #17
Fady Samuel
Apologies for the confusion. The goal here is to pull content/common/gpu out of content into ...
4 years, 10 months ago (2016-02-20 00:30:41 UTC) #18
Fady Samuel
[1] https://code.google.com/p/chromium/codesearch#chromium/src/content/public/common/common_param_traits.h&q=ParamTraits%3CGURL%3E&sq=package:chromium&type=cs&l=48 On Fri, Feb 19, 2016 at 7:30 PM Fady Samuel <fsamuel@chromium.org> wrote: > ...
4 years, 10 months ago (2016-02-20 00:31:32 UTC) #19
Mark Dittmer
https://codereview.chromium.org/1703163002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1703163002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode29 content/common/gpu/gpu_command_buffer_stub.cc:29: #include "content/public/common/content_client.h" On 2016/02/19 18:38:36, Fady Samuel wrote: > ...
4 years, 10 months ago (2016-02-20 00:55:20 UTC) #20
Fady Samuel
On 2016/02/20 00:55:20, Mark Dittmer wrote: > https://codereview.chromium.org/1703163002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc > File content/common/gpu/gpu_command_buffer_stub.cc (right): > > https://codereview.chromium.org/1703163002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode29 ...
4 years, 10 months ago (2016-02-20 01:15:55 UTC) #21
brettw
On 2016/02/20 01:15:55, Fady Samuel wrote: > As discussed offline with brettw@, I feel like ...
4 years, 10 months ago (2016-02-20 01:25:06 UTC) #22
Mark Dittmer
4 years, 10 months ago (2016-02-22 20:06:20 UTC) #23
On 2016/02/20 01:25:06, brettw wrote:
> On 2016/02/20 01:15:55, Fady Samuel wrote:
> > As discussed offline with brettw@, I feel like we're potentially conflating
> two
> > things here:
> > 
> > 1. Decoupling content/common/gpu from content.
> > 2. Whether the GPU service should know about URLs at all.
> > 
> > I think it might make sense to move GURL to url/ipc (or some other common
> place)
> > since other services will likely want those ParamTraits anyway.
> > 
> > We should, in parallel, discuss in a separate bug, whether it makes sense
for
> > the GPU service to know about URLs at all.
> 
> Yes, my feeling is that we'll need to move ParamTraits<GURL> out of content no
> matter what given the increasing number of separate services we're planning to
> add.
> 
> My opinions on the rest:
> 
>   - Something called a "url" should be a GURL. It does some extra IPC
checking,
> prevents many types of mistakes, makes the intent clear, and avoids
unnecessary
> conversions, etc.
> 
>   - GPU *could* have an "embedder data" thing that Chrome happens to send a
URL
> through. This seems like unnecessary complexity to me. I don't think it will
be
> used for anything else, and the benefit of not depending on url seems quite
low
> for the reduction in clarity. If we find that embedders need other stuff here,
> we should have a more robust system of embedder data (passing a pickle?).

Created https://codereview.chromium.org/1722773002 to, instead, move GURL
ParamTraits to url/. brettw@, piman@ PTAL.

Powered by Google App Engine
This is Rietveld 408576698