summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/FramebufferNativeWindow.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ui/FramebufferNativeWindow.h b/include/ui/FramebufferNativeWindow.h
index a780472..03d064c 100644
--- a/include/ui/FramebufferNativeWindow.h
+++ b/include/ui/FramebufferNativeWindow.h
@@ -55,6 +55,9 @@ public:
bool isUpdateOnDemand() const { return mUpdateOnDemand; }
status_t setUpdateRectangle(const Rect& updateRect);
+ // FIXME: needed for copybit hack in LayerBuffer
+ android_native_buffer_t const* getBackbuffer() const;
+
private:
friend class LightRefBase<FramebufferNativeWindow>;
~FramebufferNativeWindow(); // this class cannot be overloaded
@@ -75,8 +78,11 @@ private:
int32_t mNumFreeBuffers;
int32_t mBufferHead;
bool mUpdateOnDemand;
-};
+ // FIXME: for getBackbuffer
+ int32_t mLastDequeued;
+};
+
// ---------------------------------------------------------------------------
}; // namespace android
// ---------------------------------------------------------------------------