summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2017-06-14 20:31:11 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-14 20:31:11 +0000
commit2d41b97bc34c5368db828e532e270405e7b134da (patch)
tree8656719f25b6a5303e0537bc13fb0e52c89c5a9a /libs/hwui/renderthread/RenderProxy.cpp
parentbce79b1bdc8e020d75c93a608ed1f29b66a10ab3 (diff)
parentf0d3971021c26baa0e0b1721e71c99a2f98dae1b (diff)
Merge "Add a workaround for simulate secondary display" into oc-dev am: 31443a17e8
am: f0d3971021 Change-Id: I5ee14c0887eaeac267c815851ae6f9e8ee47d80f
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 ec56c313f62a..80c2955400d8 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"
@@ -709,6 +710,10 @@ void RenderProxy::onBitmapDestroyed(uint32_t pixelRefId) {
thread.queue(task);
}
+void RenderProxy::disableVsync() {
+ Properties::disableVsync = true;
+}
+
void RenderProxy::post(RenderTask* task) {
mRenderThread.queue(task);
}