diff options
author | Louis Huemiller <lhuemill@google.com> | 2011-01-10 17:21:15 -0800 |
---|---|---|
committer | Louis Huemiller <lhuemill@google.com> | 2011-01-10 17:21:15 -0800 |
commit | 35ad62763fe5937c51a32cd1e285cffa4971298f (patch) | |
tree | a7c4d2e0dc338b1bc7eb73ccfe068b95c478b1e7 /opengl/tests/hwc/hwcTestLib.cpp | |
parent | 5e63e2515f3f0d2712d80f2cb27f263f8d3d1081 (diff) |
Hardware Composer Test Overlap Stats
Change-Id: I2f4a02924149f3964de31fb6250f4c21a64d96aa
Diffstat (limited to 'opengl/tests/hwc/hwcTestLib.cpp')
-rw-r--r-- | opengl/tests/hwc/hwcTestLib.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/opengl/tests/hwc/hwcTestLib.cpp b/opengl/tests/hwc/hwcTestLib.cpp index a468a9219a06..925405e69a26 100644 --- a/opengl/tests/hwc/hwcTestLib.cpp +++ b/opengl/tests/hwc/hwcTestLib.cpp @@ -475,14 +475,14 @@ void hwcTestDisplayList(hwc_layer_list_t *list) testPrintI(" displayFrame: %s", hwcTestRect2str(list->hwLayers[layer].displayFrame).c_str()); testPrintI(" scaleFactor: [%f, %f]", - (float) (list->hwLayers[layer].displayFrame.right - - list->hwLayers[layer].displayFrame.left) - / (float) (list->hwLayers[layer].sourceCrop.right - - list->hwLayers[layer].sourceCrop.left), - (float) (list->hwLayers[layer].displayFrame.bottom - - list->hwLayers[layer].displayFrame.top) - / (float) (list->hwLayers[layer].sourceCrop.bottom - - list->hwLayers[layer].sourceCrop.top)); + (float) (list->hwLayers[layer].sourceCrop.right + - list->hwLayers[layer].sourceCrop.left) + / (float) (list->hwLayers[layer].displayFrame.right + - list->hwLayers[layer].displayFrame.left), + (float) (list->hwLayers[layer].sourceCrop.bottom + - list->hwLayers[layer].sourceCrop.top) + / (float) (list->hwLayers[layer].displayFrame.bottom + - list->hwLayers[layer].displayFrame.top)); } } @@ -494,7 +494,11 @@ void hwcTestDisplayList(hwc_layer_list_t *list) */ void hwcTestDisplayListPrepareModifiable(hwc_layer_list_t *list) { + uint32_t numOverlays = 0; for (unsigned int layer = 0; layer < list->numHwLayers; layer++) { + if (list->hwLayers[layer].compositionType == HWC_OVERLAY) { + numOverlays++; + } testPrintI(" layer %u compositionType: %#x%s%s", layer, list->hwLayers[layer].compositionType, (list->hwLayers[layer].compositionType == HWC_FRAMEBUFFER) @@ -508,6 +512,7 @@ void hwcTestDisplayListPrepareModifiable(hwc_layer_list_t *list) (list->hwLayers[layer].hints & HWC_HINT_CLEAR_FB) ? " CLEAR_FB" : ""); } + testPrintI(" numOverlays: %u", numOverlays); } /* |