Closed
Bug 904330
Opened 11 years ago
Closed 11 years ago
GLContext extension (group) queries renaming
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: guillaume.abadie, Assigned: guillaume.abadie)
References
Details
Attachments
(5 files)
10.20 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
8.65 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
23.65 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
2.56 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
941 bytes,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
Switch
IsExtensionSupported(ARB_draw_buffers)
by:
IsSupported(GLExtension::ARB_draw_buffers)
And
IsExtensionSupported(XXX_draw_buffers)
by:
IsSupported(GLFeature::draw_buffers)
Comment 1•11 years ago
|
||
(In reply to Guillaume Abadie from comment #0)
> Switch
> IsExtensionSupported(ARB_draw_buffers)
> by:
> IsSupported(GLExtension::ARB_draw_buffers)
I don't see any reason to change IsExtensionSupported. Testing extensions and testing features are different things, we don't need to have them using the same interface.
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #1)
> (In reply to Guillaume Abadie from comment #0)
> > Switch
> > IsExtensionSupported(ARB_draw_buffers)
> > by:
> > IsSupported(GLExtension::ARB_draw_buffers)
>
> I don't see any reason to change IsExtensionSupported. Testing extensions
> and testing features are different things, we don't need to have them using
> the same interface.
That was just a subjection from jgilbert to have similar mechanism for Extension a Features. But I can just do the second one, I don't really mind. The only thing is we should leave the gl namespace, because the mozilla::gl::GLContext is redundant.
So the enumeration for features will directly be mozilla::GLFeature::foo_bar.
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #792271 -
Flags: review?(jgilbert)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #792273 -
Flags: review?(jgilbert)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #792274 -
Flags: review?(jgilbert)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #792275 -
Flags: review?(jgilbert)
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #792291 -
Flags: review?(jgilbert)
Comment 8•11 years ago
|
||
Comment on attachment 792271 [details] [diff] [review]
patch step 1 - revision 1: Add mozilla::GLFeature
Review of attachment 792271 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/gl/GLContext.h
@@ +86,5 @@
> +/** GLFeature::Enum
> + * We don't use typed enum to keep the implicit integer conversion.
> + * This enum should be sorted by name.
> + */
> +namespace GLFeature {
This is better as mozilla::gl::Feature, or possibly GLContext::Feature. I think I like GLContext::Feature best.
@@ +561,5 @@
> +
> +// -----------------------------------------------------------------------------
> +// Feature queries
> +/*
> + * This mecahnism introduces a new way to check if a OpenGL feature is
'mechanism'
@@ +562,5 @@
> +// -----------------------------------------------------------------------------
> +// Feature queries
> +/*
> + * This mecahnism introduces a new way to check if a OpenGL feature is
> + * supported, regardless if it is supported by an extension or natively by
s/if/of whether/
::: gfx/gl/GLContextExtensionGroupQueries.cpp
@@ +284,3 @@
>
> + MOZ_ASSERT(feature < GLFeature::EnumMax,
> + "GLContext::GetFeatureInfoInfo : unknown <extensionGroup>");
s/extensionGroup/feature/
@@ +311,2 @@
>
> return profileVersion && version >= profileVersion;
Note that if `profileVersion` is zero, it means that no version of the profile added support for the feature. (Or rather, that the feature is was never added to any version of the profile requested)
Attachment #792271 -
Flags: review?(jgilbert) → review+
Updated•11 years ago
|
Attachment #792273 -
Flags: review?(jgilbert) → review+
Updated•11 years ago
|
Attachment #792274 -
Flags: review?(jgilbert) → review+
Updated•11 years ago
|
Attachment #792275 -
Flags: review?(jgilbert) → review+
Updated•11 years ago
|
Attachment #792291 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Jeff Gilbert [:jgilbert] from comment #8)
> Comment on attachment 792271 [details] [diff] [review]
> patch step 1 - revision 1: Add mozilla::GLFeature
>
> Review of attachment 792271 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: gfx/gl/GLContext.h
> @@ +86,5 @@
> > +/** GLFeature::Enum
> > + * We don't use typed enum to keep the implicit integer conversion.
> > + * This enum should be sorted by name.
> > + */
> > +namespace GLFeature {
>
> This is better as mozilla::gl::Feature, or possibly GLContext::Feature. I
> think I like GLContext::Feature best.
mozilla::gl::Feature is not verygood, because with a using namespace we would have collisions. GLContext::Feature is maybe not good either, because that would mean that the code have to be in GLContext.h, where like this, the enumeration can be move into a separated .h. I'm going to put back GLFeature in mozilla::gl.
>
> @@ +561,5 @@
> > +
> > +// -----------------------------------------------------------------------------
> > +// Feature queries
> > +/*
> > + * This mecahnism introduces a new way to check if a OpenGL feature is
>
> 'mechanism'
Oups...
>
> @@ +562,5 @@
> > +// -----------------------------------------------------------------------------
> > +// Feature queries
> > +/*
> > + * This mecahnism introduces a new way to check if a OpenGL feature is
> > + * supported, regardless if it is supported by an extension or natively by
>
> s/if/of whether/
fixed!
>
> ::: gfx/gl/GLContextExtensionGroupQueries.cpp
> @@ +284,3 @@
> >
> > + MOZ_ASSERT(feature < GLFeature::EnumMax,
> > + "GLContext::GetFeatureInfoInfo : unknown <extensionGroup>");
>
> s/extensionGroup/feature/
Oups...
>
> @@ +311,2 @@
> >
> > return profileVersion && version >= profileVersion;
>
> Note that if `profileVersion` is zero, it means that no version of the
> profile added support for the feature. (Or rather, that the feature is was
> never added to any version of the profile requested)
Ok!
Assignee | ||
Comment 10•11 years ago
|
||
Tbpl: https://tbpl.mozilla.org/?tree=Try&rev=4a43bd815af7
Landing on inbound:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1eed6186b3e1
https://hg.mozilla.org/integration/mozilla-inbound/rev/01b8243b60bb
https://hg.mozilla.org/integration/mozilla-inbound/rev/34c6dcbd6fc7
https://hg.mozilla.org/integration/mozilla-inbound/rev/69b03cba9f14
https://hg.mozilla.org/integration/mozilla-inbound/rev/d0e7c8687feb
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1eed6186b3e1
https://hg.mozilla.org/mozilla-central/rev/01b8243b60bb
https://hg.mozilla.org/mozilla-central/rev/34c6dcbd6fc7
https://hg.mozilla.org/mozilla-central/rev/69b03cba9f14
https://hg.mozilla.org/mozilla-central/rev/d0e7c8687feb
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Comment 12•11 years ago
|
||
Can we back this patch out? this bug has caused a regression in bug 908449, which is a b2g smoketest blocker on master/mozilla-central.
Flags: needinfo?(ryanvm)
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Tony Chung [:tchung] from comment #12)
> Can we back this patch out? this bug has caused a regression in bug
> 908449, which is a b2g smoketest blocker on master/mozilla-central.
Which one? This would need backout many WebGL 2 patches... And as I see, we are not sure this patch has caused the problem.
Cauted from bug 908449:
> Talked with jgilbert - he thinks bug 904330 is probably the root cause.
Comment 14•11 years ago
|
||
(In reply to Tony Chung [:tchung] from comment #12)
> Can we back this patch out? this bug has caused a regression in bug
> 908449, which is a b2g smoketest blocker on master/mozilla-central.
No. Let's just fix the regression instead.
As Guillaume says, a large number of dependencies on this bug has already landed. The churn would be more dangerous than just spot-fixing.
Updated•11 years ago
|
Flags: needinfo?(ryanvm)
You need to log in
before you can comment on or make changes to this bug.
Description
•