OSDN Git Service

HWC2: Don't set null handle for client layers
authorDan Stoza <stoza@google.com>
Tue, 21 Jun 2016 22:02:23 +0000 (15:02 -0700)
committerSteve Kondik <steve@cyngn.com>
Wed, 5 Oct 2016 01:33:10 +0000 (18:33 -0700)
Removes the code that explicitly set a null buffer handle for client
layers.

Test: Cherry-pick from internal branch
Bug: 29463310
Change-Id: I570e6041ba72d64971bb6c364e8e7b6f84eeff08

services/surfaceflinger/Layer.cpp

index 9716506..928a6ba 100644 (file)
@@ -737,11 +737,6 @@ void Layer::setPerFrameData(const sp<const DisplayDevice>& 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<int32_t>(error));
-        }
         return;
     }