diff options
author | Mathias Agopian <mathias@google.com> | 2010-12-14 15:51:32 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-14 15:51:32 -0800 |
commit | 5eee3d2b13880c9a486be8fca20128660a19b7f7 (patch) | |
tree | 531e5f9d40b4749420afe449fe5c872d29b444e3 /libs | |
parent | 90f96b838320011901976b6a7180aeb6b461d7e2 (diff) | |
parent | 455d18d4c26a823bff62ca14771986cca52d3462 (diff) | |
download | frameworks_native-5eee3d2b13880c9a486be8fca20128660a19b7f7.zip frameworks_native-5eee3d2b13880c9a486be8fca20128660a19b7f7.tar.gz frameworks_native-5eee3d2b13880c9a486be8fca20128660a19b7f7.tar.bz2 |
Merge "minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so."
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaceflinger_client/Surface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/surfaceflinger_client/Surface.cpp b/libs/surfaceflinger_client/Surface.cpp index 6d82b5d..aa0c2e8 100644 --- a/libs/surfaceflinger_client/Surface.cpp +++ b/libs/surfaceflinger_client/Surface.cpp @@ -384,7 +384,7 @@ status_t Surface::writeToParcel( Mutex Surface::sCachedSurfacesLock; -DefaultKeyedVector<wp<IBinder>, wp<Surface> > Surface::sCachedSurfaces(wp<Surface>(0)); +DefaultKeyedVector<wp<IBinder>, wp<Surface> > Surface::sCachedSurfaces; sp<Surface> Surface::readFromParcel(const Parcel& data) { Mutex::Autolock _l(sCachedSurfacesLock); @@ -397,13 +397,13 @@ sp<Surface> Surface::readFromParcel(const Parcel& data) { if (surface->mSurface == 0) { surface = 0; } - cleanCachedSurfaces(); + cleanCachedSurfacesLocked(); return surface; } // Remove the stale entries from the surface cache. This should only be called // with sCachedSurfacesLock held. -void Surface::cleanCachedSurfaces() { +void Surface::cleanCachedSurfacesLocked() { for (int i = sCachedSurfaces.size()-1; i >= 0; --i) { wp<Surface> s(sCachedSurfaces.valueAt(i)); if (s == 0 || s.promote() == 0) { |