diff options
author | Louis Huemiller <lhuemill@google.com> | 2011-01-10 18:03:05 -0800 |
---|---|---|
committer | Louis Huemiller <lhuemill@google.com> | 2011-01-10 18:03:05 -0800 |
commit | ee8e64a539f147b8b01dffde4ec8654b64f855be (patch) | |
tree | 3e3f50d380aa89c999095dd2eaea48197359c6fa /opengl | |
parent | 06c3ae9457d602461d249b0146e92b84a740eb32 (diff) | |
download | frameworks_native-ee8e64a539f147b8b01dffde4ec8654b64f855be.tar.gz frameworks_native-ee8e64a539f147b8b01dffde4ec8654b64f855be.tar.bz2 frameworks_native-ee8e64a539f147b8b01dffde4ec8654b64f855be.zip |
Hardware Composer Test hwcCommit set blend type
Change-Id: If345641bd009cfd131b1a8e74cd4a9e8e4a7dfc7
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/tests/hwc/hwcCommit.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/opengl/tests/hwc/hwcCommit.cpp b/opengl/tests/hwc/hwcCommit.cpp index e063dee05..66ccdae70 100644 --- a/opengl/tests/hwc/hwcCommit.cpp +++ b/opengl/tests/hwc/hwcCommit.cpp @@ -1284,21 +1284,24 @@ uint32_t numOverlapping(uint32_t backgroundFormat, uint32_t foregroundFormat, uint32_t backgroundBlend, uint32_t foregroundBlend) { list<Rectangle> rectList; + Rectangle background(backgroundFormat, startDim, startDim); - Rectangle foreground(foregroundFormat, startDim, startDim); + background.blend = backgroundBlend; + rectList.push_back(background); // TODO: Handle cases where startDim is so small that adding 5 // causes frames not to overlap. // TODO: Handle cases where startDim is so large that adding 5 // cause a portion or all of the foreground displayFrame // to be off the display. + Rectangle foreground(foregroundFormat, startDim, startDim); foreground.displayFrame.left += 5; foreground.displayFrame.top += 5; foreground.displayFrame.right += 5; foreground.displayFrame.bottom += 5; - - rectList.push_back(background); + background.blend = foregroundBlend; rectList.push_back(foreground); + uint32_t num = numOverlays(rectList); return num; |