Today we pass around some subset of GrGLInterface, GLSLGeneration, GrGLVersion, GrGLBinding. We've also lost the ...
12 years, 9 months ago
(2012-02-10 18:50:15 UTC)
#1
Today we pass around some subset of GrGLInterface, GLSLGeneration, GrGLVersion,
GrGLBinding. We've also lost the notion that a single GrGLInterface could
support multiple bindings.
The idea of this change is to encapsulate the various aspects of a GL context in
a single object that can be passed around. This change doesn't push the new type
out to all potential users yet (e.g. bowels of the shader generator).
It centralizes where the binding type (desktop vs es2) of the GL context is
determined and does so using the OpenGL version string rather than assuming only
one bit of GrGLInterface::fBindingsExported is set. (There are some lingering
instances of using fBindingsExported in the shader generator that will be
addressed in a subsequent change).
Issue 5653060: Add GrGLContextInfo
(Closed)
Created 12 years, 9 months ago by bsalomon
Modified 12 years, 9 months ago
Reviewers: TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 16