aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-25 19:05:12 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-25 19:05:12 +0000
commitc921843d85b4e79857103cdb614f76f123efa7f5 (patch)
treef4cc6f4a3187f3a26a6064afa6437a57070ec417 /gpu/src
parent759b0363dad5c36d5366fd167b9224a46b565f53 (diff)
fixes for some warnings:
- #if of something that was not defined - explicit constructor call for baseclass in copy-constructor of subclass http://code.google.com/p/skia/issues/detail?id=112 git-svn-id: http://skia.googlecode.com/svn/trunk@727 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src')
-rw-r--r--gpu/src/GrGLUtil.cpp2
-rw-r--r--gpu/src/GrGpuGL.cpp6
-rw-r--r--gpu/src/GrGpuGL.h4
-rw-r--r--gpu/src/GrGpuGLShaders.cpp4
-rw-r--r--gpu/src/GrPath.cpp2
5 files changed, 2 insertions, 16 deletions
diff --git a/gpu/src/GrGLUtil.cpp b/gpu/src/GrGLUtil.cpp
index c1ed0f44b7..360e84e263 100644
--- a/gpu/src/GrGLUtil.cpp
+++ b/gpu/src/GrGLUtil.cpp
@@ -104,7 +104,7 @@ extern void GrGLInitExtensions(GrGLExts* exts) {
bool fboFound = false;
#if GR_SUPPORT_GLDESKTOP
- #if GL_VERSION_3_0
+ #if defined(GL_VERSION_3_0) && GL_VERSION_3_0
if (!fboFound && major >= 3) { // all of ARB_fbo is in 3.x
exts->GenFramebuffers = glGenFramebuffers;
exts->BindFramebuffer = glBindFramebuffer;
diff --git a/gpu/src/GrGpuGL.cpp b/gpu/src/GrGpuGL.cpp
index f0c7cff881..ae27189d08 100644
--- a/gpu/src/GrGpuGL.cpp
+++ b/gpu/src/GrGpuGL.cpp
@@ -1166,12 +1166,6 @@ void GrGpuGL::drawNonIndexedHelper(PrimitiveType type,
GR_GL(DrawArrays(gPrimitiveType2GLMode[type], 0, vertexCount));
}
-#if !defined(SK_GL_HAS_COLOR4UB)
-static inline GrFixed byte2fixed(unsigned value) {
- return (value + (value >> 7)) << 8;
-}
-#endif
-
void GrGpuGL::resolveTextureRenderTarget(GrGLTexture* texture) {
GrGLRenderTarget* rt = (GrGLRenderTarget*) texture->asRenderTarget();
diff --git a/gpu/src/GrGpuGL.h b/gpu/src/GrGpuGL.h
index dbc5de3acb..0ba405d457 100644
--- a/gpu/src/GrGpuGL.h
+++ b/gpu/src/GrGpuGL.h
@@ -177,10 +177,6 @@ void gl_version(int* major, int* minor);
#define GrGL_RestoreResetRowLength()
#endif
-#if SK_TextGLType != GL_FIXED
- #define SK_GL_HAS_COLOR4UB
-#endif
-
/*
* Some drivers want the var-int arg to be zero-initialized on input.
*/
diff --git a/gpu/src/GrGpuGLShaders.cpp b/gpu/src/GrGpuGLShaders.cpp
index c7baf1f63e..053479f97b 100644
--- a/gpu/src/GrGpuGLShaders.cpp
+++ b/gpu/src/GrGpuGLShaders.cpp
@@ -192,11 +192,7 @@ static const char* gfshad[] = {
"void main() {\n"
// On Brian's PC laptop with Intel Gfx texture2DProj seems to be broken
// but it works everywhere else tested.
-#if GR_GLSL_2DPROJ_BROKEN
- " gl_FragColor = vColor * texture2D(sTexture, vTexture.xy / vTexture.z);\n"
-#else
" gl_FragColor = vColor * texture2DProj(sTexture, vTexture);\n"
-#endif
"}\n",
diff --git a/gpu/src/GrPath.cpp b/gpu/src/GrPath.cpp
index 7b117ebf41..554b3b915a 100644
--- a/gpu/src/GrPath.cpp
+++ b/gpu/src/GrPath.cpp
@@ -2,7 +2,7 @@
GrPath::GrPath() {}
-GrPath::GrPath(const GrPath& src) {
+GrPath::GrPath(const GrPath& src) : INHERITED() {
}
GrPath::GrPath(GrPathIter& iter) {