summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayHardware/DisplayHardware.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-09-20 17:21:56 -0700
committerMathias Agopian <mathias@google.com>2011-09-20 17:57:55 -0700
commit661a1bf0332240a2e677a07af5f96cb4534196be (patch)
tree6e9edcd6eb4cb6e4ade69809ffa7b43051e4f8e2 /services/surfaceflinger/DisplayHardware/DisplayHardware.h
parent97911723a3169cd6735d2305d504cf1ec4358b57 (diff)
downloadframeworks_base-661a1bf0332240a2e677a07af5f96cb4534196be.zip
frameworks_base-661a1bf0332240a2e677a07af5f96cb4534196be.tar.gz
frameworks_base-661a1bf0332240a2e677a07af5f96cb4534196be.tar.bz2
fix transition from full overlays to fb
we need to clear the whole framebuffer in that situation because we can't trust the content of the FB when partial (fb preserving) updates are used. Bug: 5318492 Change-Id: I3f0e01b0fb665a34e44d88ad9f0f54a5d990060b
Diffstat (limited to 'services/surfaceflinger/DisplayHardware/DisplayHardware.h')
-rw-r--r--services/surfaceflinger/DisplayHardware/DisplayHardware.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/DisplayHardware/DisplayHardware.h b/services/surfaceflinger/DisplayHardware/DisplayHardware.h
index 40a6f1e..f02c954 100644
--- a/services/surfaceflinger/DisplayHardware/DisplayHardware.h
+++ b/services/surfaceflinger/DisplayHardware/DisplayHardware.h
@@ -84,9 +84,10 @@ public:
status_t compositionComplete() const;
- Rect bounds() const {
+ Rect getBounds() const {
return Rect(mWidth, mHeight);
}
+ inline Rect bounds() const { return getBounds(); }
// only for debugging
int getCurrentBufferIndex() const;