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

Issue 23438002: Adding functionality to paint and signal buffer swap for ozone surface factory. (Closed)

Created:
7 years, 3 months ago by dnicoara
Modified:
4 years, 2 months ago
CC:
chromium-reviews, rjkroege
Visibility:
Public.

Description

Adding functionality to paint and signal buffer swap for ozone surface factory. OZONE event factory should be a bit more verbose on error. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220632

Patch Set 1 #

Patch Set 2 : Forgot to include check #

Total comments: 10

Patch Set 3 : Address missing AcceleratedWidget and pure virtual comments #

Total comments: 6

Patch Set 4 : Using intptr_t for EGLNativeDisplayType on OZONE #

Total comments: 2

Patch Set 5 : Renamed SwapBuffers to SchedulePageFlip #

Total comments: 2

Patch Set 6 : Removing call to SchedulePageFlip in gl_surface_egl #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -10 lines) Patch
M third_party/khronos/EGL/eglplatform.h View 1 2 3 1 chunk +1 line, -1 line 1 comment Download
M ui/base/ozone/event_factory_ozone.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ui/base/ozone/surface_factory_ozone.h View 1 2 3 4 4 chunks +15 lines, -3 lines 1 comment Download
M ui/base/ozone/surface_factory_ozone.cc View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 2 3 4 5 2 chunks +10 lines, -4 lines 1 comment Download

Messages

