summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-08-04 21:10:38 -0700
committerMathias Agopian <mathias@google.com>2012-08-04 21:23:47 -0700
commit888c822c4cb6976aab9256c58bae9e17e3e55c5c (patch)
treee1d93016bcd7171077378abca4712bfff7dd4ef9 /services/surfaceflinger/Layer.cpp
parent72131d9ef13ffaf3af4ca2fe700426b82baac9fa (diff)
downloadframeworks_native-888c822c4cb6976aab9256c58bae9e17e3e55c5c.zip
frameworks_native-888c822c4cb6976aab9256c58bae9e17e3e55c5c.tar.gz
frameworks_native-888c822c4cb6976aab9256c58bae9e17e3e55c5c.tar.bz2
remove a dependency of DisplayDevice on the refresh rate
this remove a dependency (not all) on FramebufferSurface Change-Id: Ie07ce70760cdcedfb41b5b41bea8da45637bf474
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 7da0c9b..f72000f 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -729,7 +729,7 @@ void Layer::dumpStats(String8& result, char* buffer, size_t SIZE) const
LayerBaseClient::dumpStats(result, buffer, SIZE);
const size_t o = mFrameLatencyOffset;
const DisplayDevice& hw(mFlinger->getDefaultDisplayDevice());
- const nsecs_t period = hw.getRefreshPeriod();
+ const nsecs_t period = mFlinger->getHwComposer().getRefreshPeriod();
result.appendFormat("%lld\n", period);
for (size_t i=0 ; i<128 ; i++) {
const size_t index = (o+i) % 128;