class FakeLogicalBufferCollection
Defined at line 14 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h
Public Methods
void WaitForBuffersAllocated (fit::function<void (int32_t, fuchsia::sysmem::BufferCollectionInfo_2)> callback)
Immediately call the callback when the client waits for buffers to be allocated.
The buffer collection passed back through the callback is empty.
Defined at line 13 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.cc
void FakeLogicalBufferCollection (async_dispatcher_t * dispatcher)
Defined at line 16 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h
void SetConstraints (bool has_constraints, fuchsia::sysmem::BufferCollectionConstraints constraints)
Do nothing on getting constraints.
Defined at line 19 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h
fidl::InterfaceHandle<fuchsia::sysmem::BufferCollection> GetBufferCollection ()
Produce the client side of a connection to this server. This can only be called once.
Defined at line 23 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.cc
void Close ()
Defined at line 27 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h
void SetBufferError (bool give_error)
If |give_error| is set to true, subsequent calls to WaitForBuffersAllocated will return
an error.
Defined at line 31 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h
bool closed ()
Defined at line 33 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h
void CheckBuffersAllocated (fit::function<void (int32_t)> callback)
These functions are here for the class to compile, but we do not use them:
Defined at line 39 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h
void Sync (fit::function<void ()> callback)
Defined at line 40 of file ../../src/camera/lib/fake_logical_buffer_collection/fake_logical_buffer_collection.h