summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-05-24 16:27:35 -0700
committerJohn Reck <jreck@google.com>2018-05-30 16:40:07 -0700
commite4c1e6c5a18eb9cfa9025363c5a991b2c683ed68 (patch)
tree0135f234fc7e60854587585e4eb3c8875aeddf0d /libs/hwui/renderthread/RenderProxy.cpp
parent1a2a40552a261bf3efecf09a9af472c4e9d0157c (diff)
Remove dead code
Test: builds Change-Id: I57cf72ca460115463d7759097d5ba598b5ec1775
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp7
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() {