summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Plunkett <patplunkett@google.com>2017-07-12 14:09:27 -0700
committerPat Plunkett <patplunkett@google.com>2017-09-08 08:31:20 -0700
commit9db7166d7cf1ef4b9b1a0a997fada57318851e74 (patch)
treeac4b2f511b959729530b1b3f477fbf61e735e732
parenta60e6a4548141eb6c179607ff6debba374e3a211 (diff)
downloadnative-9db7166d7cf1ef4b9b1a0a997fada57318851e74.tar.gz
Set the layer composition type in HWC
Setting up the VR hardware composer was causing a call to setLayerCompositionType with an invalid composition type. This removes the call, since setting the layer composition type is already handled in Layer::Prepare(). Bug: 63633934 Test: Start VR mode, check that the logcat errors are no longer present. Change-Id: I94f9a253bce9c5c25be7927d0003adbb9409ab36
-rw-r--r--libs/vr/libvrflinger/hardware_composer.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/vr/libvrflinger/hardware_composer.cpp b/libs/vr/libvrflinger/hardware_composer.cpp
index d595896296..c19fb249dd 100644
--- a/libs/vr/libvrflinger/hardware_composer.cpp
+++ b/libs/vr/libvrflinger/hardware_composer.cpp
@@ -1060,14 +1060,6 @@ void Layer::UpdateLayerSettings() {
UpdateVisibilitySettings();
- error = composer_->setLayerCompositionType(
- display, hardware_composer_layer_,
- composition_type_.cast<Hwc2::IComposerClient::Composition>());
- ALOGE_IF(
- error != HWC::Error::None,
- "Layer::UpdateLayerSettings: Error setting layer composition type: %s",
- error.to_string().c_str());
-
// TODO(eieio): Use surface attributes or some other mechanism to control
// the layer display frame.
error = composer_->setLayerDisplayFrame(