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

Issue 10078018: Final(?) eradications of GDK / GTK from the GPU process. (Closed)

Created:
8 years, 8 months ago by Chris Evans
Modified:
8 years, 8 months ago
CC:
chromium-reviews, sadrul, erikwright (departed), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Final(?) eradications of GDK / GTK from the GPU process. TBR=darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133285

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M base/message_pump_gtk.cc View 1 chunk +7 lines, -1 line 1 comment Download
M content/gpu/gpu_main.cc View 1 chunk +0 lines, -3 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
Chris Evans
Al, I think this might be worthwhile as an additional simplification?
8 years, 8 months ago (2012-04-19 19:10:21 UTC) #1
apatrick_chromium
I think this will be okay but seeing some try runs for all our various ...
8 years, 8 months ago (2012-04-19 19:54:10 UTC) #2
Chris Evans
On 2012/04/19 19:54:10, apatrick_chromium wrote: > I think this will be okay but seeing some ...
8 years, 8 months ago (2012-04-19 21:17:49 UTC) #3
apatrick_chromium
I see GLX failures on linux_chromeos. extension "GLX" missing on display ":9.0". [13284:13284:0419/132813:2265785398:ERROR:gl_surface_glx.cc(60)] glxQueryVersion failed ...
8 years, 8 months ago (2012-04-19 21:26:53 UTC) #4
Ken Russell (switch to Gerrit)
LGTM too.
8 years, 8 months ago (2012-04-20 17:57:41 UTC) #5
Chris Evans
On 2012/04/20 17:57:41, kbr wrote: > LGTM too. Thx. TBR=darin and landing because none of ...
8 years, 8 months ago (2012-04-20 22:29:25 UTC) #6
darin (slow to review)
Are we using message_pump_gtk.cc in the GPU process?? https://chromiumcodereview.appspot.com/10078018/diff/1/base/message_pump_gtk.cc File base/message_pump_gtk.cc (right): https://chromiumcodereview.appspot.com/10078018/diff/1/base/message_pump_gtk.cc#newcode89 base/message_pump_gtk.cc:89: Display* ...
8 years, 8 months ago (2012-04-23 16:52:56 UTC) #7
cevans
On Mon, Apr 23, 2012 at 9:52 AM, <darin@chromium.org> wrote: > Are we using message_pump_gtk.cc ...
8 years, 8 months ago (2012-04-23 23:36:27 UTC) #8
darin (slow to review)
On Mon, Apr 23, 2012 at 4:36 PM, Chris Evans <cevans@google.com> wrote: > On Mon, ...
8 years, 8 months ago (2012-04-24 03:05:05 UTC) #9
cevans
On Mon, Apr 23, 2012 at 8:05 PM, Darin Fisher <darin@chromium.org> wrote: > On Mon, ...
8 years, 8 months ago (2012-04-24 05:08:30 UTC) #10
darin (slow to review)
On Mon, Apr 23, 2012 at 10:08 PM, Chris Evans <cevans@google.com> wrote: > On Mon, ...
8 years, 8 months ago (2012-04-25 06:39:14 UTC) #11
cevans
On Tue, Apr 24, 2012 at 11:39 PM, Darin Fisher <darin@chromium.org> wrote: > > > ...
8 years, 8 months ago (2012-04-26 17:22:56 UTC) #12
darin (slow to review)
8 years, 8 months ago (2012-04-26 18:41:21 UTC) #13
On Thu, Apr 26, 2012 at 10:22 AM, Chris Evans <cevans@google.com> wrote:

