From: Dan Stoza Date: Tue, 21 Jun 2016 22:02:23 +0000 (-0700) Subject: HWC2: Don't set null handle for client layers X-Git-Tag: android-x86-7.1-r1~183 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e24da966b14e5b952ee11a7d13bb1539be2a5c8e;p=android-x86%2Fframeworks-native.git HWC2: Don't set null handle for client layers Removes the code that explicitly set a null buffer handle for client layers. Bug: 29463310 Change-Id: I570e6041ba72d64971bb6c364e8e7b6f84eeff08 --- diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index d732c0732e..6c78000ea8 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -726,11 +726,6 @@ void Layer::setPerFrameData(const sp& displayDevice) { // setup a solid color layer yet ALOGV("[%s] Requesting Client composition", mName.string()); setCompositionType(hwcId, HWC2::Composition::Client); - error = hwcLayer->setBuffer(nullptr, Fence::NO_FENCE); - if (error != HWC2::Error::None) { - ALOGE("[%s] Failed to set null buffer: %s (%d)", mName.string(), - to_string(error).c_str(), static_cast(error)); - } return; }