diff options
Diffstat (limited to 'services/surfaceflinger/DisplayHardware/PowerHAL.h')
-rw-r--r-- | services/surfaceflinger/DisplayHardware/PowerHAL.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/services/surfaceflinger/DisplayHardware/PowerHAL.h b/services/surfaceflinger/DisplayHardware/PowerHAL.h index ef67b8f..e5f82a9 100644 --- a/services/surfaceflinger/DisplayHardware/PowerHAL.h +++ b/services/surfaceflinger/DisplayHardware/PowerHAL.h @@ -19,7 +19,9 @@ #include <stdint.h> #include <sys/types.h> +#include <utils/Mutex.h> +#include <powermanager/IPowerManager.h> #include <hardware/power.h> namespace android { @@ -28,15 +30,11 @@ namespace android { class PowerHAL { public: - PowerHAL(); - ~PowerHAL(); - - status_t initCheck() const; status_t vsyncHint(bool enabled); private: - power_module_t* mPowerModule; - bool mVSyncHintEnabled; + sp<IPowerManager> mPowerManager; + Mutex mlock; }; // --------------------------------------------------------------------------- |