> On Tue, Apr 24, 2012 at 11:39 PM, Darin Fisher <darin@chromium.org> wrote:
>
>>
>>
>> On Mon, Apr 23, 2012 at 10:08 PM, Chris Evans <cevans@google.com> wrote:
>>
>>> On Mon, Apr 23, 2012 at 8:05 PM, Darin Fisher <darin@chromium.org>wrote:
>>>
>>>> On Mon, Apr 23, 2012 at 4:36 PM, Chris Evans <cevans@google.com> wrote:
>>>>
>>>>> On Mon, Apr 23, 2012 at 9:52 AM, <darin@chromium.org> wrote:
>>>>>
>>>>>> Are we using message_pump_gtk.cc in the GPU process??
>>>>>>
>>>>>
>>>>> We actually were until I landed a separate change last week. I think
>>>>> maybe the GPU process used to be architected differently (defer to Ken,
Al)
>>>>> but it certainly doesn't need it any more.
>>>>>
>>>>
>>>> There is a type enum that you can use to decide what kind of pump to
>>>> allocate when you create a MessageLoop.
>>>>
>>>
>>> Yes, that's what I changed last week. The old type was "UI" -- perhaps
>>> required historically but not any more. I backed it down to "DEFAULT" --
>>> bye bye GTK.
>>>
>>
>> Good :)
>>
>>
>>>
>>> If there is shared code that needs to be a GTK message loop sometimes
>>>> and other times a default message loop, then we could perhaps parameterize
>>>> the code accordingly.
>>>>
>>>> MessageLoop::InitMessagePumpForUIFactory seems to be another way to
>>>> alter the constructed MessagePump for a process.
>>>>
>>>>
>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> https://chromiumcodereview.**appspot.com/10078018/diff/1/**
>>>>>>
base/message_pump_gtk.cc<https://chromiumcodereview.appspot.com/10078018/diff/1/base/message_pump_gtk.cc>
>>>>>> File base/message_pump_gtk.cc (right):
>>>>>>
>>>>>> https://chromiumcodereview.**appspot.com/10078018/diff/1/**
>>>>>>
base/message_pump_gtk.cc#**newcode89<https://chromiumcodereview.appspot.com/10078018/diff/1/base/message_pump_gtk.cc#newcode89>
>>>>>> base/message_pump_gtk.cc:89: Display*
>>>>>> MessagePumpGtk::**GetDefaultXDisplay() {
>>>>>> why do we need to involve a class named *Gtk in code that should never
>>>>>> be using GTK?  can you say more about why this change is needed?
>>>>>>
>>>>>
>>>>> I would prefer to use MessagePumpX::GetDefaultXDisplay() but which one
>>>>> of these things you land at seems to be a compile decision regarding the
>>>>> typedef of MessagePumpForUI. Linux desktop is overall a "gtk" build so
I'm
>>>>> not sure it's legal to mix and match the two underlying pumps on a
>>>>> per-source-file basis?
>>>>>
>>>>
>>>> We can't just change the calling code to call XOpenDisplay(NULL)
>>>> directly?
>>>>
>>>
>>> It used to be this way but apparently it led to
>>> https://code.google.com/p/chromium/issues/detail?id=104248 and the fix
>>> was to centralize access to the Display* on the MessagePumpForUI object.
>>>
>>>
>> Doesn't it seem strange to ask the MessagePumpGtk for the X Display
>> handle?  It seems like if MessagePumpGtk needs to know the X Display handle
>> and other code unrelated to GTK needs to the X Display handle that there
>> should be some lower level common way to get the X Display handle that both
>> can use.
>>
>
> I agree.
>
>
>>
>> Maybe this is worth mentioning to piman since he authored
>> http://codereview.chromium.org/8890042/.
>>
>
> I don't mind taking care of it. I filed
> https://code.google.com/p/chromium/issues/detail?id=125201 and will have
> a look in a few weeks when I'm back from vacation.
>
>
OK, thanks!


>
> Cheers
> Chris
>
>
>> -Darin
>>
>>
>>
>>>
>>>>
>>>>>
>>>>> My change is heading towards a world where the GPU process doesn't
>>>>> land in GDK or GTK code ever. I think we're there now, with this
remaining
>>>>> naming ugly.
>>>>>
>>>>>
>>>>>>
https://chromiumcodereview.**appspot.com/1007<https://chromiumcodereview.apps...
>>>>>
>>>>> *Are we using message_pump_gtk.cc in the GPU process??*
>>>>>
>>>>> 8018/ <https://chromiumcodereview.appspot.com/10078018/>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

Powered by Google App Engine
This is Rietveld 408576698