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

Issue 7770002: gfx::Compositor: SchedulePaint. (Closed)

Created:
9 years, 3 months ago by sadrul
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Ian Vollick, Ben Goodger (Google)
Visibility:
Public.

Description

gfx::Compositor: SchedulePaint. Add CompositorDelegate as an interface between the compositor and its owner, and implement SchedulePaint through the delegate. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99899

Patch Set 1 #

Total comments: 2

Patch Set 2 : wayland #

Patch Set 3 : USE_X11 #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 7

Patch Set 6 : CompositorDelegate #

Patch Set 7 : fix aura, win compile #

Total comments: 4

Patch Set 8 : . #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -39 lines) Patch
M aura/demo/demo_main.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M aura/desktop.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -5 lines 0 comments Download
M aura/desktop.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -3 lines 0 comments Download
M aura/window_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M ui/gfx/compositor/compositor.h View 1 2 3 4 5 6 7 8 4 chunks +18 lines, -3 lines 0 comments Download
M ui/gfx/compositor/compositor.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/compositor/compositor_gl.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
ui/gfx/compositor/compositor_gl.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -9 lines 0 comments Download
M ui/gfx/compositor/compositor_win.cc View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -12 lines 0 comments Download
M views/aura_desktop/aura_desktop_main.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M views/widget/native_widget_gtk.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M views/widget/native_widget_win.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M views/widget/native_widget_win.cc View 1 2 3 4 5 6 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
sadrul
This is an alternate CL for: http://codereview.chromium.org/7766002/. This is necessary for aura.
9 years, 3 months ago (2011-09-05 01:36:51 UTC) #1
jonathan.backer
LGTM This breaks the Wayland port (but so did the other CL ;-) http://codereview.chromium.org/7770002/diff/1/ui/gfx/compositor/compositor_gl.cc File ...
9 years, 3 months ago (2011-09-06 12:25:37 UTC) #2
sadrul
I have added a check for USE_WAYLAND (I was going to use USE_X11, but I ...
9 years, 3 months ago (2011-09-06 13:51:44 UTC) #3
sadrul
On 2011/09/06 13:51:44, sadrul wrote: > I have added a check for USE_WAYLAND (I was ...
9 years, 3 months ago (2011-09-06 13:58:31 UTC) #4
sky
I spoke with Dan about doing something like this a while ago and he indicated ...
9 years, 3 months ago (2011-09-06 16:08:23 UTC) #5
sadrul
On 2011/09/06 16:08:23, sky wrote: > I spoke with Dan about doing something like this ...
9 years, 3 months ago (2011-09-06 16:14:41 UTC) #6
sky
On Tue, Sep 6, 2011 at 9:14 AM, <sadrul@chromium.org> wrote: > On 2011/09/06 16:08:23, sky ...
9 years, 3 months ago (2011-09-06 16:17:25 UTC) #7
sadrul
On 2011/09/06 16:17:25, sky wrote: > On Tue, Sep 6, 2011 at 9:14 AM, <mailto:sadrul@chromium.org> ...
9 years, 3 months ago (2011-09-06 16:20:51 UTC) #8
sky
Good point. -Scott
9 years, 3 months ago (2011-09-06 16:56:33 UTC) #9
sadrul
On 2011/09/06 16:56:33, sky wrote: > Good point. > > -Scott I have added an ...
9 years, 3 months ago (2011-09-06 17:26:52 UTC) #10
sadrul
http://codereview.chromium.org/7770002/diff/6028/ui/gfx/compositor/compositor_gl.cc File ui/gfx/compositor/compositor_gl.cc (right): http://codereview.chromium.org/7770002/diff/6028/ui/gfx/compositor/compositor_gl.cc#newcode498 ui/gfx/compositor/compositor_gl.cc:498: owner()->PaintNow(); This will actually be a PostTask
9 years, 3 months ago (2011-09-06 17:27:05 UTC) #11
sadrul
(this doesn't compile yet! Put up for review to get early feedback)
9 years, 3 months ago (2011-09-06 17:27:42 UTC) #12
sky
http://codereview.chromium.org/7770002/diff/6028/ui/gfx/compositor/compositor.h File ui/gfx/compositor/compositor.h (right): http://codereview.chromium.org/7770002/diff/6028/ui/gfx/compositor/compositor.h#newcode67 ui/gfx/compositor/compositor.h:67: class COMPOSITOR_EXPORT CompositorOwner { Call this CompositorDelegate http://codereview.chromium.org/7770002/diff/6028/ui/gfx/compositor/compositor.h#newcode70 ui/gfx/compositor/compositor.h:70: ...
9 years, 3 months ago (2011-09-06 17:39:01 UTC) #13
sadrul
I have added an implementation for windows as well and sent to the trybots. But ...
9 years, 3 months ago (2011-09-06 18:13:23 UTC) #14
sadrul
Added fix for aura. With this change, there needs to be a UI message-loop before ...
9 years, 3 months ago (2011-09-06 18:36:58 UTC) #15
sky
http://codereview.chromium.org/7770002/diff/13001/aura/desktop.cc File aura/desktop.cc (left): http://codereview.chromium.org/7770002/diff/13001/aura/desktop.cc#oldcode41 aura/desktop.cc:41: MessageLoop main_message_loop(MessageLoop::TYPE_UI); I actually just had problems with this ...
9 years, 3 months ago (2011-09-06 20:10:07 UTC) #16
sky
http://codereview.chromium.org/7770002/diff/13001/ui/gfx/compositor/compositor_win.cc File ui/gfx/compositor/compositor_win.cc (right): http://codereview.chromium.org/7770002/diff/13001/ui/gfx/compositor/compositor_win.cc#newcode505 ui/gfx/compositor/compositor_win.cc:505: delegate()->ScheduleCompositorPaint(); Both implementations are the same. Promote it to ...
9 years, 3 months ago (2011-09-06 20:12:36 UTC) #17
sadrul
http://codereview.chromium.org/7770002/diff/13001/aura/desktop.cc File aura/desktop.cc (left): http://codereview.chromium.org/7770002/diff/13001/aura/desktop.cc#oldcode41 aura/desktop.cc:41: MessageLoop main_message_loop(MessageLoop::TYPE_UI); On 2011/09/06 20:10:07, sky wrote: > I ...
9 years, 3 months ago (2011-09-06 21:50:11 UTC) #18
sky
9 years, 3 months ago (2011-09-06 22:40:20 UTC) #19
LGTM

Powered by Google App Engine
This is Rietveld 408576698