Merge "attempt to fix bug 5313580" into ics-mr1
This commit is contained in:
commit
6285c6cf10
@ -40,6 +40,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
SurfaceTextureClient();
|
SurfaceTextureClient();
|
||||||
|
virtual ~SurfaceTextureClient();
|
||||||
void setISurfaceTexture(const sp<ISurfaceTexture>& surfaceTexture);
|
void setISurfaceTexture(const sp<ISurfaceTexture>& surfaceTexture);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -36,6 +36,12 @@ SurfaceTextureClient::SurfaceTextureClient() {
|
|||||||
SurfaceTextureClient::init();
|
SurfaceTextureClient::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SurfaceTextureClient::~SurfaceTextureClient() {
|
||||||
|
if (mConnectedToCpu) {
|
||||||
|
SurfaceTextureClient::disconnect(NATIVE_WINDOW_API_CPU);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void SurfaceTextureClient::init() {
|
void SurfaceTextureClient::init() {
|
||||||
// Initialize the ANativeWindow function pointers.
|
// Initialize the ANativeWindow function pointers.
|
||||||
ANativeWindow::setSwapInterval = hook_setSwapInterval;
|
ANativeWindow::setSwapInterval = hook_setSwapInterval;
|
||||||
|
Loading…
Reference in New Issue
Block a user