summaryrefslogtreecommitdiff
path: root/libs/vr/libbufferhub/ion_buffer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change return values of type status_t from NO_ERROR to OKTianyu Jiang2018-11-301-3/+3
| | | | | | | | | | | | | | | in bufferhub related directories Bug: 118696702 Fixes: 118696702 Test: all tests pass. AHardwareBufferTest BufferHubBuffer_test BufferHubMetadata_test buffer_hub_binder_service-test buffer_hub_queue_producer-test libgui_test libsensor_test vrflinger_test buffer_hub-test buffer_hub_queue-test dvr_buffer_queue-test dvr_api-test dvr_display-test Change-Id: Iee198ddbec035856185fcab34b0d631bd3726b77
* Add noexcept to move constructors and assignment operators.Chih-Hung Hsieh2018-10-011-2/+2
| | | | | | Bug: 116614593 Test: build with WITH_TIDY=1 Change-Id: I47101c362198665194f8b3248751caaa7da32505
* dvrapi: Pass layer_count downHendrik Wagenaar2017-05-081-36/+40
| | | | | | | | | * We were missing layer count, which would prevent multiview from working Bug: 37245304 Test: MultiLayerBufferQueue Change-Id: I88b41f1aa7665df01e89a7386cbc23b15c9a79b0
* Deprecate producer/consumer usage: Step 1Jiwen 'Steve' Cai2017-05-021-83/+27
| | | | | | | | Clean up producer/consumer usage from IonBuffer. Bug: 37881101 Test: Build, flash, ran particles.apk Change-Id: I66a8c4db2348b014a7b458b69157ed7c150112e1
* vr: Adjust for libui gralloc flags changeChris Forbes2017-04-251-6/+11
| | | | | | Change-Id: I24dbe407ad9139ba1d206b9074c7c507537d198c Bug: b/33350696 Test: Bullhead: booted to launcher, take photo, watch youtube
* Update BufferHub service/client with support for gralloc1 usage.Corey Tabaka2017-04-071-52/+119
| | | | | | | | | | - Add support for gralloc1 usage flags. - Mimic how GraphicBuffer supports gralloc0 usage flags: (usage, usage). - Move to using pdx::Status<T> since we're touching signatures everywhere. Bug: 36401174 Test: bufferhub_tests; buffer_hub_queue-test Change-Id: I0e5184197b21eda9806bbea44f63b546b030692a
* libui: clean up GraphicBuffer interfaceChia-I Wu2017-04-031-9/+6
| | | | | | | | | | | | | | | | | | | | | | | Other than transferring the ownership, some callers want to control whether to register or to clone the handle when creating a GraphicBuffer from a handle. Add a new constructor with HandleWrapMethod for finer controls, to replace the one that has only a boolean, keepOwnership. The motivation is to enable users to construct GraphicBuffer without fighting with GraphicBufferMapper::registerBuffer first. More generally, GraphicBufferMapper::{registerBuffer,unregisterBuffer} is tricky to use correctly. They should really be considered private by most. While at it, deprecate constructors that do not distinguish producer/consumer usage. It turns out GraphicBuffer is used by some proprietary libraries. I have to maintain the ABI and cannot remove the deprecated constructors. Bug: 36355756 Test: boots Change-Id: Ieea618d8495f06a6233299d076fb821127cd6bf8
* Refactor IonBuffer to use GraphicBufferMark Urbanus2017-03-161-150/+51
| | | | | | | | | | - Replace gralloc0 based implementation with GraphicBuffer implementation. - Removed incompatible ion-buffer unit-tests. - Added libui dependencies to dependants. Bug: 34879523 Test: Tested on Lucid, validated graphics and poses are working Change-Id: I49a129f269d54c81bda93b44d879d4b8dee2006a
* Remove references to libchromeAlex Vakulenko2017-02-021-1/+1
| | | | | | | | | Removed dependencies on libchrome which was used mostly for logging and switched over to standard Android log macros. Bug: None Test: `m -j32` still succeeds Change-Id: I0a841c19c15c02f9a031af200e82837f9450d88a
* Add DaydreamVR native libraries and servicesAlex Vakulenko2017-01-281-0/+322
Upstreaming the main VR system components from master-dreamos-dev into goog/master. Bug: None Test: `m -j32` succeeds. Sailfish boots and basic_vr sample app works Change-Id: I853015872afc443aecee10411ef2d6b79184d051