diff options
| author | Mathias Agopian <mathias@google.com> | 2009-06-24 16:55:59 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2009-06-24 20:39:16 -0700 |
| commit | 2eab9d8d7034ef05cead1ee26667a75061b5f0aa (patch) | |
| tree | 205a4d754066ff81e869b53adf79e0a40b1c3695 /opengl/libagl | |
| parent | cbc4c9f8d56317b2fe8964c15c9785ebeef98ca7 (diff) | |
| download | frameworks_base-2eab9d8d7034ef05cead1ee26667a75061b5f0aa.zip frameworks_base-2eab9d8d7034ef05cead1ee26667a75061b5f0aa.tar.gz frameworks_base-2eab9d8d7034ef05cead1ee26667a75061b5f0aa.tar.bz2 | |
copybit now uses a native_handle_t* instead of a fd/offset
Diffstat (limited to 'opengl/libagl')
| -rw-r--r-- | opengl/libagl/copybit.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/opengl/libagl/copybit.cpp b/opengl/libagl/copybit.cpp index 093a32d..b6dedae 100644 --- a/opengl/libagl/copybit.cpp +++ b/opengl/libagl/copybit.cpp @@ -32,7 +32,6 @@ #include <hardware/gralloc.h> #include <hardware/copybit.h> #include <private/ui/android_natives_priv.h> -#include "gralloc_priv.h" #define DEBUG_COPYBIT true @@ -44,14 +43,11 @@ namespace android { static void textureToCopyBitImage( const GGLSurface* surface, buffer_handle_t buffer, copybit_image_t* img) { - // we know private_handle_t is good here - private_handle_t* hnd = (private_handle_t*)buffer; img->w = surface->stride; img->h = surface->height; img->format = surface->format; - img->offset = hnd->offset; img->base = surface->data; - img->fd = hnd->fd; + img->handle = (native_handle_t *)buffer; } struct clipRectRegion : public copybit_region_t { @@ -283,7 +279,6 @@ static bool copybit(GLint x, GLint y, textureToCopyBitImage(&cbSurface, target_hnd, &dst); copybit_rect_t drect = {x, y, x+w, y+h}; - // we know private_handle_t is good here copybit_image_t src; buffer_handle_t source_hnd = textureObject->buffer->handle; textureToCopyBitImage(&textureObject->surface, source_hnd, &src); |
