Merge "attempt to fix bug 5313580" into ics-mr1
This commit is contained in:
commit
6285c6cf10
@ -40,6 +40,7 @@ public:
|
||||
|
||||
protected:
|
||||
SurfaceTextureClient();
|
||||
virtual ~SurfaceTextureClient();
|
||||
void setISurfaceTexture(const sp<ISurfaceTexture>& surfaceTexture);
|
||||
|
||||
private:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user