summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-01-28 22:31:55 -0800
committerMathias Agopian <mathias@google.com>2012-01-28 22:31:55 -0800
commit25e66fc324bbc004fa8902b2d4699e41bb601104 (patch)
tree803229d4893c657201f019c2739af56b189370d2 /services/surfaceflinger/Layer.cpp
parent751ecf24fd8e40f62d0b683779006a556f012503 (diff)
downloadframeworks_native-25e66fc324bbc004fa8902b2d4699e41bb601104.zip
frameworks_native-25e66fc324bbc004fa8902b2d4699e41bb601104.tar.gz
frameworks_native-25e66fc324bbc004fa8902b2d4699e41bb601104.tar.bz2
added a few more commands to SF's dumpsys
--latency-clear [name] clears the latency data for the specified layer or for all layers if none is specified --list prints the list of all layers regardless of their visibility Change-Id: I7c07ae020f838c173b98ee50f3fb3e93da78acbb
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index a294281..8e87b88 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -553,8 +553,6 @@ void Layer::dump(String8& result, char* buffer, size_t SIZE) const
result.append(buffer);
- LayerBase::dumpStats(result, buffer, SIZE);
-
if (mSurfaceTexture != 0) {
mSurfaceTexture->dump(result, " ", buffer, SIZE);
}
@@ -580,6 +578,12 @@ void Layer::dumpStats(String8& result, char* buffer, size_t SIZE) const
result.append("\n");
}
+void Layer::clearStats()
+{
+ LayerBaseClient::clearStats();
+ memset(mFrameStats, 0, sizeof(mFrameStats));
+}
+
uint32_t Layer::getEffectiveUsage(uint32_t usage) const
{
// TODO: should we do something special if mSecure is set?