Home
last modified time | relevance | path

Searched refs:buffer_idx (Results 1 – 3 of 3) sorted by relevance

/device/google/cuttlefish/host/libs/screen_connector/
Dsocket_based_screen_connector.cpp32 int buffer_idx = WaitForNewFrameSince(&frame_number); in OnFrameAfter() local
33 void* buffer = GetBuffer(buffer_idx); in OnFrameAfter()
47 void* SocketBasedScreenConnector::GetBuffer(int buffer_idx) { in GetBuffer() argument
48 if (buffer_idx < 0) return nullptr; in GetBuffer()
49 buffer_idx %= NUM_BUFFERS_; in GetBuffer()
50 return &buffer_[buffer_idx * ScreenSizeInBytes()]; in GetBuffer()
97 void SocketBasedScreenConnector::BroadcastNewFrame(int buffer_idx) { in BroadcastNewFrame() argument
101 newest_buffer_ = buffer_idx; in BroadcastNewFrame()
Dsocket_based_screen_connector.h41 void* GetBuffer(int buffer_idx);
43 void BroadcastNewFrame(int buffer_idx);
/device/google/cuttlefish/guest/hals/hwcomposer/common/
Dcpu_composer.cpp399 void CpuComposer::CompositeLayer(hwc_layer_1_t* src_layer, int buffer_idx) { in CompositeLayer() argument
428 reinterpret_cast<uint8_t*>(screen_view_->GetBuffer(buffer_idx)); in CompositeLayer()
640 int buffer_idx = screen_view_->NextBuffer(); in SetLayers() local
662 CompositeLayer(&layers[idx], buffer_idx); in SetLayers()
674 CompositeLayer(&layers[idx], buffer_idx); in SetLayers()
680 screen_view_->Broadcast(buffer_idx); in SetLayers()