OSDN Git Service

SurfaceTexture: add context attach & detach
authorJamie Gennis <jgennis@google.com>
Thu, 29 Mar 2012 02:05:54 +0000 (19:05 -0700)
committerJamie Gennis <jgennis@google.com>
Fri, 30 Mar 2012 23:47:28 +0000 (16:47 -0700)
commit74bed55fff0132be319bcd1703970516ae28b3a9
tree3fb8424f159644813f9ee0594e39e59f52dad205
parent1bb69f015c0fda0227e36d7ce39826409c9a0e8d
SurfaceTexture: add context attach & detach

This change adds the detachFromContext and attachToContext methods to
SurfaceTexture.  These methods allow the SurfaceTexture to switch from
one consumer GLES context to another.  This change also includes a few
cleanups to the error return codes in updateTexImage.

Change-Id: I0df1eb599aa7b6f58f07431f242f8f09269559ed
include/gui/SurfaceTexture.h
libs/gui/SurfaceTexture.cpp
libs/gui/tests/SurfaceTexture_test.cpp