From 97b8056c3182a973c67d3c1b196150d4b9e30f3a Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 7 May 2009 17:40:23 -0700 Subject: add support for update-on-demand in SurfaceFlinger --- include/ui/FramebufferNativeWindow.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ui/FramebufferNativeWindow.h') diff --git a/include/ui/FramebufferNativeWindow.h b/include/ui/FramebufferNativeWindow.h index aad39a2a6b8b..a7804728c4ea 100644 --- a/include/ui/FramebufferNativeWindow.h +++ b/include/ui/FramebufferNativeWindow.h @@ -52,6 +52,9 @@ public: framebuffer_device_t const * getDevice() const { return fbDev; } + bool isUpdateOnDemand() const { return mUpdateOnDemand; } + status_t setUpdateRectangle(const Rect& updateRect); + private: friend class LightRefBase; ~FramebufferNativeWindow(); // this class cannot be overloaded @@ -71,6 +74,7 @@ private: int32_t mNumBuffers; int32_t mNumFreeBuffers; int32_t mBufferHead; + bool mUpdateOnDemand; }; // --------------------------------------------------------------------------- -- cgit v1.2.3-59-g8ed1b