diff options
author | Mathias Agopian <mathias@google.com> | 2010-08-12 15:03:26 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-08-12 15:03:26 -0700 |
commit | f8e705dea48f77f1c2532fdbadd4997dd1851af0 (patch) | |
tree | 0c63e3e5b0d2035b57386db4a9b54f52f751c333 /services/surfaceflinger/DisplayHardware/HWComposer.h | |
parent | b59beb5ca68d0228f60dda60d85e2d0226b33215 (diff) | |
download | frameworks_base-f8e705dea48f77f1c2532fdbadd4997dd1851af0.zip frameworks_base-f8e705dea48f77f1c2532fdbadd4997dd1851af0.tar.gz frameworks_base-f8e705dea48f77f1c2532fdbadd4997dd1851af0.tar.bz2 |
Fix a couple issues with the new hwcomposer HAL
- we now clear the framebuffer upon request from the HAL
- the HAL list size could get out of sync with reality
- there was also an issue where sometime we could run past the list
Change-Id: Ic3a34314aed24181f2d8cc787096af83c046ef27
Diffstat (limited to 'services/surfaceflinger/DisplayHardware/HWComposer.h')
-rw-r--r-- | services/surfaceflinger/DisplayHardware/HWComposer.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.h b/services/surfaceflinger/DisplayHardware/HWComposer.h index 729f23b..c5d5c2b 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.h +++ b/services/surfaceflinger/DisplayHardware/HWComposer.h @@ -49,16 +49,14 @@ public: status_t commit() const; - typedef hwc_layer_t const * const_iterator; - typedef hwc_layer_t* iterator; - - iterator begin(); - iterator end(); + size_t getNumLayers() const; + hwc_layer_t* getLayers() const; private: hw_module_t const* mModule; hwc_composer_device_t* mHwc; hwc_layer_list_t* mList; + size_t mCapacity; hwc_display_t mDpy; hwc_surface_t mSur; }; |