Home | History | Annotate | Download | only in common
      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 #include <HwcTrace.h>
     17 #include <common/SpritePlaneBase.h>
     18 #include <common/PixelFormat.h>
     19 
     20 namespace android {
     21 namespace intel {
     22 
     23 SpritePlaneBase::SpritePlaneBase(int index, int disp)
     24     : DisplayPlane(index, PLANE_SPRITE, disp),
     25       mForceBottom(false),
     26       mAbovePrimary(true)
     27 {
     28     CTRACE();
     29 }
     30 
     31 SpritePlaneBase::~SpritePlaneBase()
     32 {
     33     CTRACE();
     34 }
     35 
     36 bool SpritePlaneBase::flip(void *ctx)
     37 {
     38     CTRACE();
     39     return DisplayPlane::flip(ctx);
     40 }
     41 
     42 bool SpritePlaneBase::enable()
     43 {
     44     return enablePlane(true);
     45 }
     46 
     47 bool SpritePlaneBase::disable()
     48 {
     49     return enablePlane(false);
     50 }
     51 
     52 } // namespace intel
     53 } // namespace android
     54