summaryrefslogtreecommitdiff
path: root/opengl/libagl/texture.cpp
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-07-16 07:33:14 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-07-16 07:33:14 -0700
commit7151edd5d83b3b770a0dc77cf52f7fe56b2a3af6 (patch)
tree8512c75b18d91f64188eb9d5fd19ef20135fbc6a /opengl/libagl/texture.cpp
parentae7e313b2e5c833a6bb566165d85f14bc8a624c4 (diff)
parentf13901eaa98241b52062a3ae3b016badce3dee0c (diff)
Merge change 7494
* changes: remove libagl's dependency on gralloc_priv.h
Diffstat (limited to 'opengl/libagl/texture.cpp')
-rw-r--r--opengl/libagl/texture.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp
index d767c31ac8..4d3c2f4381 100644
--- a/opengl/libagl/texture.cpp
+++ b/opengl/libagl/texture.cpp
@@ -27,7 +27,6 @@
#ifdef LIBAGL_USE_GRALLOC_COPYBITS
#include "copybit.h"
-#include "gralloc_priv.h"
#endif // LIBAGL_USE_GRALLOC_COPYBITS
namespace android {
@@ -1540,20 +1539,9 @@ void glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
sp<EGLTextureObject> tex = getAndBindActiveTextureObject(c);
tex->setImage(native_buffer);
- /*
- * Here an implementation can retrieve the buffer_handle_t of this buffer
- * which gives it access to an arbitrary-defined kernel resource
- * (or anything else for that matter).
- * There needs to be an intimate knowledge between GLES and buffer_handle_t,
- * so make sure to validate the handle before using it.
- * Typically, buffer_handle_t comes from the gralloc HAL which is provided
- * by the implementor of GLES.
- *
- */
#ifdef LIBAGL_USE_GRALLOC_COPYBITS
tex->try_copybit = false;
- private_handle_t* hnd = private_handle_t::dynamicCast(native_buffer->handle);
- if (hnd && hnd->usesPhysicallyContiguousMemory()) {
+ if (c->copybits.blitEngine != NULL) {
tex->try_copybit = true;
}
#endif // LIBAGL_USE_GRALLOC_COPYBITS