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

Issue 5865002: Added native EGL types for pepper platform. (Closed)

Created:
10 years ago by alokp
Modified:
9 years, 6 months ago
CC:
chromium-reviews, brettw
Visibility:
Public.

Description

Added native EGL types for pepper platform. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69311

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -33 lines) Patch
M ppapi/lib/gl/include/EGL/eglplatform.h View 1 1 chunk +4 lines, -33 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
alokp
10 years ago (2010-12-15 18:17:01 UTC) #1
apatrick
lgtm
10 years ago (2010-12-15 18:36:46 UTC) #2
piman
http://codereview.chromium.org/5865002/diff/1/ppapi/lib/gl/include/EGL/eglplatform.h File ppapi/lib/gl/include/EGL/eglplatform.h (right): http://codereview.chromium.org/5865002/diff/1/ppapi/lib/gl/include/EGL/eglplatform.h#newcode73 ppapi/lib/gl/include/EGL/eglplatform.h:73: typedef PP_Module EGLNativeDisplayType; Shouldn't EGLNativeDisplayType be a PP_Instance, and ...
10 years ago (2010-12-15 18:49:35 UTC) #3
alokp
http://codereview.chromium.org/5865002/diff/1/ppapi/lib/gl/include/EGL/eglplatform.h File ppapi/lib/gl/include/EGL/eglplatform.h (right): http://codereview.chromium.org/5865002/diff/1/ppapi/lib/gl/include/EGL/eglplatform.h#newcode73 ppapi/lib/gl/include/EGL/eglplatform.h:73: typedef PP_Module EGLNativeDisplayType; On 2010/12/15 18:49:35, piman wrote: > ...
10 years ago (2010-12-15 18:54:53 UTC) #4
piman
On Wed, Dec 15, 2010 at 10:54 AM, <alokp@chromium.org> wrote: > > > http://codereview.chromium.org/5865002/diff/1/ppapi/lib/gl/include/EGL/eglplatform.h > ...
10 years ago (2010-12-15 19:04:41 UTC) #5
alokp
> Given the semantics we talked about: > - you'll need the PP_Instance when creating ...
10 years ago (2010-12-15 19:27:31 UTC) #6
piman
On Wed, Dec 15, 2010 at 11:27 AM, <alokp@chromium.org> wrote: > Given the semantics we ...
10 years ago (2010-12-15 19:45:30 UTC) #7
alokp
> I thought we decided that Graphics2D would also take an instance. Note that > ...
10 years ago (2010-12-15 20:03:51 UTC) #8
piman
10 years ago (2010-12-16 01:44:59 UTC) #9
On Wed, Dec 15, 2010 at 12:03 PM, <alokp@chromium.org> wrote:

>  I thought we decided that Graphics2D would also take an instance. Note
>> that
>> no matter what you will need the instance when implementing it: you need
>> the
>> instance to be able to create the command buffer context.
>>
>
> Thanks for the heads up. I will change it to PP_Instance.
>
>
>  That's inconsistent with other platforms, and makes the mapping of EGL
>> native types to actual native types very confusing.
>> eglGetDisplay and eglCreateWindowSurface just wrap the native resources.
>> For
>> example with X, you call XOpenDisplay and pass the returned Display to
>> eglGetDisplay, you call XCreateWindow and pass the returned Window to
>> eglCreateWindowSurface.
>> It should be the same with Pepper. You create an instance using pepper
>> APIs
>> (well, it's created for you), and you pass that to eglDisplay.
>>
>
> I totally agree with you on this one, and the current API does exactly this
> except it takes module, which I will change to instance.
>
>
> You create a
>
>> Surface using pepper APIs and you pass that to eglCreateWindowSurface.
>>
>
> I think the inconsistency is coming from the fact that there is no
> equivalent of
> XCreateWindow.


It does, it's the ppapi call to create a surface3d.


> Here are the things I do not like in your proposal:
> 1. We are asking apps to use both pepper 3d api and egl, which supposed to
> wrap
> pepper 3d.
>

It will never completely wrap it and in any case that's expected on other
platforms like I mentioned.


> 2. Once you have created a surface3d, it is confusing to call
> eglCreateWindowSurface again.
>

No, that's the API. Besides, you don't have enough information in the
eglCreateWindowSurface parameters to be able to create the surface3d, e.g.
the dimensions or the pixel format.


> We can iterate over this once I make some more progress on EGL
> implementation.
>
>
>
> http://codereview.chromium.org/5865002/
>

Powered by Google App Engine
This is Rietveld 408576698