summaryrefslogtreecommitdiffstats
path: root/common/base/DisplayAnalyzer.h
diff options
context:
space:
mode:
authorGuilhem IMBERTON <guilhem.imberton@intel.com>2015-04-03 13:57:46 +0200
committerHeather Lee Wilson <hwilson@google.com>2015-04-09 12:11:42 -0700
commit5094bbf4cbe9b244d79ce5ec52a9285978fff311 (patch)
treef3c9f619ca67165bee2817109110faaaae9c4cf4 /common/base/DisplayAnalyzer.h
parent8b0063f7f46289983bd1bf9ca61662b4a2ddf5b6 (diff)
downloadandroid_hardware_intel_img_hwcomposer-5094bbf4cbe9b244d79ce5ec52a9285978fff311.tar.gz
android_hardware_intel_img_hwcomposer-5094bbf4cbe9b244d79ce5ec52a9285978fff311.tar.bz2
android_hardware_intel_img_hwcomposer-5094bbf4cbe9b244d79ce5ec52a9285978fff311.zip
Moving Moorefield HWComposer in dedicated directory
Fugu HWComposer has been widely modified to fit HDMI only. The current version does not support Marvin product based on Merrifield platform. We are moving both HWComposer to dedicated folders as a first integration step. Merge will happen later. Change-Id: Iebe90a7bd95c017eca63310fd23b32d53dfccb72 Signed-off-by: Guilhem IMBERTON <guilhem.imberton@intel.com>
Diffstat (limited to 'common/base/DisplayAnalyzer.h')
-rwxr-xr-xcommon/base/DisplayAnalyzer.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/common/base/DisplayAnalyzer.h b/common/base/DisplayAnalyzer.h
deleted file mode 100755
index 239cd0a..0000000
--- a/common/base/DisplayAnalyzer.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
-// Copyright (c) 2014 Intel Corporation 
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-*/
-#ifndef DISPLAY_ANALYZER_H
-#define DISPLAY_ANALYZER_H
-
-#include <utils/threads.h>
-#include <utils/Vector.h>
-
-
-namespace android {
-namespace intel {
-
-
-class DisplayAnalyzer {
-public:
- DisplayAnalyzer();
- virtual ~DisplayAnalyzer();
-
-public:
- bool initialize();
- void deinitialize();
- void analyzeContents(size_t numDisplays, hwc_display_contents_1_t** displays);
- void postHotplugEvent(bool connected);
-
-private:
- enum DisplayEventType {
- HOTPLUG_EVENT,
- };
-
- struct Event {
- int type;
-
- union {
- bool bValue;
- int nValue;
- };
- };
- inline void postEvent(Event& e);
- inline bool getEvent(Event& e);
- void handlePendingEvents();
- void handleHotplugEvent(bool connected);
- inline void setCompositionType(hwc_display_contents_1_t *content, int type);
- inline void setCompositionType(int device, int type, bool reset);
-
-
-private:
- bool mInitialized;
- int mCachedNumDisplays;
- hwc_display_contents_1_t** mCachedDisplays;
- Vector<Event> mPendingEvents;
- Mutex mEventMutex;
-};
-
-} // namespace intel
-} // namespace android
-
-
-
-#endif /* DISPLAY_ANALYZER_H */