Commit d2b487ef by Greg Hartman

Change GceFrameBufferConfig::getInstance() to return a const&

Coincides with I08dcfe8da032f03a556454199a2d66d29837571d on the Android-GCE end. Change-Id: I7d24a7eadaa3f0a69f8baf34af0cfea24447594f Reviewed-on: https://swiftshader-review.googlesource.com/3082Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com>
parent f78e963d
...@@ -584,8 +584,8 @@ DisplayMode Display::getDisplayMode() const ...@@ -584,8 +584,8 @@ DisplayMode Display::getDisplayMode() const
ReleaseDC(0, deviceContext); ReleaseDC(0, deviceContext);
#elif defined(__ANDROID__) #elif defined(__ANDROID__)
displayMode.width = GceFrameBufferConfig::getInstance()->x_res(); displayMode.width = GceFrameBufferConfig::getInstance().x_res();
displayMode.height = GceFrameBufferConfig::getInstance()->y_res(); displayMode.height = GceFrameBufferConfig::getInstance().y_res();
displayMode.format = sw::FORMAT_X8R8G8B8; displayMode.format = sw::FORMAT_X8R8G8B8;
ALOGI("Returning framebuffer config width=%d height=%d, format=%d", displayMode.width, displayMode.height, displayMode.format); ALOGI("Returning framebuffer config width=%d height=%d, format=%d", displayMode.width, displayMode.height, displayMode.format);
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment