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

Commit 94a20830 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "fallout of view::Surface / Surface split"

parents 6bd0c13e 032845cc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -23,11 +23,19 @@

#include <binder/Parcel.h>
#include <gui/Surface.h>
#include <gui/view/Surface.h>

namespace android {
namespace hardware {
namespace camera2 {

// These must be in the .cpp (to avoid inlining)
CaptureRequest::CaptureRequest() = default;
CaptureRequest::~CaptureRequest() = default;
CaptureRequest::CaptureRequest(const CaptureRequest& rhs) = default;
CaptureRequest::CaptureRequest(CaptureRequest&& rhs) noexcept = default;


status_t CaptureRequest::readFromParcel(const android::Parcel* parcel) {
    if (parcel == NULL) {
        ALOGE("%s: Null parcel", __FUNCTION__);
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@

#include <camera/camera2/OutputConfiguration.h>
#include <binder/Parcel.h>
#include <gui/Surface.h>
#include <gui/view/Surface.h>
#include <utils/String8.h>

namespace android {
+10 −0
Original line number Diff line number Diff line
@@ -30,6 +30,16 @@ namespace hardware {
namespace camera2 {

struct CaptureRequest : public Parcelable {

    // those are needed so we can use a forward declaration of Surface, otherwise
    // the type is incomplete when the ctor/dtors are generated. This has the added
    // benefit that ctor/dtors are not inlined, which is good because they're not trivial
    // (because of the vtable and Vector<>)
    CaptureRequest();
    CaptureRequest(const CaptureRequest& rhs);
    CaptureRequest(CaptureRequest&& rhs) noexcept;
    virtual ~CaptureRequest();

    CameraMetadata          mMetadata;
    Vector<sp<Surface> >    mSurfaceList;
    bool                    mIsReprocess;