diff options
| author | 2015-06-09 18:23:48 +0000 | |
|---|---|---|
| committer | 2015-06-09 18:23:48 +0000 | |
| commit | b169b49aecdbf3424f334ac2b22c36a2988a8338 (patch) | |
| tree | 6ca05f9c5e88b4fa777e971fb7c97916a414cce9 /include/gui/Surface.h | |
| parent | c19fdee38a4715b0d642fc8673687715766307cc (diff) | |
| parent | 993772a60ac43e458f16b08c27e1f97dcfcfe3e1 (diff) | |
Merge "libgui: Add generation numbers to BufferQueue"
Diffstat (limited to 'include/gui/Surface.h')
| -rw-r--r-- | include/gui/Surface.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gui/Surface.h b/include/gui/Surface.h index fd6d48c2a9..261b07c8f4 100644 --- a/include/gui/Surface.h +++ b/include/gui/Surface.h @@ -101,6 +101,11 @@ public: */ void allocateBuffers(); + /* Sets the generation number on the IGraphicBufferProducer and updates the + * generation number on any buffers attached to the Surface after this call. + * See IGBP::setGenerationNumber for more information. */ + status_t setGenerationNumber(uint32_t generationNumber); + protected: virtual ~Surface(); @@ -305,6 +310,10 @@ private: // When a non-CPU producer is attached, this reflects the surface damage // (the change since the previous frame) passed in by the producer. Region mDirtyRegion; + + // Stores the current generation number. See setGenerationNumber and + // IGraphicBufferProducer::setGenerationNumber for more information. + uint32_t mGenerationNumber; }; }; // namespace android |