Total messages: 22 (1 generated)
dnicoara
7 years, 3 months ago (2013-08-26 19:41:26 UTC) #1
rjkroege
https://codereview.chromium.org/23438002/diff/5001/ui/base/ozone/surface_factory_ozone.h File ui/base/ozone/surface_factory_ozone.h (right): https://codereview.chromium.org/23438002/diff/5001/ui/base/ozone/surface_factory_ozone.h#newcode8 ui/base/ozone/surface_factory_ozone.h:8: #include <EGL/egl.h> this is not a good idea. https://codereview.chromium.org/23438002/diff/5001/ui/base/ozone/surface_factory_ozone.h#newcode14 ...
7 years, 3 months ago (2013-08-26 21:48:08 UTC) #2
dnicoara
https://codereview.chromium.org/23438002/diff/5001/ui/base/ozone/surface_factory_ozone.h File ui/base/ozone/surface_factory_ozone.h (right): https://codereview.chromium.org/23438002/diff/5001/ui/base/ozone/surface_factory_ozone.h#newcode44 ui/base/ozone/surface_factory_ozone.h:44: virtual bool InitializeHardware() = 0; On 2013/08/26 21:48:08, rjkroege ...
7 years, 3 months ago (2013-08-27 14:41:41 UTC) #3
rjkroege
https://codereview.chromium.org/23438002/diff/11001/ui/base/ozone/surface_factory_ozone.cc File ui/base/ozone/surface_factory_ozone.cc (right): https://codereview.chromium.org/23438002/diff/11001/ui/base/ozone/surface_factory_ozone.cc#newcode21 ui/base/ozone/surface_factory_ozone.cc:21: virtual void* GetNativeDisplay() OVERRIDE { return 0; } this ...
7 years, 3 months ago (2013-08-27 16:03:42 UTC) #4
dnicoara
https://codereview.chromium.org/23438002/diff/11001/ui/base/ozone/surface_factory_ozone.cc File ui/base/ozone/surface_factory_ozone.cc (right): https://codereview.chromium.org/23438002/diff/11001/ui/base/ozone/surface_factory_ozone.cc#newcode21 ui/base/ozone/surface_factory_ozone.cc:21: virtual void* GetNativeDisplay() OVERRIDE { return 0; } On ...
7 years, 3 months ago (2013-08-28 14:58:03 UTC) #5
rjkroege
LGTM https://codereview.chromium.org/23438002/diff/17001/ui/gl/gl_surface_egl.cc File ui/gl/gl_surface_egl.cc (right): https://codereview.chromium.org/23438002/diff/17001/ui/gl/gl_surface_egl.cc#newcode372 ui/gl/gl_surface_egl.cc:372: if (!ui::SurfaceFactoryOzone::GetInstance()->SwapBuffers(window_)) { nit: rename per discussion.
7 years, 3 months ago (2013-08-28 18:09:19 UTC) #6
dnicoara
Antoine, could you look over the third_party/khronos change. Thank you. On 2013/08/28 18:09:19, rjkroege wrote: ...
7 years, 3 months ago (2013-08-28 18:30:20 UTC) #7
piman
https://codereview.chromium.org/23438002/diff/22001/ui/gl/gl_surface_egl.cc File ui/gl/gl_surface_egl.cc (right): https://codereview.chromium.org/23438002/diff/22001/ui/gl/gl_surface_egl.cc#newcode372 ui/gl/gl_surface_egl.cc:372: if (!ui::SurfaceFactoryOzone::GetInstance()->SchedulePageFlip(window_)) { This is weird. Why isn't it ...
7 years, 3 months ago (2013-08-28 19:18:57 UTC) #8
dnicoara
On 2013/08/28 19:18:57, piman wrote: > https://codereview.chromium.org/23438002/diff/22001/ui/gl/gl_surface_egl.cc > File ui/gl/gl_surface_egl.cc (right): > > https://codereview.chromium.org/23438002/diff/22001/ui/gl/gl_surface_egl.cc#newcode372 > ...
7 years, 3 months ago (2013-08-28 20:07:19 UTC) #9
piman
On 2013/08/28 20:07:19, dnicoara wrote: > On 2013/08/28 19:18:57, piman wrote: > > https://codereview.chromium.org/23438002/diff/22001/ui/gl/gl_surface_egl.cc > ...
7 years, 3 months ago (2013-08-28 20:44:52 UTC) #10
dnicoara
On 2013/08/28 20:44:52, piman wrote: > On 2013/08/28 20:07:19, dnicoara wrote: > > On 2013/08/28 ...
7 years, 3 months ago (2013-08-28 21:19:41 UTC) #11
piman
On Wed, Aug 28, 2013 at 2:19 PM, <dnicoara@chromium.org> wrote: > On 2013/08/28 20:44:52, piman ...
7 years, 3 months ago (2013-08-28 21:36:37 UTC) #12
vignatti (out of this project)
Hi. In my Ozone Wayland implementation, I need to ask for the EGL library a ...
7 years, 3 months ago (2013-08-29 18:09:34 UTC) #13
dnicoara
On 2013/08/29 18:09:34, vignatti wrote: > Hi. In my Ozone Wayland implementation, I need to ...
7 years, 3 months ago (2013-08-29 19:52:33 UTC) #14
vignatti (out of this project)
On 2013/08/29 19:52:33, dnicoara wrote: > On 2013/08/29 18:09:34, vignatti wrote: > > > https://codereview.chromium.org/23438002/diff/17001/third_party/khronos/EGL/eglplatform.h ...
7 years, 3 months ago (2013-08-29 20:11:07 UTC) #15
dnicoara
Sorry about that. I've had a long discussion with @rjkroege and thanks to him I ...
7 years, 3 months ago (2013-08-29 21:27:14 UTC) #16
piman
lgtm
7 years, 3 months ago (2013-08-29 21:59:02 UTC) #17
rjkroege
https://codereview.chromium.org/23438002/diff/36001/ui/base/ozone/surface_factory_ozone.h File ui/base/ozone/surface_factory_ozone.h (right): https://codereview.chromium.org/23438002/diff/36001/ui/base/ozone/surface_factory_ozone.h#newcode77 ui/base/ozone/surface_factory_ozone.h:77: // Called after the appropriate GL swap buffers command. ...
7 years, 3 months ago (2013-08-30 15:26:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dnicoara@chromium.org/23438002/36001
7 years, 3 months ago (2013-08-30 15:52:34 UTC) #19
commit-bot: I haz the power
Change committed as 220632
7 years, 3 months ago (2013-08-30 19:46:20 UTC) #20
Nico
4 years, 2 months ago (2016-10-10 16:58:03 UTC) #22
Message was sent while issue was closed.
Not sure if we can still change this, but:

https://chromiumcodereview.appspot.com/23438002/diff/36001/third_party/khrono...
File third_party/khronos/EGL/eglplatform.h (right):

https://chromiumcodereview.appspot.com/23438002/diff/36001/third_party/khrono...
third_party/khronos/EGL/eglplatform.h:99: typedef intptr_t EGLNativeDisplayType;
why is this intptr_t instead of void*? The typedefs for all other platforms are
pointers, so ozone being the odd system out is a bit inconvenient (eg you can
initialize an EGLNativeDisplayType with nullptr everywhere but ozone, you can
make an invalid id with reinterpret_cast<EGLNativeDisplayType>(1) everywhere but
ozone, etc)

Powered by Google App Engine
This is Rietveld 408576698