aboutsummaryrefslogtreecommitdiff
path: root/glworker.h
diff options
context:
space:
mode:
authorZach Reizner <zachr@google.com>2015-07-21 15:06:16 -0700
committerZach Reizner <zachr@google.com>2015-07-22 11:47:02 -0700
commitabebc7a78fe8a4df6495c8e5064719dc92b04004 (patch)
tree59dfc0090c4c085ad306f8d0789a144fb620f8b0 /glworker.h
parent2127127828a33c46e46831f35ba7b9fa27b3f5ba (diff)
downloaddrm_hwcomposer-abebc7a78fe8a4df6495c8e5064719dc92b04004.tar.gz
drm_hwcomposer: remove GLCompositor and the GLWorker thread
They are dead code now that DrmDisplayCompositor uses GL directly. Change-Id: Ie4beeab60440a51bd87486847b5453e20288d1d8
Diffstat (limited to 'glworker.h')
-rw-r--r--glworker.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/glworker.h b/glworker.h
index 9550cbe..8252b62 100644
--- a/glworker.h
+++ b/glworker.h
@@ -17,8 +17,6 @@
#ifndef ANDROID_GL_WORKER_H_
#define ANDROID_GL_WORKER_H_
-#include <pthread.h>
-
#include <memory>
#include <vector>
@@ -98,44 +96,6 @@ class GLWorkerCompositor {
std::vector<AutoGLProgram> blend_programs_;
AutoGLBuffer vertex_buffer_;
};
-
-class GLWorker {
- public:
- struct Work {
- hwc_layer_1 *layers;
- size_t num_layers;
- int timeline_fd;
- sp<GraphicBuffer> framebuffer;
-
- Work() = default;
- Work(const Work &rhs) = delete;
- };
-
- GLWorker();
- ~GLWorker();
-
- int Init();
-
- int DoWork(Work *work);
-
- private:
- bool initialized_;
- pthread_t thread_;
- pthread_mutex_t lock_;
- pthread_cond_t work_ready_cond_;
- pthread_cond_t work_done_cond_;
- Work *worker_work_;
- bool work_ready_;
- bool worker_exit_;
- int worker_ret_;
-
- void WorkerRoutine();
- int DoComposition(GLWorkerCompositor &compositor, Work *work);
-
- int SignalWorker(Work *work, bool worker_exit);
-
- static void *StartRoutine(void *arg);
-};
}
#endif