summaryrefslogtreecommitdiff
path: root/libs/hwui/thread
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-12-22 14:28:49 -0800
committerChris Craik <ccraik@google.com>2014-12-22 14:56:08 -0800
commite84a208317e0ed388fcdad1e6743c7849acb51b0 (patch)
tree8c057e6b6367a85790c30a118e6c8789c6bdf538 /libs/hwui/thread
parent07adacf4996c8ca494332ec938786fa15832c722 (diff)
Add overrides and switch to nullptr keyword
Changes generated with clang-modernize. Additionally, fixed some struct-vs-class usage to make clang happy. Change-Id: Ic6ef2427401ff1e794d26f21f7b44868fc75fb72
Diffstat (limited to 'libs/hwui/thread')
-rw-r--r--libs/hwui/thread/TaskManager.h4
-rw-r--r--libs/hwui/thread/TaskProcessor.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/thread/TaskManager.h b/libs/hwui/thread/TaskManager.h
index 5a933abc1dc2..10e8b9e0bead 100644
--- a/libs/hwui/thread/TaskManager.h
+++ b/libs/hwui/thread/TaskManager.h
@@ -84,8 +84,8 @@ private:
void exit();
private:
- virtual status_t readyToRun();
- virtual bool threadLoop();
+ virtual status_t readyToRun() override;
+ virtual bool threadLoop() override;
// Lock for the list of tasks
mutable Mutex mLock;
diff --git a/libs/hwui/thread/TaskProcessor.h b/libs/hwui/thread/TaskProcessor.h
index d1269f0bd55a..eb4ab64a3e94 100644
--- a/libs/hwui/thread/TaskProcessor.h
+++ b/libs/hwui/thread/TaskProcessor.h
@@ -47,7 +47,7 @@ public:
virtual void onProcess(const sp<Task<T> >& task) = 0;
private:
- virtual void process(const sp<TaskBase>& task) {
+ virtual void process(const sp<TaskBase>& task) override {
sp<Task<T> > realTask = static_cast<Task<T>* >(task.get());
// This is the right way to do it but sp<> doesn't play nice
// sp<Task<T> > realTask = static_cast<sp<Task<T> > >(task);