blob: 59f452be841ccda24dabc0a57b8be313e63056f2 [file] [log] [blame]
radhakrishna2f00c8f2013-10-21 16:49:21 +05301/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
2* Redistribution and use in source and binary forms, with or without
3* * modification, are permitted provided that the following conditions are
4* met:
5* * Redistributions of source code must retain the above copyrigh
6* notice, this list of conditions and the following disclaimer
7* * Redistributions in binary form must reproduce the above
8* copyright notice, this list of conditions and the following
9* disclaimer in the documentation and/or other materials provided
10* with the distribution.
11* * Neither the name of The Linux Foundation nor the names of its
12* contributors may be used to endorse or promote products derived
13* from this software without specific prior written permission.
14*
15* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
16* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
17* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
18* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
19* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23* * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/
27
28
29#ifndef CB_UTIL_H
30#define CB_UTIL_H
31
32#include <ui/Region.h>
33#include "hwc_utils.h"
34
35using namespace qhwc;
36namespace qdutils {
37class CBUtils {
38public:
39static int getuiClearRegion(hwc_display_contents_1_t* list,
40 hwc_rect_t &clearWormholeRec,
Dileep Kumar Reddif4e2e0c2014-12-16 11:24:34 +053041 LayerProp *layerProp, int dirtyIndex = -1);
radhakrishna2f00c8f2013-10-21 16:49:21 +053042};
43}//namespace qdutils
44#endif /* end of include guard: CB_UTIL_H*/
45