summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-24 16:55:59 -0700
committerMathias Agopian <mathias@google.com>2009-06-24 20:39:16 -0700
commit5911aa9510caad7c5d1dea849f9d2c8321fa9d7b (patch)
treeacd8a122221e5473e7912ccba1f38bd94e3e291b /opengl
parent69029eb5abfaeb52716b84db89e32dc742551508 (diff)
downloadframeworks_native-5911aa9510caad7c5d1dea849f9d2c8321fa9d7b.zip
frameworks_native-5911aa9510caad7c5d1dea849f9d2c8321fa9d7b.tar.gz
frameworks_native-5911aa9510caad7c5d1dea849f9d2c8321fa9d7b.tar.bz2
copybit now uses a native_handle_t* instead of a fd/offset
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libagl/copybit.cpp7
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);