summaryrefslogtreecommitdiff
path: root/include/gui
diff options
context:
space:
mode:
author Jamie Gennis <jgennis@google.com> 2011-11-19 18:04:43 -0800
committer Jamie Gennis <jgennis@google.com> 2011-11-21 14:37:29 -0800
commit87f3265bb082160efdfdfb87a79698c67ebad447 (patch)
treea9eb05cf1cb1a6d59d1dafe806c843aee10daa76 /include/gui
parentc10a94c4b8b42ef75168ad140fdb97d6cca3d2eb (diff)
EGL: default to swap interval 1
This change explicitly sets swap interval 1 on the window when an EGLSurface is created to render to it. Change-Id: I91eb29dbee3ae4a55076b921f084d503fbe94e03
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/SurfaceTexture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h
index 27d863de58ae..15c2bab5946a 100644
--- a/include/gui/SurfaceTexture.h
+++ b/include/gui/SurfaceTexture.h
@@ -202,6 +202,10 @@ public:
// getCurrentScalingMode returns the scaling mode of the current buffer
uint32_t getCurrentScalingMode() const;
+ // isSynchronousMode returns whether the SurfaceTexture is currently in
+ // synchronous mode.
+ bool isSynchronousMode() const;
+
// abandon frees all the buffers and puts the SurfaceTexture into the
// 'abandoned' state. Once put in this state the SurfaceTexture can never
// leave it. When in the 'abandoned' state, all methods of the