summaryrefslogtreecommitdiff
path: root/include/utils/RefBase.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-05-04 14:17:04 -0700
committer Mathias Agopian <mathias@google.com> 2009-05-04 14:17:04 -0700
commit0926f50664c739eaee60341f8e8c694dc9a4f3eb (patch)
tree642597de2cc52f7636ae74f1a88f3706e3e54a4a /include/utils/RefBase.h
parent7be3e5d2d8101a8f5e12bbdf650431a734f88eba (diff)
update surfaceflinger, libui and libagl to the new gralloc api
- Currently the lock/unlock path is naive and is done for each drawing operation (glDrawElements and glDrawArrays). this should be improved eventually. - factor all the lock/unlock code in SurfaceBuffer. - fixed "showupdate" so it works even when we don't have preserving eglSwapBuffers(). - improved the situation with the dirty-region and fixed a problem that caused GL apps to not update. - make use of LightRefBase() where needed, instead of duplicating its implementation - add LightRefBase::getStrongCount() - renamed EGLNativeWindowSurface.cpp to FramebufferNativeWindow.cpp - disabled copybits test, since it clashes with the new gralloc api - Camera/Video will be fixed later when we rework the overlay apis
Diffstat (limited to 'include/utils/RefBase.h')
-rw-r--r--include/utils/RefBase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/utils/RefBase.h b/include/utils/RefBase.h
index cbda0fd80d..bd7f28cae3 100644
--- a/include/utils/RefBase.h
+++ b/include/utils/RefBase.h
@@ -156,6 +156,10 @@ public:
delete static_cast<const T*>(this);
}
}
+ //! DEBUGGING ONLY: Get current strong ref count.
+ inline int32_t getStrongCount() const {
+ return mCount;
+ }
protected:
inline ~LightRefBase() { }