summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/renderthread/RenderTask.cpp')
-rw-r--r--libs/hwui/renderthread/RenderTask.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/RenderTask.cpp b/libs/hwui/renderthread/RenderTask.cpp
index 2da91c56e127..7ca61e4838a9 100644
--- a/libs/hwui/renderthread/RenderTask.cpp
+++ b/libs/hwui/renderthread/RenderTask.cpp
@@ -19,15 +19,18 @@
#include "RenderTask.h"
#include <utils/Log.h>
+#include <utils/Condition.h>
+#include <utils/Mutex.h>
namespace android {
namespace uirenderer {
namespace renderthread {
-RenderTask::RenderTask() : mNext(0) {
-}
-
-RenderTask::~RenderTask() {
+void SignalingRenderTask::run() {
+ mTask->run();
+ mLock->lock();
+ mSignal->signal();
+ mLock->unlock();
}
} /* namespace renderthread */