diff options
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 02d0b6d4a77f..12220a6b3776 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -193,8 +193,11 @@ void RenderProxy::fence() { mRenderThread.queue().runSync([]() {}); } -void RenderProxy::staticFence() { - RenderThread::getInstance().queue().runSync([]() {}); +int RenderProxy::maxTextureSize() { + static int maxTextureSize = RenderThread::getInstance().queue().runSync([]() { + return DeviceInfo::get()->maxTextureSize(); + }); + return maxTextureSize; } void RenderProxy::stopDrawing() { |