Resizable emulator: enable multiple display configs in framebuffer
Bug: 196986384
Bug: 265182971
Change-Id: I0af1be86f131bd5dad4292652f7d5be80d860299
diff --git a/stream-servers/RendererImpl.cpp b/stream-servers/RendererImpl.cpp
index a52ad29..602dea9 100644
--- a/stream-servers/RendererImpl.cpp
+++ b/stream-servers/RendererImpl.cpp
@@ -677,17 +677,15 @@
void RendererImpl::setDisplayConfigs(int configId, int w, int h,
int dpiX, int dpiY) {
- // TODO: need CP
- (void)configId;
- (void)w;
- (void)h;
- (void)dpiX;
- (void)dpiY;
+ if (mRenderWindow) {
+ mRenderWindow->setDisplayConfigs(configId, w, h, dpiX, dpiY);
+ }
}
void RendererImpl::setDisplayActiveConfig(int configId) {
- // TODO: need CP
- (void)configId;
+ if (mRenderWindow) {
+ mRenderWindow->setDisplayActiveConfig(configId);
+ }
}
} // namespace emugl