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

Commit 237fc04e authored by android-build-team Robot's avatar android-build-team Robot
Browse files

release-request-dabd8cf7-7af2-48e9-a296-ccc6a71cc25d-for-git_oc-m2-release-432...

release-request-dabd8cf7-7af2-48e9-a296-ccc6a71cc25d-for-git_oc-m2-release-4328410 snap-temp-L55300000101694322

Change-Id: I6e21ea9e17587a48761c45dd577452f0e4da8b39
parents dfa82272 d67d725e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -9,8 +9,7 @@

using android::dvr::ConsumerQueue;

int dvrPoseClientGetDataReader(DvrPoseClient* client,
                               DvrPoseRawDataType data_type,
int dvrPoseClientGetDataReader(DvrPoseClient* client, uint64_t data_type,
                               DvrReadBufferQueue** queue_out) {
  if (!client || !queue_out)
    return -EINVAL;
+2 −2
Original line number Diff line number Diff line
@@ -250,11 +250,11 @@ typedef int (*DvrPoseClientSensorsEnablePtr)(DvrPoseClient* client,
typedef int (*DvrPoseClientDataCapturePtr)(DvrPoseClient* client,
    const DvrPoseDataCaptureRequest* request);
typedef int (*DvrPoseClientDataReaderDestroyPtr)(DvrPoseClient* client,
                                                 DvrPoseRawDataType data_type);
                                                 uint64_t data_type);

// dvr_pose.h
typedef int (*DvrPoseClientGetDataReaderPtr)(DvrPoseClient* client,
                                             DvrPoseRawDataType data_type,
                                             uint64_t data_type,
                                             DvrReadBufferQueue** read_queue);

// services/vr/virtual_touchpad/include/dvr/virtual_touchpad_client.h
+9 −10
Original line number Diff line number Diff line
@@ -99,20 +99,20 @@ typedef struct __attribute__((packed, aligned(16))) DvrPose {
} DvrPose;

// Represents a data type that can be streamed from pose service.
typedef enum DvrPoseRawDataType {
  DVR_POSE_RAW_DATA_STEREO_IMAGE,
  DVR_POSE_RAW_DATA_POINT_CLOUD,
  DVR_POSE_RAW_DATA_FEATURES,
enum {
  DVR_POSE_RAW_DATA_STEREO_IMAGE = (1ULL << 0),
  DVR_POSE_RAW_DATA_POINT_CLOUD = (1ULL << 1),
  DVR_POSE_RAW_DATA_FEATURES = (1ULL << 2),

  // Always last.
  DVR_POSE_RAW_DATA_COUNT,
} DvrPoseRawDataType;
  DVR_POSE_RAW_DATA_COUNT = (1ULL << 3),
};

// A request to retrieve data from the pose service. Expects that a buffer
// queue has been initialized through dvrPoseClientGetDataReader().
typedef struct DvrPoseDataCaptureRequest {
  // The type of data to capture. Refer to enum DvrPoseRawDataType for types.
  DvrPoseRawDataType data_type;
  // The type of data to capture. Refer to enum DVR_POSE_RAW_DATA_* for types.
  uint64_t data_type;
  // The sample interval. This can be used to skip samples. For example, a
  // value of 5 will capture every fifth frame and discard the 4 frames in
  // between. Set to 1 to capture all frames.
@@ -144,8 +144,7 @@ typedef struct DvrPoseDataCaptureRequest {
// be found in the metadata struct DvrNativeBufferMetadata, where width is
// |crop_right| and height is |crop_bottom|/2. Each image is contiguous in
// memory with stride equal to width.
int dvrPoseClientGetDataReader(DvrPoseClient* client,
                               DvrPoseRawDataType data_type,
int dvrPoseClientGetDataReader(DvrPoseClient* client, uint64_t data_type,
                               DvrReadBufferQueue** queue_out);

// TODO(b/65067592): Move pose api's from pose_client.h to here.
+0 −8
Original line number Diff line number Diff line
@@ -349,17 +349,9 @@ DisplayService::GetVisibleDisplaySurfaces() const {

void DisplayService::UpdateActiveDisplaySurfaces() {
  auto visible_surfaces = GetVisibleDisplaySurfaces();

  std::sort(visible_surfaces.begin(), visible_surfaces.end(),
            [](const std::shared_ptr<DisplaySurface>& a,
               const std::shared_ptr<DisplaySurface>& b) {
              return a->z_order() < b->z_order();
            });

  ALOGD_IF(TRACE,
           "DisplayService::UpdateActiveDisplaySurfaces: %zd visible surfaces",
           visible_surfaces.size());

  hardware_composer_.SetDisplaySurfaces(std::move(visible_surfaces));
}

Loading