am 4d71053b: Merge "attempt to fix bug 5313580" into ics-mr1
* commit '4d71053b0728b248d80d7d5a098df459722e2be0': attempt to fix bug 5313580
This commit is contained in:
commit
c4dd3a44c6
@ -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