OSDN Git Service

Revert "Apply damage transformations in GetLayerDamage"
[android-x86/external-IA-Hardware-Composer.git] / public / hwclayer.h
index 01a01f4..dc8fc8f 100644 (file)
@@ -269,6 +269,9 @@ struct HwcLayer {
 
  private:
   void Validate();
+  void UpdateRenderingDamage(const HwcRect<int>& old_rect,
+                             const HwcRect<int>& newrect, bool same_rect);
+
   void SetTotalDisplays(uint32_t total_displays);
   friend class VirtualDisplay;
   friend class PhysicalDisplay;
@@ -315,7 +318,6 @@ struct HwcLayer {
       kVisible | kSurfaceDamageChanged | kVisibleRegionChanged | kZorderChanged;
   int layer_cache_ = kLayerAttributesChanged | kDisplayFrameRectChanged;
   bool is_cursor_layer_ = false;
-  bool damage_dirty_ = true;
   HWCLayerCompositionType composition_type_ = Composition_Device;
 };