1 /*
2 // Copyright (c) 2014 Intel Corporation 
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16 #include <HwcTrace.h>
17 #include <common/SpritePlaneBase.h>
18 #include <common/PixelFormat.h>
19 
20 namespace android {
21 namespace intel {
22 
SpritePlaneBase(int index,int disp)23 SpritePlaneBase::SpritePlaneBase(int index, int disp)
24     : DisplayPlane(index, PLANE_SPRITE, disp),
25       mForceBottom(false),
26       mAbovePrimary(true)
27 {
28     CTRACE();
29 }
30 
~SpritePlaneBase()31 SpritePlaneBase::~SpritePlaneBase()
32 {
33     CTRACE();
34 }
35 
flip(void * ctx)36 bool SpritePlaneBase::flip(void *ctx)
37 {
38     CTRACE();
39     return DisplayPlane::flip(ctx);
40 }
41 
enable()42 bool SpritePlaneBase::enable()
43 {
44     return enablePlane(true);
45 }
46 
disable()47 bool SpritePlaneBase::disable()
48 {
49     return enablePlane(false);
50 }
51 
52 } // namespace intel
53 } // namespace android
54