diff options
author | Mathias Agopian <mathias@google.com> | 2009-07-15 18:53:32 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-07-15 18:53:32 -0700 |
commit | f13901eaa98241b52062a3ae3b016badce3dee0c (patch) | |
tree | 8512c75b18d91f64188eb9d5fd19ef20135fbc6a /opengl/libagl/egl.cpp | |
parent | 5fdd6ed871ef6bc5f3c860a1363699fae01132b0 (diff) | |
download | frameworks_native-f13901eaa98241b52062a3ae3b016badce3dee0c.zip frameworks_native-f13901eaa98241b52062a3ae3b016badce3dee0c.tar.gz frameworks_native-f13901eaa98241b52062a3ae3b016badce3dee0c.tar.bz2 |
remove libagl's dependency on gralloc_priv.h
Diffstat (limited to 'opengl/libagl/egl.cpp')
-rw-r--r-- | opengl/libagl/egl.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index 6f6656a..7afcae7 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp @@ -48,10 +48,6 @@ #include "texture.h" #include "matrix.h" -#ifdef LIBAGL_USE_GRALLOC_COPYBITS -#include "gralloc_priv.h" -#endif // LIBAGL_USE_GRALLOC_COPYBITS - #undef NELEM #define NELEM(x) (sizeof(x)/sizeof(*(x))) @@ -622,11 +618,10 @@ EGLBoolean egl_window_surface_v2_t::bindDrawSurface(ogles_context_t* gl) #ifdef LIBAGL_USE_GRALLOC_COPYBITS gl->copybits.drawSurfaceBuffer = 0; - if (supportedCopybitsDestinationFormat(buffer.format)) { - buffer_handle_t handle = this->buffer->handle; - if (handle != NULL) { - private_handle_t* hand = private_handle_t::dynamicCast(handle); - if (hand != NULL && hand->usesPhysicallyContiguousMemory()) { + if (gl->copybits.blitEngine != NULL) { + if (supportedCopybitsDestinationFormat(buffer.format)) { + buffer_handle_t handle = this->buffer->handle; + if (handle != NULL) { gl->copybits.drawSurfaceBuffer = handle; } } |