display : change wormhole calculation for swap rect
In case of swap rect use case ,wormhole rect will
be same as dirty rect (if has any blending)
Change-Id: Id2ee34d860207c440a033010460723fe964f7074
diff --git a/libhwcomposer/hwc_copybit.cpp b/libhwcomposer/hwc_copybit.cpp
index 47b9225..3322c21 100644
--- a/libhwcomposer/hwc_copybit.cpp
+++ b/libhwcomposer/hwc_copybit.cpp
@@ -25,7 +25,7 @@
#include "comptype.h"
#include "gr.h"
#include "cb_utils.h"
-
+#include "cb_swap_rect.h"
using namespace qdutils;
namespace qhwc {
@@ -303,6 +303,9 @@
ALOGD_IF(DEBUG_COPYBIT, "%s: Not Marked for copybit", __FUNCTION__);
continue;
}
+ if(layer->flags & HWC_SKIP_HWC_COMPOSITION){
+ continue;
+ }
int ret = -1;
if (list->hwLayers[i].acquireFenceFd != -1
&& ctx->mMDP.version >= qdutils::MDP_V4_0) {