Fix "Battery/Status/Clock status bar area flickers when dragging down"
The crop is now handled like a resize, it's latched only when we
receive a new buffer in the case we have a resize in the same
transaction.
Bug: 6498869
Change-Id: I9f3cbbe08fb19443899461ec441c714748a4fd1a
diff --git a/services/surfaceflinger/LayerBase.h b/services/surfaceflinger/LayerBase.h
index d0b2a74..9542424 100644
--- a/services/surfaceflinger/LayerBase.h
+++ b/services/surfaceflinger/LayerBase.h
@@ -66,9 +66,15 @@
int32_t sequence;
struct Geometry {
- uint32_t w;
- uint32_t h;
- Rect crop;
+ uint32_t w;
+ uint32_t h;
+ Rect crop;
+ inline bool operator == (const Geometry& rhs) const {
+ return (w==rhs.w && h==rhs.h && crop==rhs.crop);
+ }
+ inline bool operator != (const Geometry& rhs) const {
+ return !operator == (rhs);
+ }
};
struct State {