1 /* 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 "hwc_utils.h" 33 34 using namespace qhwc; 35 namespace qdutils { 36 class CBUtils { 37 public: 38 static int getuiClearRegion(hwc_display_contents_1_t* list, 39 hwc_rect_t &clearWormholeRec, 40 LayerProp *layerProp); 41 }; 42 }//namespace qdutils 43 #endif /* end of include guard: CB_UTIL_H*/ 44 45