Closed Bug 807500 Opened 12 years ago Closed 11 years ago

Add the minimum set of required GL methods to GLContext for Skia/Ganesh use

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: gw280, Unassigned)

References

Details

Attachments

(1 file)

For some reason, this isn't in GLContext. Despite Benoit's claims, it is in the GLES2 spec. The function is required by Ganesh.
I think it would make sense to specify which functionality require that, or depended bug.
Ganesh needs a whole whack of additional GL methods on the GLContext class. I think this is the minimum set required.
Attachment #708881 - Flags: review?(jgilbert)
Summary: GLContext needs a fTexParameteriv method → Add the minimum set of required GL methods to GLContext for Skia/Ganesh use
Comment on attachment 708881 [details] [diff] [review]
Add a bunch of required GL wrapper methods for Skia

GetTexParameteriv is identical to GetTexParameteri on ES (I guess without some extensions), but sure.

Query stuff is definitely in extensions on ES -- they may not always be present.  Likewise DrawBuffer[s]. (that's MRT)  We'll need to do something about those.
Query/Buffers are only used on desktop and so the symbols are only added in the if (desktop) block.
https://mxr.mozilla.org/mozilla-central/source/gfx/skia/src/gpu/gl/GrGLInterface.cpp is the relevant file in Skia that states which GL functions are required on which configurations.
Blocks: 751418
Comment on attachment 708881 [details] [diff] [review]
Add a bunch of required GL wrapper methods for Skia

Switching to Benoit as Jeff is apparently travelling atm.
Attachment #708881 - Flags: review?(jgilbert) → review?(bjacob)
Attachment #708881 - Flags: review?(bjacob) → review+
https://hg.mozilla.org/mozilla-central/rev/9441307a79de
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: