if (mType != EXYNOS_SECONDARY_DISPLAY)
{
#endif
- if (err)
+ if (err < 0)
fence = clearDisplay();
if (fence == 0) {
}
#endif
+ uint32_t rectCount = 0;
+ for (size_t i = 0; i < contents->numHwLayers; i++) {
+ hwc_layer_1_t &layer = contents->hwLayers[i];
+ if (layer.handle) {
+ private_handle_t *handle = private_handle_t::dynamicCast(layer.handle);
+ if (handle->format == HAL_PIXEL_FORMAT_EXYNOS_YCbCr_420_SP_M_PRIV
+ && rectCount < mOriginFrect.size())
+ layer.sourceCropf = mOriginFrect[rectCount++];
+ }
+ }
+ mOriginFrect.clear();
+ mBackUpFrect.clear();
+
return err;
}
layer.acquireFenceFd = -1;
layer.releaseFenceFd = -1;
}
- rectCount = 0;
- for (size_t i = 0; i < contents->numHwLayers; i++) {
- hwc_layer_1_t &layer = contents->hwLayers[i];
- if (layer.handle) {
- private_handle_t *handle = private_handle_t::dynamicCast(layer.handle);
- if (handle->format == HAL_PIXEL_FORMAT_EXYNOS_YCbCr_420_SP_M_PRIV
- && rectCount < mOriginFrect.size())
- layer.sourceCropf = mOriginFrect[rectCount++];
- }
- }
- mOriginFrect.clear();
- mBackUpFrect.clear();
if (!this->mVirtualOverlayFlag && (ret >= 0))
this->mLastFbWindow = mFbWindow;
{DECON_PIXEL_FORMAT_YVU420, "FORMATYVU420"},
{DECON_PIXEL_FORMAT_YUV420M, "FORMATYUV420M"},
{DECON_PIXEL_FORMAT_YVU420M, "FORMATYVU420M"},
+#ifdef DECON_PIXEL_FORMAT_NV12N
+ {DECON_PIXEL_FORMAT_NV12N, "FORMATNV21N"},
+#endif
+#ifdef DECON_PIXEL_FORMAT_NV12N_10B
+ {DECON_PIXEL_FORMAT_NV12N_10B, "FORMATNV21N10B"},
+#endif
};
enum {