diff options
author | Chris Craik <ccraik@google.com> | 2015-05-13 16:33:04 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-05-13 16:47:19 -0700 |
commit | 1a0808e64c170fa7b620b858fa5875f6f08a2b54 (patch) | |
tree | 6503695e18d11985a9a86257bd78ddced75e3e13 /libs/hwui/RenderNode.cpp | |
parent | 55e603ee9de06125751292c84f1b25fb9a78d4e4 (diff) | |
download | frameworks_base-1a0808e64c170fa7b620b858fa5875f6f08a2b54.zip frameworks_base-1a0808e64c170fa7b620b858fa5875f6f08a2b54.tar.gz frameworks_base-1a0808e64c170fa7b620b858fa5875f6f08a2b54.tar.bz2 |
Add back alpha atrace log
bug:20922838
Change-Id: I70ccbffdd5f140cd1dd71fbf456fb5b085e74a4a
Diffstat (limited to 'libs/hwui/RenderNode.cpp')
-rw-r--r-- | libs/hwui/RenderNode.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index 8f95e0d..9146b68 100644 --- a/libs/hwui/RenderNode.cpp +++ b/libs/hwui/RenderNode.cpp @@ -392,6 +392,13 @@ void RenderNode::setViewProperties(OpenGLRenderer& renderer, T& handler) { } LOG_ALWAYS_FATAL_IF(!isLayer && properties().getHasOverlappingRendering()); renderer.scaleAlpha(properties().getAlpha()); + + if (CC_UNLIKELY(ATRACE_ENABLED() && properties().promotedToLayer())) { + // pretend to cause savelayer to warn about performance problem affecting old versions + ATRACE_FORMAT("%s alpha caused saveLayer %dx%d", getName(), + static_cast<int>(getWidth()), + static_cast<int>(getHeight())); + } } if (clipFlags) { Rect clipRect; |