summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceTextureLayer.h
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-07-30 15:06:10 -0700
committerJamie Gennis <jgennis@google.com>2011-07-30 16:47:44 -0700
commitcb6c755234a17ab14e6c5d0a857aab96fb02dc02 (patch)
tree32b4ea9d0ac6e5eb6fc4a7650618dd6410c6423b /services/surfaceflinger/SurfaceTextureLayer.h
parent8d944d254bd8054e9926ac651a7867083d36752d (diff)
downloadframeworks_native-cb6c755234a17ab14e6c5d0a857aab96fb02dc02.zip
frameworks_native-cb6c755234a17ab14e6c5d0a857aab96fb02dc02.tar.gz
frameworks_native-cb6c755234a17ab14e6c5d0a857aab96fb02dc02.tar.bz2
SurfaceFlinger: use async mode for video & cam
This change makes SurfaceFlinger's SurfaceTexture objects default to async mode whenever a camera or video decoder connects. This behavior can be disabled by #defining NEVER_DEFAULT_TO_ASYNC_MODE. Change-Id: I8965951d1775915da180e4af298dd7af3afafecc
Diffstat (limited to 'services/surfaceflinger/SurfaceTextureLayer.h')
-rw-r--r--services/surfaceflinger/SurfaceTextureLayer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceTextureLayer.h b/services/surfaceflinger/SurfaceTextureLayer.h
index 29a9cbe..5d328b7 100644
--- a/services/surfaceflinger/SurfaceTextureLayer.h
+++ b/services/surfaceflinger/SurfaceTextureLayer.h
@@ -50,6 +50,8 @@ protected:
virtual status_t dequeueBuffer(int *buf, uint32_t w, uint32_t h,
uint32_t format, uint32_t usage);
+
+ virtual status_t connect(int api);
};
// ---------------------------------------------------------------------------