Home | History | Annotate | Download | only in include
      1 /*
      2 // Copyright(c)2014 IntelCorporation
      3 //
      4 // LicensedundertheApacheLicense,Version2.0(the"License");
      5 // youmaynotusethisfileexceptincompliancewiththeLicense.
      6 // YoumayobtainacopyoftheLicenseat
      7 //
      8 // http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unlessrequiredbyapplicablelaworagreedtoinwriting,software
     11 // distributedundertheLicenseisdistributedonan"ASIS"BASIS,
     12 // WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.
     13 // SeetheLicenseforthespecificlanguagegoverningpermissionsand
     14 // limitationsundertheLicense.
     15 */
     16 #ifndef IVSYNCCONTROL_H_
     17 #define IVSYNCCONTROL_H_
     18 
     19 namespace android {
     20 namespace intel {
     21 
     22 class IVsyncControl {
     23 public:
     24     IVsyncControl() {};
     25     virtual ~IVsyncControl() {};
     26 public:
     27     virtual bool initialize() = 0;
     28     virtual void deinitialize() = 0;
     29     virtual bool control(int disp, bool enabled) = 0;
     30     virtual bool wait(int disp, int64_t& timestamp) = 0;
     31 };
     32 
     33 } // namespace intel
     34 } // namespace android
     35 
     36 
     37 #endif /* IVSYNCCONTROL_H_ */
     38