From a317f1ba7f71fe04d524f46dbdc6e2419b7f75a3 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 14 Jan 2011 11:04:34 -0800 Subject: Fix error reporting in Surface::cancelBuffer() when we validate the surface there, most errors are in fact allowed because it is legal to cancel a buffer after a surface has been destroyed (for instance). in that case make sure to not log error messages as they are very confusing. Change-Id: Iecdfbaf6d9ee5da54d56cd7ea7a0d430c30934b0 --- include/surfaceflinger/Surface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/surfaceflinger/Surface.h') diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h index 2df8ca3755..5532052864 100644 --- a/include/surfaceflinger/Surface.h +++ b/include/surfaceflinger/Surface.h @@ -233,7 +233,7 @@ private: * private stuff... */ void init(); - status_t validate() const; + status_t validate(bool inCancelBuffer = false) const; sp getISurface() const; inline const GraphicBufferMapper& getBufferMapper() const { return mBufferMapper; } -- cgit v1.2.3-59-g8ed1b