зеркало из https://github.com/mozilla/moz-skia.git
Add glReadBuffer to GrGLInterface.
Review URL: http://codereview.appspot.com/4841048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2034 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
d32c5f564e
Коммит
c49d66b04e
|
@ -136,6 +136,7 @@ extern "C" {
|
|||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE *GrGLMatrixModeProc)(GrGLenum mode);
|
||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE *GrGLPixelStoreiProc)(GrGLenum pname, GrGLint param);
|
||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE *GrGLPointSizeProc)(GrGLfloat size);
|
||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE *GrGLReadBufferProc)(GrGLenum src);
|
||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE *GrGLReadPixelsProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height, GrGLenum format, GrGLenum type, GrGLvoid* pixels);
|
||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE *GrGLScissorProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
|
||||
typedef GrGLvoid (GR_GL_FUNCTION_TYPE *GrGLShadeModelProc)(GrGLenum mode);
|
||||
|
@ -291,6 +292,7 @@ struct GrGLInterface {
|
|||
GrGLMatrixModeProc fMatrixMode;
|
||||
GrGLPixelStoreiProc fPixelStorei;
|
||||
GrGLPointSizeProc fPointSize;
|
||||
GrGLReadBufferProc fReadBuffer;
|
||||
GrGLReadPixelsProc fReadPixels;
|
||||
GrGLScissorProc fScissor;
|
||||
GrGLShadeModelProc fShadeModel;
|
||||
|
|
|
@ -313,7 +313,8 @@ bool GrGLInterface::validate(GrEngine engine) const {
|
|||
if (kDesktop_GrGLBinding == fBindingsExported &&
|
||||
(NULL == fLineWidth ||
|
||||
NULL == fGetTexLevelParameteriv ||
|
||||
NULL == fDrawBuffer)) {
|
||||
NULL == fDrawBuffer ||
|
||||
NULL == fReadBuffer)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -77,6 +77,7 @@ void GrGLSetDefaultGLInterface() {
|
|||
NULL, // glMatrixMode
|
||||
glPixelStorei,
|
||||
NULL, // glPointSize
|
||||
NULL, // glReadBuffer
|
||||
glReadPixels,
|
||||
glScissor,
|
||||
NULL, // glShadeModel
|
||||
|
|
|
@ -76,6 +76,7 @@ void GrGLSetDefaultGLInterface() {
|
|||
gDefaultInterface.fMatrixMode = glMatrixMode;
|
||||
gDefaultInterface.fPointSize = glPointSize;
|
||||
gDefaultInterface.fPixelStorei = glPixelStorei;
|
||||
gDefaultInterface.fReadBuffer = NULL;
|
||||
gDefaultInterface.fReadPixels = glReadPixels;
|
||||
gDefaultInterface.fScissor = glScissor;
|
||||
gDefaultInterface.fShadeModel = glShadeModel;
|
||||
|
|
|
@ -77,6 +77,7 @@ void GrGLSetDefaultGLInterface() {
|
|||
gDefaultInterface.fMatrixMode = glMatrixMode;
|
||||
gDefaultInterface.fPointSize = glPointSize;
|
||||
gDefaultInterface.fPixelStorei = glPixelStorei;
|
||||
gDefaultInterface.fReadBuffer = glReadBuffer;
|
||||
gDefaultInterface.fReadPixels = glReadPixels;
|
||||
gDefaultInterface.fScissor = glScissor;
|
||||
gDefaultInterface.fShadeModel = glShadeModel;
|
||||
|
|
|
@ -91,6 +91,7 @@ void GrGLSetDefaultGLInterface() {
|
|||
gDefaultInterface.fMatrixMode = glMatrixMode;
|
||||
gDefaultInterface.fPointSize = glPointSize;
|
||||
gDefaultInterface.fPixelStorei = glPixelStorei;
|
||||
gDefaultInterface.fReadBuffer = glReadBuffer;
|
||||
gDefaultInterface.fReadPixels = glReadPixels;
|
||||
gDefaultInterface.fScissor = glScissor;
|
||||
gDefaultInterface.fShadeModel = glShadeModel;
|
||||
|
|
|
@ -93,6 +93,7 @@ void GrGLSetDefaultGLInterface() {
|
|||
gDefaultInterface.fMatrixMode = glMatrixMode;
|
||||
gDefaultInterface.fPointSize = glPointSize;
|
||||
gDefaultInterface.fPixelStorei = glPixelStorei;
|
||||
gDefaultInterface.fReadBuffer = glReadBuffer;
|
||||
gDefaultInterface.fReadPixels = glReadPixels;
|
||||
gDefaultInterface.fScissor = glScissor;
|
||||
gDefaultInterface.fShadeModel = glShadeModel;
|
||||
|
|
|
@ -72,6 +72,7 @@ void GrGLSetDefaultGLInterface() {
|
|||
gDefaultInterface.fMatrixMode = glMatrixMode;
|
||||
gDefaultInterface.fPixelStorei = glPixelStorei;
|
||||
gDefaultInterface.fPointSize = glPointSize;
|
||||
gDefaultInterface.fReadBuffer = glReadBuffer;
|
||||
gDefaultInterface.fReadPixels = glReadPixels;
|
||||
gDefaultInterface.fScissor = glScissor;
|
||||
gDefaultInterface.fShadeModel = glShadeModel;
|
||||
|
|
Загрузка…
Ссылка в новой задаче