diff options
author | Jesse Hall <jessehall@google.com> | 2012-06-05 23:40:32 -0700 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2012-06-14 12:35:32 -0700 |
commit | 5880cc573823148237eac9ab7bc586b8e4eb7160 (patch) | |
tree | e5e02f74fd18e3c9450de630d9d9b09867db5fc3 /opengl/tests/hwc/hwcStress.cpp | |
parent | 3e8b853d67c737abdb363f9c978e7d83eac4d888 (diff) | |
download | frameworks_native-5880cc573823148237eac9ab7bc586b8e4eb7160.zip frameworks_native-5880cc573823148237eac9ab7bc586b8e4eb7160.tar.gz frameworks_native-5880cc573823148237eac9ab7bc586b8e4eb7160.tar.bz2 |
Add support for HWC_DEVICE_API_VERSION_1_0
The acquire and release fences aren't yet used; this is just support
for the new version and temporary backwards compatibility for older
versions.
Change-Id: Ia5ccc05a97c86f649042b9a35e11042fa0187e84
Diffstat (limited to 'opengl/tests/hwc/hwcStress.cpp')
-rw-r--r-- | opengl/tests/hwc/hwcStress.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opengl/tests/hwc/hwcStress.cpp b/opengl/tests/hwc/hwcStress.cpp index b02a424..ccc7328 100644 --- a/opengl/tests/hwc/hwcStress.cpp +++ b/opengl/tests/hwc/hwcStress.cpp @@ -192,7 +192,7 @@ const vector<unsigned int> vecTransformFlags(transformFlags, // File scope globals static const int texUsage = GraphicBuffer::USAGE_HW_TEXTURE | GraphicBuffer::USAGE_SW_WRITE_RARELY; -static hwc_composer_device_t *hwcDevice; +static hwc_composer_device_1_t *hwcDevice; static EGLDisplay dpy; static EGLSurface surface; static EGLint width, height; @@ -409,7 +409,7 @@ main(int argc, char *argv[]) // generated for this pass. srand48(pass); - hwc_layer_list_t *list; + hwc_layer_list_1_t *list; list = hwcTestCreateLayerList(testRandMod(frames.size()) + 1); if (list == NULL) { testPrintE("hwcTestCreateLayerList failed"); @@ -428,7 +428,7 @@ main(int argc, char *argv[]) for (unsigned int n1 = 0; n1 < list->numHwLayers; n1++) { unsigned int idx = testRandMod(selectedFrames[n1].size()); sp<GraphicBuffer> gBuf = selectedFrames[n1][idx]; - hwc_layer_t *layer = &list->hwLayers[n1]; + hwc_layer_1_t *layer = &list->hwLayers[n1]; layer->handle = gBuf->handle; layer->blending = blendingOps[testRandMod(NUMA(blendingOps))]; @@ -497,7 +497,7 @@ main(int argc, char *argv[]) for (unsigned int n1 = 0; n1 < list->numHwLayers; n1++) { unsigned int idx = testRandMod(selectedFrames[n1].size()); sp<GraphicBuffer> gBuf = selectedFrames[n1][idx]; - hwc_layer_t *layer = &list->hwLayers[n1]; + hwc_layer_1_t *layer = &list->hwLayers[n1]; layer->handle = (native_handle_t *) gBuf->handle; } |