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

Issue 702713003: Add casts for EGLNativeDisplayType to XDisplay to use X functions with OZONE. (Closed)

Created:
6 years, 1 month ago by ostap
Modified:
6 years, 1 month ago
CC:
chromium-reviews, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add casts for EGLNativeDisplayType to XDisplay to use X functions with OZONE. OZONE build defines EGLNativeDisplayType like intptr_t . It requires reinterpret custs to be used with X functions. BUG=361137

Patch Set 1 #

Patch Set 2 : Use ::Display #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -2 lines) Patch
M ui/gl/gl_bindings.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_surface_x11.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
ostap
6 years, 1 month ago (2014-11-11 20:35:30 UTC) #2
piman
lgtm
6 years, 1 month ago (2014-11-11 21:23:27 UTC) #4
spang
What are you doing that gets you gl_surface_x11.cc with use_ozone=1 ? This isn't expected to ...
6 years, 1 month ago (2014-11-11 21:26:32 UTC) #5
ostap
On 2014/11/11 21:26:32, spang wrote: > What are you doing that gets you gl_surface_x11.cc with ...
6 years, 1 month ago (2014-11-11 22:28:08 UTC) #6
spang
On 2014/11/11 22:28:08, ostap wrote: > On 2014/11/11 21:26:32, spang wrote: > > What are ...
6 years, 1 month ago (2014-11-11 23:04:57 UTC) #7
ostap
On 2014/11/11 23:04:57, spang wrote: > On 2014/11/11 22:28:08, ostap wrote: > > On 2014/11/11 ...
6 years, 1 month ago (2014-11-11 23:20:37 UTC) #8
spang
On 2014/11/11 23:20:37, ostap wrote: > On 2014/11/11 23:04:57, spang wrote: > > On 2014/11/11 ...
6 years, 1 month ago (2014-11-11 23:29:14 UTC) #9
kalyank
On 2014/11/11 23:29:14, spang wrote: > On 2014/11/11 23:20:37, ostap wrote: > > On 2014/11/11 ...
6 years, 1 month ago (2014-11-11 23:31:49 UTC) #10
ostap
On 2014/11/11 23:31:49, kalyank wrote: > On 2014/11/11 23:29:14, spang wrote: > > On 2014/11/11 ...
6 years, 1 month ago (2014-11-12 16:11:42 UTC) #11
kalyank
> Should it be implemented for egl only, or it would be nice to have ...
6 years, 1 month ago (2014-11-12 16:43:44 UTC) #12
ostap
6 years, 1 month ago (2014-11-12 18:04:53 UTC) #13
On 2014/11/12 16:43:44, kalyank wrote:
> > Should it be implemented for egl only, or it would be nice to have glx
> > implementation also?
> 
> Hi Ostap,
> 
> >>I shouldn't enable both use_x11 and use_ozone
> Ya, the goal of Ozone is to do a run time binding of the platform rather than
a
> compile time. So, you shouldn't enable
> use_x11.If you want to look at an example implementation, check ozone
> implementations under ui/ozone/platform or
> https://github.com/01org/ozone-wayland

Thanks. I think I've got an idea.

Powered by Google App Engine
This is Rietveld 408576698