hwc: Do not use fb handle in hwc_prepare
Do not use fb handle in prepare. Use displayFrame for dimensions, align them and hardcode format Change-Id: I5c494a74a807d3a52a1c88257494b58c583700f5
This commit is contained in:
@@ -150,7 +150,8 @@ void initContext(hwc_context_t *ctx)
|
||||
if (compositionType & (qdutils::COMPOSITION_TYPE_DYN |
|
||||
qdutils::COMPOSITION_TYPE_MDP |
|
||||
qdutils::COMPOSITION_TYPE_C2D)) {
|
||||
ctx->mCopyBit[HWC_DISPLAY_PRIMARY] = new CopyBit();
|
||||
ctx->mCopyBit[HWC_DISPLAY_PRIMARY] = new CopyBit(ctx,
|
||||
HWC_DISPLAY_PRIMARY);
|
||||
}
|
||||
|
||||
ctx->mExtDisplay = new ExternalDisplay(ctx);
|
||||
@@ -1261,7 +1262,7 @@ void setMdpFlags(hwc_layer_1_t *layer,
|
||||
ovutils::eMdpFlags &mdpFlags,
|
||||
int rotDownscale, int transform) {
|
||||
private_handle_t *hnd = (private_handle_t *)layer->handle;
|
||||
MetaData_t *metadata = (MetaData_t *)hnd->base_metadata;
|
||||
MetaData_t *metadata = hnd ? (MetaData_t *)hnd->base_metadata : NULL;
|
||||
|
||||
if(layer->blending == HWC_BLENDING_PREMULT) {
|
||||
ovutils::setMdpFlags(mdpFlags,
|
||||
|
||||
Reference in New Issue
Block a user