Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0258cebc authored by Peiyong Lin's avatar Peiyong Lin
Browse files

[composer] Add createCommandWriter to command engine.

Command engine always uses V2.1 CommandWriterBase, change the creation of
command writer inside command engine so that we can use the right version of
command writer.

This patch updates VR composer to match the change.

BUG: b/147365206
Test: build and boot.
Change-Id: I373768a80947a3856b10de72aac4ca72926fbee5
parent 815bb3d4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ bool VrComposerClient::VrCommandEngine::executeSetLayerInfo(uint16_t length) {

  auto err = mVrHal.setLayerInfo(mCurrentDisplay, mCurrentLayer, read(), read());
  if (err != Error::NONE) {
    mWriter.setError(getCommandLoc(), err);
    mWriter->setError(getCommandLoc(), err);
  }

  return true;
@@ -86,7 +86,7 @@ bool VrComposerClient::VrCommandEngine::executeSetClientTargetMetadata(

  auto err = mVrHal.setClientTargetMetadata(mCurrentDisplay, readBufferMetadata());
  if (err != Error::NONE)
    mWriter.setError(getCommandLoc(), err);
    mWriter->setError(getCommandLoc(), err);

  return true;
}
@@ -99,7 +99,7 @@ bool VrComposerClient::VrCommandEngine::executeSetLayerBufferMetadata(
  auto err = mVrHal.setLayerBufferMetadata(mCurrentDisplay, mCurrentLayer,
                                           readBufferMetadata());
  if (err != Error::NONE)
    mWriter.setError(getCommandLoc(), err);
    mWriter->setError(getCommandLoc(), err);

  return true;
}