summaryrefslogtreecommitdiffstats
path: root/common/observers/HotplugEventObserver.h
diff options
context:
space:
mode:
authorAndy Qiu <junhai.qiu@intel.com>2013-03-22 16:25:43 -0700
committerbuildbot <buildbot@intel.com>2013-03-23 20:17:11 -0700
commit6a6081a46a83da606cf21548879b37695adc7e1f (patch)
treecf337f80c4fc10b36b98c3beb5b84788617b2493 /common/observers/HotplugEventObserver.h
parent45edb8877ecf99d73f4f7757b89fc3cfe6f2f0db (diff)
downloadandroid_hardware_intel_img_hwcomposer-6a6081a46a83da606cf21548879b37695adc7e1f.tar.gz
android_hardware_intel_img_hwcomposer-6a6081a46a83da606cf21548879b37695adc7e1f.tar.bz2
android_hardware_intel_img_hwcomposer-6a6081a46a83da606cf21548879b37695adc7e1f.zip
Initial version of refactored HWC, based on design from Jackie.
BZ: 95246 This is the first submission of refactored HWC, based on design from Jackie. Build is temporarily disabled. Change-Id: Idf6d8ab5263cfa797d9e3b93328702f486b30c43 Signed-off-by: Andy Qiu <junhai.qiu@intel.com> Reviewed-on: http://android.intel.com:8080/97996 Reviewed-by: cactus <cactus@intel.com> Reviewed-by: Dai, Yu <yu.dai@intel.com> Tested-by: Dai, Yu <yu.dai@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'common/observers/HotplugEventObserver.h')
-rw-r--r--common/observers/HotplugEventObserver.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/common/observers/HotplugEventObserver.h b/common/observers/HotplugEventObserver.h
new file mode 100644
index 0000000..38db6f7
--- /dev/null
+++ b/common/observers/HotplugEventObserver.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright © 2012 Intel Corporation
+ * All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Jackie Li <yaodong.li@intel.com>
+ *
+ */
+#ifndef HOTPLUGEVENTOBSERVER_H_
+#define HOTPLUGEVENTOBSERVER_H_
+
+#include <utils/threads.h>
+#include <HotplugControl.h>
+
+namespace android {
+namespace intel {
+
+class DisplayDevice;
+
+class HotplugEventObserver : public Thread
+{
+public:
+ HotplugEventObserver(DisplayDevice& disp, HotplugControl& hotplug);
+ virtual ~HotplugEventObserver();
+private:
+ virtual bool threadLoop();
+ virtual android::status_t readyToRun();
+ virtual void onFirstRef();
+private:
+ DisplayDevice& mDisplayDevice;
+ HotplugControl& mHotplug;
+}; // HotplugEventObserver
+}
+}
+
+#endif /* HOTPLUGEVENTOBSERVER_H_ */