summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2017-06-14 20:25:03 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-14 20:25:03 +0000
commitf0d3971021c26baa0e0b1721e71c99a2f98dae1b (patch)
treedfdb70549e99d198e9cd2c3fe4bee4820fd7b795 /libs/hwui/renderthread/RenderProxy.cpp
parent321163990eef7f9cc4cbbe054fc3b6e21717a558 (diff)
parent31443a17e8c615fdad2afa06d5711d6eaac129b3 (diff)
Merge "Add a workaround for simulate secondary display" into oc-dev
am: 31443a17e8 Change-Id: Ic63e4f48ec55bce9f51089bc41481ab8805ae8c7
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);
}