aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-08 20:36:22 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-08 20:36:22 +0000
commit0efcc37952afb7629a5c905cc597f1cb837b987c (patch)
treee16bc76b8a715fbc3b98edbebfefc692d86fa4f1 /src
parent94e75ee46a569cbcdf61fb7f04ee3a69d3ca0896 (diff)
Remove glBlendEquation and glColorPointer
Review URL: http://codereview.appspot.com/6300075/ git-svn-id: http://skia.googlecode.com/svn/trunk@4216 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/gpu/android/GrGLCreateNativeInterface_android.cpp1
-rw-r--r--src/gpu/gl/GrGLCreateNullInterface.cpp2
-rw-r--r--src/gpu/gl/GrGLDefines.h10
-rw-r--r--src/gpu/gl/GrGLInterface.cpp1
-rw-r--r--src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp1
-rw-r--r--src/gpu/gl/debug/GrGLCreateDebugInterface.cpp2
-rw-r--r--src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp16
-rw-r--r--src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp14
-rw-r--r--src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp13
-rw-r--r--src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp15
10 files changed, 11 insertions, 64 deletions
diff --git a/src/gpu/android/GrGLCreateNativeInterface_android.cpp b/src/gpu/android/GrGLCreateNativeInterface_android.cpp
index 327e56d828..535fa86903 100644
--- a/src/gpu/android/GrGLCreateNativeInterface_android.cpp
+++ b/src/gpu/android/GrGLCreateNativeInterface_android.cpp
@@ -26,7 +26,6 @@ const GrGLInterface* GrGLCreateNativeInterface() {
interface->fBindTexture = glBindTexture;
interface->fBlendColor = glBlendColor;
interface->fBlendFunc = glBlendFunc;
- interface->fBlendEquation = glBlendEquation;
interface->fBufferData = glBufferData;
interface->fBufferSubData = glBufferSubData;
interface->fClear = glClear;
diff --git a/src/gpu/gl/GrGLCreateNullInterface.cpp b/src/gpu/gl/GrGLCreateNullInterface.cpp
index 70e9cee904..bd8ceaac62 100644
--- a/src/gpu/gl/GrGLCreateNullInterface.cpp
+++ b/src/gpu/gl/GrGLCreateNullInterface.cpp
@@ -20,7 +20,6 @@ GrGLvoid GR_GL_FUNCTION_TYPE nullGLBindTexture(GrGLenum target, GrGLuint texture
GrGLvoid GR_GL_FUNCTION_TYPE nullGLBlendColor(GrGLclampf red, GrGLclampf green, GrGLclampf blue, GrGLclampf alpha) {}
GrGLvoid GR_GL_FUNCTION_TYPE nullGLBindFragDataLocation(GrGLuint program, GrGLuint colorNumber, const GrGLchar* name) {}
GrGLvoid GR_GL_FUNCTION_TYPE nullGLBlendFunc(GrGLenum sfactor, GrGLenum dfactor) {}
-GrGLvoid GR_GL_FUNCTION_TYPE nullGLBlendEquation(GrGLenum mode) {}
GrGLvoid GR_GL_FUNCTION_TYPE nullGLBufferData(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* data, GrGLenum usage) {}
GrGLvoid GR_GL_FUNCTION_TYPE nullGLBufferSubData(GrGLenum target, GrGLintptr offset, GrGLsizeiptr size, const GrGLvoid* data) {}
GrGLvoid GR_GL_FUNCTION_TYPE nullGLClear(GrGLbitfield mask) {}
@@ -397,7 +396,6 @@ const GrGLInterface* GrGLCreateNullInterface() {
interface->fBindTexture = nullGLBindTexture;
interface->fBlendColor = nullGLBlendColor;
interface->fBlendFunc = nullGLBlendFunc;
- interface->fBlendEquation = nullGLBlendEquation;
interface->fBufferData = nullGLBufferData;
interface->fBufferSubData = nullGLBufferSubData;
interface->fClear = nullGLClear;
diff --git a/src/gpu/gl/GrGLDefines.h b/src/gpu/gl/GrGLDefines.h
index 9af209ca66..852c0254c7 100644
--- a/src/gpu/gl/GrGLDefines.h
+++ b/src/gpu/gl/GrGLDefines.h
@@ -67,16 +67,6 @@
/* GL_SRC1_ALPHA */
#define GR_GL_ONE_MINUS_SRC1_ALPHA 0x88FB
-/* BlendEquationSeparate */
-#define GR_GL_FUNC_ADD 0x8006
-#define GR_GL_BLEND_EQUATION 0x8009
-#define GR_GL_BLEND_EQUATION_RGB 0x8009 /* same as BLEND_EQUATION */
-#define GR_GL_BLEND_EQUATION_ALPHA 0x883D
-
-/* BlendSubtract */
-#define GR_GL_FUNC_SUBTRACT 0x800A
-#define GR_GL_FUNC_REVERSE_SUBTRACT 0x800B
-
/* Separate Blend Functions */
#define GR_GL_BLEND_DST_RGB 0x80C8
#define GR_GL_BLEND_SRC_RGB 0x80C9
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
index 140b5fd80b..abd4366701 100644
--- a/src/gpu/gl/GrGLInterface.cpp
+++ b/src/gpu/gl/GrGLInterface.cpp
@@ -44,7 +44,6 @@ bool GrGLInterface::validate(GrGLBinding binding) const {
NULL == fBindTexture ||
NULL == fBlendFunc ||
NULL == fBlendColor || // -> GL >= 1.4, ES >= 2.0 or extension
- NULL == fBlendEquation || // -> GL >= 1.4, ES >= 2.0 or extension
NULL == fBufferData ||
NULL == fBufferSubData ||
NULL == fClear ||
diff --git a/src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp b/src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp
index 19c4532737..8cc7ad59ce 100644
--- a/src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp
+++ b/src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp
@@ -46,7 +46,6 @@ const GrGLInterface* GrGLCreateANGLEInterface() {
GR_GET_PROC(GrGLBindTextureProc, BindTexture);
GR_GET_PROC(GrGLBlendColorProc, BlendColor);
GR_GET_PROC(GrGLBlendFuncProc, BlendFunc);
- GR_GET_PROC(GrGLBlendEquationProc, BlendEquation);
GR_GET_PROC(GrGLBufferDataProc, BufferData);
GR_GET_PROC(GrGLBufferSubDataProc, BufferSubData);
GR_GET_PROC(GrGLClearProc, Clear);
diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
index ffeaf89fc0..ebed417bc1 100644
--- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
+++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
@@ -72,7 +72,6 @@ GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindTexture(GrGLenum target, GrGLuint textur
GrGLvoid GR_GL_FUNCTION_TYPE debugGLBlendColor(GrGLclampf red, GrGLclampf green, GrGLclampf blue, GrGLclampf alpha) {}
GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindFragDataLocation(GrGLuint program, GrGLuint colorNumber, const GrGLchar* name) {}
GrGLvoid GR_GL_FUNCTION_TYPE debugGLBlendFunc(GrGLenum sfactor, GrGLenum dfactor) {}
-GrGLvoid GR_GL_FUNCTION_TYPE debugGLBlendEquation(GrGLenum mode) {}
////////////////////////////////////////////////////////////////////////////////
GrGLvoid GR_GL_FUNCTION_TYPE debugGLBufferData(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* data, GrGLenum usage) {
@@ -930,7 +929,6 @@ const GrGLInterface* GrGLCreateDebugInterface() {
interface->fBindTexture = debugGLBindTexture;
interface->fBlendColor = debugGLBlendColor;
interface->fBlendFunc = debugGLBlendFunc;
- interface->fBlendEquation = debugGLBlendEquation;
interface->fBufferData = debugGLBufferData;
interface->fBufferSubData = debugGLBufferSubData;
interface->fClear = debugGLClear;
diff --git a/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp b/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp
index 2ae8782e5c..4735617c00 100644
--- a/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp
+++ b/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp
@@ -51,19 +51,10 @@ const GrGLInterface* GrGLCreateNativeInterface() {
if (ver >= GR_GL_VER(1,4)) {
interface->fBlendColor = glBlendColor;
- interface->fBlendEquation = glBlendEquation;
- } else if (GrGLHasExtensionFromString("GL_ARB_imaging", extStr)) {
+ } else if (GrGLHasExtensionFromString("GL_ARB_imaging", extStr) ||
+ GrGLHasExtensionFromString("GL_EXT_blend_color", extStr)) {
GET_PROC(BlendColor);
- GET_PROC(BlendEquation);
- } else {
- if (GrGLHasExtensionFromString("GL_EXT_blend_color", extStr)) {
- GET_PROC_SUFFIX(BlendColor, EXT);
- }
- if (GrGLHasExtensionFromString("GL_EXT_blend_minmax", extStr) ||
- GrGLHasExtensionFromString("GL_EXT_blend_subtract", extStr)) {
- GET_PROC_SUFFIX(BlendEquation, EXT);
- }
- }
+ }
interface->fBufferData = glBufferData;
interface->fBufferSubData = glBufferSubData;
@@ -71,7 +62,6 @@ const GrGLInterface* GrGLCreateNativeInterface() {
interface->fClearColor = glClearColor;
interface->fClearStencil = glClearStencil;
interface->fColorMask = glColorMask;
- interface->fColorPointer = glColorPointer;
interface->fCompileShader = glCompileShader;
interface->fCompressedTexImage2D = glCompressedTexImage2D;
interface->fCreateProgram = glCreateProgram;
diff --git a/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp b/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp
index fc3e25de73..2f712e3650 100644
--- a/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp
+++ b/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp
@@ -44,18 +44,10 @@ const GrGLInterface* GrGLCreateMesaInterface() {
GR_GL_GET_PROC(BlendFunc);
if (glVer >= GR_GL_VER(1,4) ||
- GrGLHasExtensionFromString("GL_ARB_imaging", extString)) {
+ GrGLHasExtensionFromString("GL_ARB_imaging", extString) ||
+ GrGLHasExtensionFromString("GL_EXT_blend_color", extString)) {
GR_GL_GET_PROC(BlendColor);
- GR_GL_GET_PROC(BlendEquation);
- } else {
- if (GrGLHasExtensionFromString("GL_EXT_blend_color", extString)) {
- GR_GL_GET_PROC_SUFFIX(BlendColor, EXT);
- }
- if (GrGLHasExtensionFromString("GL_EXT_blend_minmax", extString) ||
- GrGLHasExtensionFromString("GL_EXT_blend_subtract", extString)) {
- GR_GL_GET_PROC_SUFFIX(BlendEquation, EXT);
- }
- }
+ }
GR_GL_GET_PROC(BufferData);
GR_GL_GET_PROC(BufferSubData);
diff --git a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp b/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
index 28c2931d10..9edc42505f 100644
--- a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
+++ b/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
@@ -43,17 +43,9 @@ const GrGLInterface* GrGLCreateNativeInterface() {
interface->fBlendFunc = glBlendFunc;
if (glVer >= GR_GL_VER(1,4) ||
- GrGLHasExtensionFromString("GL_ARB_imaging", extString)) {
+ GrGLHasExtensionFromString("GL_ARB_imaging", extString) ||
+ GrGLHasExtensionFromString("GL_EXT_blend_color", extString)) {
GR_GL_GET_PROC(BlendColor);
- GR_GL_GET_PROC(BlendEquation);
- } else {
- if (GrGLHasExtensionFromString("GL_EXT_blend_color", extString)) {
- GR_GL_GET_PROC_SUFFIX(BlendColor, EXT);
- }
- if (GrGLHasExtensionFromString("GL_EXT_blend_minmax", extString) ||
- GrGLHasExtensionFromString("GL_EXT_blend_subtract", extString)) {
- GR_GL_GET_PROC_SUFFIX(BlendEquation, EXT);
- }
}
GR_GL_GET_PROC(BufferData);
@@ -62,7 +54,6 @@ const GrGLInterface* GrGLCreateNativeInterface() {
interface->fClearColor = glClearColor;
interface->fClearStencil = glClearStencil;
interface->fColorMask = glColorMask;
- interface->fColorPointer = glColorPointer;
GR_GL_GET_PROC(CompileShader);
interface->fCompressedTexImage2D = glCompressedTexImage2D;
GR_GL_GET_PROC(CreateProgram);
diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
index 554dd5c1bb..4b55a5d031 100644
--- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
+++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
@@ -44,24 +44,15 @@ const GrGLInterface* GrGLCreateNativeInterface() {
interface->fBlendFunc = glBlendFunc;
if (glVer >= GR_GL_VER(1,4) ||
- GrGLHasExtensionFromString("GL_ARB_imaging", extString)) {
+ GrGLHasExtensionFromString("GL_ARB_imaging", extString) ||
+ GrGLHasExtensionFromString("GL_EXT_blend_color", extString)) {
GR_GL_GET_PROC(BlendColor);
- GR_GL_GET_PROC(BlendEquation);
- } else {
- if (GrGLHasExtensionFromString("GL_EXT_blend_color", extString)) {
- GR_GL_GET_PROC_SUFFIX(BlendColor, EXT);
- }
- if (GrGLHasExtensionFromString("GL_EXT_blend_minmax", extString) ||
- GrGLHasExtensionFromString("GL_EXT_blend_subtract", extString)) {
- GR_GL_GET_PROC_SUFFIX(BlendEquation, EXT);
- }
- }
+ }
interface->fClear = glClear;
interface->fClearColor = glClearColor;
interface->fClearStencil = glClearStencil;
interface->fColorMask = glColorMask;
- interface->fColorPointer = glColorPointer;
interface->fCullFace = glCullFace;
interface->fDeleteTextures = glDeleteTextures;
interface->fDepthMask = glDepthMask;