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
commit1e16b13857809eaa9bd17fb60ac0a471dc92844b (patch)
tree0af8e8f35ac417b91d454318a45a2130e56cee04 /include/ui/FramebufferNativeWindow.h
parente6bf8b32b616450f80b64d226ea673f4a2e0bf8d (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 aad39a2a6b..a7804728c4 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;
};
// ---------------------------------------------------------------------------