summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2021-06-25 19:00:24 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-06-25 19:00:24 +0000
commite947e2e20a0a19be6f98de9b7e3b70909904a7bb (patch)
tree3e51188f7b599a56a1a9ede8b772b8669980a884 /libs/hwui/renderthread/RenderProxy.cpp
parent5256a6fdb7e656dbe3f6cc2e033b8a9efacb6a6a (diff)
parentf0b6921e894922b28143b281d006dee1285258f6 (diff)
Merge "Revert "Delete RenderProxy off of the cleaner thread"" into sc-dev
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp
index e538a92fbd97..a77b5b569907 100644
--- a/libs/hwui/renderthread/RenderProxy.cpp
+++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -26,7 +26,6 @@
#include "renderthread/CanvasContext.h"
#include "renderthread/RenderTask.h"
#include "renderthread/RenderThread.h"
-#include "thread/CommonPool.h"
#include "utils/Macros.h"
#include "utils/TimeUtils.h"
@@ -43,17 +42,6 @@ RenderProxy::RenderProxy(bool translucent, RenderNode* rootRenderNode,
mDrawFrameTask.setContext(&mRenderThread, mContext, rootRenderNode);
}
-void RenderProxy::asyncDelete(RenderProxy* proxy) {
- if (!proxy) return;
-
- if (proxy->mContext) {
- // Use the common pool because ~RenderProxy blocks on calling into RenderThread
- CommonPool::post([proxy]() { delete proxy; });
- } else {
- delete proxy;
- }
-}
-
RenderProxy::~RenderProxy() {
destroyContext();
}