diff options
author | Mathias Agopian <mathias@google.com> | 2012-08-04 21:10:38 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-08-04 21:23:47 -0700 |
commit | 888c822c4cb6976aab9256c58bae9e17e3e55c5c (patch) | |
tree | e1d93016bcd7171077378abca4712bfff7dd4ef9 /services/surfaceflinger/Layer.cpp | |
parent | 72131d9ef13ffaf3af4ca2fe700426b82baac9fa (diff) | |
download | frameworks_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.cpp | 2 |
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; |