Skip to content
Snippets Groups Projects
Commit ded338d5 authored by Nick's avatar Nick :v:
Browse files

VncFlinger: delay sending surface for a bit

Change-Id: I939d82418b16dbb6c6aa8d21a52bd755c01999dd
parent da429e8b
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,6 @@ AndroidDesktop::AndroidDesktop() {
ALOGE("Failed to create event notifier");
return;
}
runJniCallbackNewSurfaceAvailable();
}
AndroidDesktop::~AndroidDesktop() {
......@@ -302,7 +300,6 @@ void AndroidDesktop::onBufferDimensionsChanged(uint32_t width, uint32_t height)
mVirtualDisplay.clear();
mVirtualDisplay = new VirtualDisplay(&mDisplayMode, &mDisplayState,
mPixels->width(), mPixels->height(), mLayerId, this);
runJniCallbackNewSurfaceAvailable();
mDisplayRect = mVirtualDisplay->getDisplayRect();
......@@ -312,6 +309,8 @@ void AndroidDesktop::onBufferDimensionsChanged(uint32_t width, uint32_t height)
mServer->setPixelBuffer(mPixels.get(), computeScreenLayout());
mServer->setScreenLayout(computeScreenLayout());
runJniCallbackNewSurfaceAvailable();
}
void AndroidDesktop::queryConnection(network::Socket* sock, const char* /*userName*/) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment