am 4d71053b: Merge "attempt to fix bug 5313580" into ics-mr1

* commit '4d71053b0728b248d80d7d5a098df459722e2be0':
  attempt to fix bug 5313580
This commit is contained in:
Mathias Agopian 2011-11-18 13:35:23 -08:00 committed by Android Git Automerger
commit c4dd3a44c6
2 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,7 @@ public:
protected:
SurfaceTextureClient();
virtual ~SurfaceTextureClient();
void setISurfaceTexture(const sp<ISurfaceTexture>& surfaceTexture);
private:

View File

@ -36,6 +36,12 @@ SurfaceTextureClient::SurfaceTextureClient() {
SurfaceTextureClient::init();
}
SurfaceTextureClient::~SurfaceTextureClient() {
if (mConnectedToCpu) {
SurfaceTextureClient::disconnect(NATIVE_WINDOW_API_CPU);
}
}
void SurfaceTextureClient::init() {
// Initialize the ANativeWindow function pointers.
ANativeWindow::setSwapInterval = hook_setSwapInterval;