1/* Copyright (c) 2014, 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_SWAP_RECT 30#define CB_SWAP_RECT 31 32#include <stdint.h> 33#include <utils/Singleton.h> 34#include <cutils/log.h> 35 36using namespace android; 37namespace qdutils { 38enum { 39HWC_SKIP_HWC_COMPOSITION = 0x00040000, 40}; 41 42class cb_swap_rect : public Singleton <cb_swap_rect> 43{ 44 bool swap_rect_feature_on; 45 public : 46 cb_swap_rect(); 47 void setSwapRectFeature_on( bool value); 48 bool checkSwapRectFeature_on(); 49}; 50} // namespace qdutils 51#endif 52