Home
last modified time | relevance | path

Searched refs:buffer_ (Results 1 – 10 of 10) sorted by relevance

/device/generic/goldfish-opengl/system/hwc3/
DGralloc.cpp243 : gralloc_(gralloc), buffer_(buffer) {} in GrallocBuffer()
251 buffer_ = rhs.buffer_; in operator =()
253 rhs.buffer_ = nullptr; in operator =()
258 if (gralloc_ && buffer_) { in Release()
259 gralloc_->Release(buffer_); in Release()
261 buffer_ = nullptr; in Release()
266 if (gralloc_ && buffer_) { in Lock()
274 auto locked_opt = gralloc_->Lock(buffer_); in Lock()
280 auto locked_ycbcr_opt = gralloc_->LockYCbCr(buffer_); in Lock()
292 if (gralloc_ && buffer_) { in Unlock()
[all …]
DGralloc.h99 buffer_handle_t buffer_ = nullptr; variable
/device/google/cuttlefish/guest/hals/camera/
Dcached_stream_buffer.cpp43 : buffer_(nullptr), buffer_id_(0), stream_id_(0), acquire_fence_(-1) {} in CachedStreamBuffer()
46 : buffer_(buffer.buffer.getNativeHandle()), in CachedStreamBuffer()
50 g_importer.importBuffer(buffer_); in CachedStreamBuffer()
55 buffer_ = from.buffer_; in CachedStreamBuffer()
60 from.buffer_ = nullptr; in CachedStreamBuffer()
66 buffer_ = from.buffer_; in operator =()
71 from.buffer_ = nullptr; in operator =()
77 if (buffer_ != nullptr) { in ~CachedStreamBuffer()
78 g_importer.freeBuffer(buffer_); in ~CachedStreamBuffer()
101 g_importer.lockYCbCr(buffer_, GRALLOC_USAGE_SW_WRITE_OFTEN, region); in acquireAsYUV()
[all …]
Dcached_stream_buffer.h55 bool valid() const { return buffer_ != nullptr; } in valid()
68 buffer_handle_t buffer_;
/device/google/cuttlefish/host/libs/input_connector/
Dsocket_input_connector.cpp53 InputEventsBufferImpl(size_t num_events) { buffer_.reserve(num_events); } in InputEventsBufferImpl()
55 buffer_.push_back({.type = type, .code = code, .value = value}); in AddEvent()
57 T* data() { return buffer_.data(); } in data()
58 const void* data() const override { return buffer_.data(); } in data()
59 std::size_t size() const override { return buffer_.size() * sizeof(T); } in size()
62 std::vector<T> buffer_; member
/device/google/cuttlefish/host/libs/audio_connector/
Dbuffers.cpp31 buffer_(const_cast<uint8_t*>(buffer)) {} in ShmBuffer()
38 buffer_(other.buffer_) { in ShmBuffer()
Dbuffers.h56 const uint8_t* get() const { return buffer_; } in get()
65 uint8_t* buffer_;
76 uint8_t* get() { return buffer_; } in get()
/device/google/cuttlefish/host/frontend/webrtc/libdevice/
Dserver_connection.cpp85 : buffer_(LWS_PRE + len), is_binary_(binary) { in WsBuffer()
86 memcpy(&buffer_[LWS_PRE], data, len); in WsBuffer()
89 uint8_t* data() { return &buffer_[LWS_PRE]; } in data()
91 size_t size() const { return buffer_.size() - LWS_PRE; } in size()
94 std::vector<uint8_t> buffer_; member
/device/google/cuttlefish/host/frontend/webrtc/
Daudio_handler.cpp133 : buffer_(buffer), in CvdAudioFrameBuffer()
147 const uint8_t* data() const override { return buffer_; } in data()
150 const uint8_t* buffer_; member in cuttlefish::__anonb5de83a60111::CvdAudioFrameBuffer
/device/generic/opengl-transport/host/libs/virglrenderer/
DRenderControl.cpp704 static uint32_t rcCreateClientImage(void* ctx_, uint32_t context_, EGLenum target, GLuint buffer_) { in rcCreateClientImage() argument
713 EGLClientBuffer buffer = reinterpret_cast<EGLClientBuffer>(buffer_); in rcCreateClientImage()