WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
43858
Add support for BGRA pixel formats to GraphicsContext3D
https://bugs.webkit.org/show_bug.cgi?id=43858
Summary
Add support for BGRA pixel formats to GraphicsContext3D
Stephen White
Reported
2010-08-11 09:32:28 PDT
Add support for BGRA pixel formats to GraphicsContext3D
Attachments
Patch
(7.09 KB, patch)
2010-08-11 09:36 PDT
,
Stephen White
no flags
Details
Formatted Diff
Diff
Patch
(6.98 KB, patch)
2010-08-11 15:54 PDT
,
Stephen White
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Stephen White
Comment 1
2010-08-11 09:36:56 PDT
Created
attachment 64127
[details]
Patch
James Robinson
Comment 2
2010-08-11 10:19:49 PDT
Comment on
attachment 64127
[details]
Patch
> + // FIXME: This should be made pure virtual, once the chrome side change > + // has landed. > + virtual bool supportsBGRA() { return true; }
Land the chrome side (implementation) first and you won't have to do this. You'll temporarily have an uncallable function definition in chromium land, but that's OK. I think this looks fine.
Stephen White
Comment 3
2010-08-11 15:52:33 PDT
(In reply to
comment #2
)
> (From update of
attachment 64127
[details]
) > > + // FIXME: This should be made pure virtual, once the chrome side change > > + // has landed. > > + virtual bool supportsBGRA() { return true; } > > Land the chrome side (implementation) first and you won't have to do this. You'll temporarily have an uncallable function definition in chromium land, but that's OK.
Good idea. Done.
Stephen White
Comment 4
2010-08-11 15:54:11 PDT
Created
attachment 64172
[details]
Patch
James Robinson
Comment 5
2010-08-11 16:03:43 PDT
I think you need implementations in GraphicsContext3DQt.cpp and GraphicsContext3DMac.mm or the builds on those platforms will break. Otherwise, this looks good to me.
Stephen White
Comment 6
2010-08-11 16:08:46 PDT
(In reply to
comment #5
)
> I think you need implementations in GraphicsContext3DQt.cpp and GraphicsContext3DMac.mm or the builds on those platforms will break. Otherwise, this looks good to me.
There's an implementation in GraphicsContext3D.cpp for !PLATFORM(CHROMIUM).
David Levin
Comment 7
2010-08-11 16:24:34 PDT
Comment on
attachment 64172
[details]
Patch r=me (I'm not setting r+ so that the ews bots will still run your patch through them, but consider this to be r+ by me). Please make sure to rev DEPS (WebKit/chromium/DEPS) to pick up the necessary chromium change.
> Index: WebKit/chromium/src/WebGraphicsContext3DDefaultImpl.cpp > +bool WebGraphicsContext3DDefaultImpl::supportsBGRA() > +{ > + // Supported since OpenGL 1.2. However, glTexImage2D() must be modified > + // to translate the internalFormat from GL_BGRA to GL_RGBA, since the > + // former is not accepted by desktop GL. Return false until this is done.
nit: WebKit uses single spaces after "."
James Robinson
Comment 8
2010-08-11 22:53:45 PDT
Comment on
attachment 64172
[details]
Patch Chromium side's landed, flipping cq bit.
WebKit Commit Bot
Comment 9
2010-08-12 00:00:59 PDT
Comment on
attachment 64172
[details]
Patch Clearing flags on attachment: 64172 Committed
r65221
: <
http://trac.webkit.org/changeset/65221
>
WebKit Commit Bot
Comment 10
2010-08-12 00:01:04 PDT
All reviewed patches have been landed. Closing bug.
David Levin
Comment 11
2010-08-12 00:15:09 PDT
This broke the snow leopard release build. Within minutes after it was submitted, this was noticeable.
David Levin
Comment 12
2010-08-12 00:28:46 PDT
(In reply to
comment #11
)
> This broke the snow leopard release build. Within minutes after it was submitted, this was noticeable.
As jamesr pointed out, this is due to a missing return value here: 819 #if !PLATFORM(CHROMIUM) 820 GraphicsContext3D::supportsBGRA() Also, please consider fixing:
> Index: WebKit/chromium/src/WebGraphicsContext3DDefaultImpl.cpp > +bool WebGraphicsContext3DDefaultImpl::supportsBGRA() > +{ > + // Supported since OpenGL 1.2. However, glTexImage2D() must be modified > + // to translate the internalFormat from GL_BGRA to GL_RGBA, since the > + // former is not accepted by desktop GL. Return false until this is done.
nit: WebKit uses single spaces after "." r=me with these addressed (mostly the build break but the spaces issue would be nice).
Stephen White
Comment 13
2010-08-12 08:27:18 PDT
Committed
r65247
: <
http://trac.webkit.org/changeset/65247
>
WebKit Review Bot
Comment 14
2010-08-12 11:15:09 PDT
http://trac.webkit.org/changeset/65247
might have broken Leopard Intel Debug (Tests)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug