summaryrefslogtreecommitdiff
path: root/include/ui/FramebufferNativeWindow.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-05-07 17:40:23 -0700
committer Mathias Agopian <mathias@google.com> 2009-05-07 17:40:23 -0700
commit97b8056c3182a973c67d3c1b196150d4b9e30f3a (patch)
treeb78a1c6d95b468aa654d1910226ae711250799b5 /include/ui/FramebufferNativeWindow.h
parent927d37cb788670b91af0f1a7a93c68046a838d23 (diff)
add support for update-on-demand in SurfaceFlinger
Diffstat (limited to 'include/ui/FramebufferNativeWindow.h')
-rw-r--r--include/ui/FramebufferNativeWindow.h4
1 files changed, 4 insertions, 0 deletions
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>;
~FramebufferNativeWindow(); // this class cannot be overloaded
@@ -71,6 +74,7 @@ private:
int32_t mNumBuffers;
int32_t mNumFreeBuffers;
int32_t mBufferHead;
+ bool mUpdateOnDemand;
};
// ---------------------------------------------------------------------------