summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-01-14 11:04:34 -0800
committerMathias Agopian <mathias@google.com>2011-01-14 11:04:34 -0800
commita317f1ba7f71fe04d524f46dbdc6e2419b7f75a3 (patch)
treeaea889784279dc784fcc9976c96577b983d676ee /include/surfaceflinger
parenta034863a11ffc63be309ce01fcbd7d7c1e62b4c6 (diff)
downloadframeworks_native-a317f1ba7f71fe04d524f46dbdc6e2419b7f75a3.zip
frameworks_native-a317f1ba7f71fe04d524f46dbdc6e2419b7f75a3.tar.gz
frameworks_native-a317f1ba7f71fe04d524f46dbdc6e2419b7f75a3.tar.bz2
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
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r--include/surfaceflinger/Surface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h
index 2df8ca3..5532052 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<ISurface> getISurface() const;
inline const GraphicBufferMapper& getBufferMapper() const { return mBufferMapper; }