diff options
| author | 2018-08-28 00:34:07 +0000 | |
|---|---|---|
| committer | 2018-08-28 00:34:07 +0000 | |
| commit | dc3a107e805cbdef29e06bc022ca5f9dc13a8fe3 (patch) | |
| tree | 63edaa29db89a54ea58fdae57affb1b09e16394e /services/surfaceflinger/LayerBE.cpp | |
| parent | 6407571b2233f69c7bb5abe41cc6fe7de2cd8e8a (diff) | |
| parent | fb95bccad4a39a320f8d76d1f3a7f48b952daab3 (diff) | |
Merge "SF: Use compositionInfo after HWC changedTypes"
Diffstat (limited to 'services/surfaceflinger/LayerBE.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerBE.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/services/surfaceflinger/LayerBE.cpp b/services/surfaceflinger/LayerBE.cpp index 3e04f266af..9c6534e0d9 100644 --- a/services/surfaceflinger/LayerBE.cpp +++ b/services/surfaceflinger/LayerBE.cpp @@ -46,6 +46,11 @@ void LayerBE::onLayerDisplayed(const sp<Fence>& releaseFence) { mLayer->onLayerDisplayed(releaseFence); } +void LayerBE::clear(RE::RenderEngine& engine) { + engine.setupFillWithColor(0, 0, 0, 0); + engine.drawMesh(mMesh); +} + void CompositionInfo::dump(const char* tag) const { std::string logString; @@ -89,22 +94,12 @@ void CompositionInfo::dumpRe(std::string& result, const char* tag) const { result += base::StringPrintf("[%s]RenderEngine parameters:\n", tag); } - Mesh& mesh = layer->getMesh(); result += base::StringPrintf("\tblackoutLayer=%d\n", re.blackoutLayer); result += base::StringPrintf("\tclearArea=%d\n", re.clearArea); result += base::StringPrintf("\tpreMultipliedAlpha=%d\n", re.preMultipliedAlpha); result += base::StringPrintf("\topaque=%d\n", re.opaque); result += base::StringPrintf("\tdisableTexture=%d\n", re.disableTexture); - result += base::StringPrintf("\ttexture:name(%d), target(%d), size(%d/%d)\n", re.texture.getTextureName(), re.texture.getTextureTarget(), (unsigned int)re.texture.getWidth(), (unsigned int)re.texture.getHeight()); result += base::StringPrintf("\tuseIdentityTransform=%d\n", re.useIdentityTransform); - Mesh::VertexArray<vec2> positions(mesh.getPositionArray<vec2>()); - result += base::StringPrintf("\tpositions[(%6.1f,%6.1f), (%6.1f,%6.1f), (%6.1f,%6.1f), (%6.1f,%6.1f)]\n", - positions[0][0], positions[0][1], positions[1][0], positions[1][1], - positions[2][0], positions[2][1], positions[3][0], positions[3][1]); - Mesh::VertexArray<vec2> texCoords(mesh.getTexCoordArray<vec2>()); - result += base::StringPrintf("\ttexCoords[(%6.1f,%6.1f), (%6.1f,%6.1f),(%6.1f,%6.1f),(%6.1f,%6.1f)]\n", - texCoords[0][0], texCoords[0][1], texCoords[1][0], texCoords[1][1], - texCoords[2][0], texCoords[2][1], texCoords[3][0], texCoords[3][1]); } void CompositionInfo::dump(std::string& result, const char* tag) const @@ -134,6 +129,4 @@ void CompositionInfo::dump(std::string& result, const char* tag) const } } - - }; // namespace android |