summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-10-28 21:00:29 -0700
committerMathias Agopian <mathias@google.com>2009-10-29 16:45:41 -0700
commitdf2d92940550bc68c3c237937bce7ac16d9fa91b (patch)
treea21e5e8b9975cc71a6451739c5cc0e3a025e2c43 /opengl/libagl
parentb0d0de329d73a70e8825ab9a7069b4c56645dc48 (diff)
downloadframeworks_native-df2d92940550bc68c3c237937bce7ac16d9fa91b.zip
frameworks_native-df2d92940550bc68c3c237937bce7ac16d9fa91b.tar.gz
frameworks_native-df2d92940550bc68c3c237937bce7ac16d9fa91b.tar.bz2
return proper error code from eglCreateImageKHR
Diffstat (limited to 'opengl/libagl')
-rw-r--r--opengl/libagl/copybit.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/opengl/libagl/copybit.cpp b/opengl/libagl/copybit.cpp
index 4b9e59b..d73d6dd 100644
--- a/opengl/libagl/copybit.cpp
+++ b/opengl/libagl/copybit.cpp
@@ -74,6 +74,7 @@ private:
static int iterate_done(copybit_region_t const *, copybit_rect_t*) {
return 0;
}
+public:
copybit_rect_t r;
};
@@ -421,6 +422,19 @@ static bool copybit(GLint x, GLint y,
(enables & GGL_ENABLE_DITHER) ?
COPYBIT_ENABLE : COPYBIT_DISABLE);
clipRectRegion it(c);
+
+ LOGD("dst={%d, %d, %d, %p, %p}, "
+ "src={%d, %d, %d, %p, %p}, "
+ "drect={%d,%d,%d,%d}, "
+ "srect={%d,%d,%d,%d}, "
+ "it={%d,%d,%d,%d}, " ,
+ dst.w, dst.h, dst.format, dst.base, dst.handle,
+ src.w, src.h, src.format, src.base, src.handle,
+ drect.l, drect.t, drect.r, drect.b,
+ srect.l, srect.t, srect.r, srect.b,
+ it.r.l, it.r.t, it.r.r, it.r.b
+ );
+
err = copybit->stretch(copybit, &dst, &src, &drect, &srect, &it);
}
if (err != NO_ERROR) {