summaryrefslogtreecommitdiff
path: root/tools/emulator/opengl/system/gralloc/gralloc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move emulator HALs to device/generic/goldfishkeunyoung2013-03-111-929/+0
| | | | Change-Id: I1ff304d540c75c4d27c5fddeb7315e177d366fb3
* Revert "Revert "Gralloc: Support HW_CAMERA_READ/HW_CAMERA_ZSL usage.""Eino-Ville Talvala2012-09-041-4/+10
| | | | | | | | Missing project ready to go. This reverts commit 9642da51023d5dadaa3b544f100e84dfdbcabea3 Change-Id: I08a43e9cdcb06bd6b74fd08809bbaf801c2eb44f
* Revert "Gralloc: Support HW_CAMERA_READ/HW_CAMERA_ZSL usage."Eino-Ville Talvala2012-09-041-10/+4
| | | | | | | | More dependent projects than I realized This reverts commit a84522d2f373aeb859490ec4015f548956a4818d Change-Id: Ifb50c94a2a5dfa91573f07695d8f3bfcadc79742
* Gralloc: Support HW_CAMERA_READ/HW_CAMERA_ZSL usage.Eino-Ville Talvala2012-09-041-4/+10
| | | | | | | | This is needed for passing buffers to the camera HAL for reprocessing. Bug: 6243944 Change-Id: Ibf8d15aead571ddb3b62674cf7afe0d508ca24e7
* EmulatedFakeCamera2: Use HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINEDEino-Ville Talvala2012-08-281-2/+5
| | | | | | | Stop using CAMERA2_HAL_PIXEL_FORMAT_OPAQUE. Bug: 6243944 Change-Id: I96ea30228b126b4eed560a760269cb50bbbb62f7
* Emulator gralloc: Fix RAW_SENSOR conditions.Eino-Ville Talvala2012-08-201-2/+2
| | | | | | | Allow RAW_SENSOR to be used for any combination of CPU read/write and Camera read/write, instead of only camera->cpu or cpu->camera. Change-Id: I032b9531e9069a202c1a3767b77975c808703285
* Emulator gralloc: Support YV12Eino-Ville Talvala2012-08-201-4/+13
| | | | | Bug: 6243944 Change-Id: I5f416ab0ae15143df422c0f79d91841984b4fabe
* gralloc: Add automatic format selection. DO NOT MERGEEino-Ville Talvala2012-07-261-16/+57
| | | | | | | | | | | Have gralloc_alloc be able to select the appropriate pixel format given the endpoints, triggered by new GRALLOC_EMULATOR_PIXEL_FORMAT_AUTO format. Currently supports camera->screen, and camera->video encoder. Bug: 6243944 Change-Id: Ib1bf8da8d9184ac99e7f50aad09212c146c32809
* gralloc: Support HAL_PIXEL_FORMAT_YCrCb_420_SP (NV21)Eino-Ville Talvala2012-07-111-3/+15
| | | | | | | This is needed for Camera HAL2 video recording. Bug: 6243944 Change-Id: I47a3e65117881612fb95068a80f811cc8378fbc6
* Emulator gralloc: Support HAL_PIXEL_FORMAT_BLOBEino-Ville Talvala2012-06-131-0/+11
| | | | | Bug: 6243944 Change-Id: I2864bc59be9df8741639a291c71e2f65dde5bc0b
* Move emugl system code to development.gitJesse Hall2012-06-061-0/+847
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of the way the SDK and Android system images are branched, host code that goes into the SDK tools can't live in the same repository as code that goes into the system image. This change keeps the emugl host code in sdk.git/emulator/opengl while moving the emugl system code to development.git/tools/emulator/opengl. A few changes were made beyond simply cloning the directories: (a) Makefiles were modified to only build the relevant components. Not doing so would break the build due to having multiple rule definitions. (b) Protocol spec files were moved from the guest encoder directories to the host decoder directories. The decoder must support older versions of the protocol, but not newer versions, so it makes sense to keep the latest version of the protocol spec with the decoder. (c) Along with that, the encoder is now built from checked in generated encoder source rather than directly from the protocol spec. The generated code must be updated manually. This makes it possible to freeze the system encoder version without freezing the host decoder version, and also makes it very obvious when a protocol changes is happening that will require special backwards-compatibility support in the decoder/renderer. (d) Host-only and system-only code were removed from the repository where they aren't used. (e) README and DESIGN documents were updated to reflect this split. No actual source code was changed due to the above. Change-Id: I2c936101ea0405b372750d36ba0f01e84d719c43
* Move emulator GLES from development.git to sdk.gitJesse Hall2012-04-181-831/+0
| | | | | | | | | | | | | | | The emulator GLES support has two interfaces: a host shared library interface used by QEMU, and a protocol between the platform and the host. The host library interface is not versioned; QEMU and the GLES renderer must match. The protocol on the other hand must be backwards compatible: a new GLES renderer must support an older platform image. Thus for branching purposes it makes more sense to put the GLES renderer in sdk.git, which is branched along with qemu.git for SDK releases. Platform images will be built against the protocol version in the platform branch of sdk.git. Change-Id: Ie73fce12815c9740e27d0f56caa53c6ceb3d30cc
* EmuGL: refcount ColorBuffers on the hostJesse Hall2012-02-211-2/+14
| | | | | | | | | | | | | | | | | | The gralloc API assumes system-wide reference counting of gralloc buffers. The host-GL accelerated gralloc maps buffers to host-side ColorBuffer objects, but was destroying them unconditionally in gralloc_free(), ignoring any additional references from gralloc_register_buffer(). This affected the SurfaceTexture gralloc buffers used by the Browser/WebView. For some reason these buffers are actually allocated by SurfaceFlinger and passed back to the WebView through Binder. But since SurfaceFlinger doesn't actually need the buffer for anything, sometime after the WebView has called gralloc_register_buffer() SurfaceFlinger calls gralloc_free() on it. This caused the host ColorBuffer to be destroyed long before the WebView is done using it. Change-Id: I33dbee887a48a6907041cf19e9f38a1f6c983eff
* emulator: opengl: improve gralloc debug tracesDavid 'Digit' Turner2011-09-201-17/+38
| | | | | | + shut up the gralloc module for now. Change-Id: I7d22c63f298c4e50d96655adf4025a65b7405c28
* emulator: opengl: Back-port GLES emulation from the master tree.David 'Digit' Turner2011-09-201-0/+798
The modules here are only built when BUILD_EMULATOR_OPENGL is defined to true in your environment or your BoardConfig.mk (see tools/emulator/opengl/Android.mk) Change-Id: I5f32c35b4452fb5a7b4d5f9fc5870ec1da6032e6