summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-06-14 20:13:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-06-14 20:14:05 +0000
commit31443a17e8c615fdad2afa06d5711d6eaac129b3 (patch)
treea38cb2a585a52540d79b714554dbfd27f5fe5e2b /libs/hwui/renderthread/RenderProxy.cpp
parent0e6a5f8d7e786e22a31fcdac9d75f285fdbb565a (diff)
parenta896306c38c4d11c43b967a21db6d74c251b2520 (diff)
Merge "Add a workaround for simulate secondary display" into oc-dev
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp
index eed523810403..d842be9e7d6e 100644
--- a/libs/hwui/renderthread/RenderProxy.cpp
+++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -18,6 +18,7 @@
#include "DeferredLayerUpdater.h"
#include "DisplayList.h"
+#include "Properties.h"
#include "Readback.h"
#include "Rect.h"
#include "renderthread/CanvasContext.h"
@@ -708,6 +709,10 @@ void RenderProxy::onBitmapDestroyed(uint32_t pixelRefId) {
thread.queue(task);
}
+void RenderProxy::disableVsync() {
+ Properties::disableVsync = true;
+}
+
void RenderProxy::post(RenderTask* task) {
mRenderThread.queue(task);
}