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 <math.h>
17 #include <HwcTrace.h>
18 #include <Drm.h>
19 #include <Hwcomposer.h>
20 #include <penwell/PnwOverlayPlane.h>
21 #include <penwell/PnwGrallocBuffer.h>
22 
23 namespace android {
24 namespace intel {
25 
PnwOverlayPlane(int index,int disp)26 PnwOverlayPlane::PnwOverlayPlane(int index, int disp)
27     : OverlayPlaneBase(index, disp)
28 {
29     CTRACE();
30 }
31 
~PnwOverlayPlane()32 PnwOverlayPlane::~PnwOverlayPlane()
33 {
34     CTRACE();
35 }
36 
flip()37 bool PnwOverlayPlane::flip()
38 {
39     //TODO: implement flip
40     return false;
41 }
42 
getContext() const43 void* PnwOverlayPlane::getContext() const
44 {
45     CTRACE();
46     //TODO: return penwell overlay context
47     return 0;
48 }
49 
50 } // namespace intel
51 } // namespace android
52