summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-11-28 16:08:48 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-28 16:08:48 -0800
commit608e2881ef4a4e34d87152b7fbaca43149aec408 (patch)
tree29650301e40852584d5c00cab852c815d690472a
parentcada84265a7fbed8c1b4b7e758efe8e79d7e98b0 (diff)
parenta9b677fce432b29ab8f61e13796f34880dc0fe0f (diff)
downloadhardware_libhardware-608e2881ef4a4e34d87152b7fbaca43149aec408.zip
hardware_libhardware-608e2881ef4a4e34d87152b7fbaca43149aec408.tar.gz
hardware_libhardware-608e2881ef4a4e34d87152b7fbaca43149aec408.tar.bz2
am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
* commit 'a9b677fce432b29ab8f61e13796f34880dc0fe0f': improve h/w composer documentation
-rw-r--r--include/hardware/hwcomposer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hardware/hwcomposer.h b/include/hardware/hwcomposer.h
index a17f3e4..b4a7a7a 100644
--- a/include/hardware/hwcomposer.h
+++ b/include/hardware/hwcomposer.h
@@ -287,6 +287,11 @@ typedef struct hwc_composer_device {
* entire composition has been handled by SurfaceFlinger with OpenGL ES.
* In this case, (*set)() behaves just like eglSwapBuffers().
*
+ * dpy, sur, and list are set to NULL to indicate that the screen is
+ * turning off. This happens WITHOUT prepare() being called first.
+ * This is a good time to free h/w resources and/or power
+ * the relevant h/w blocks down.
+ *
* IMPORTANT NOTE: there is an implicit layer containing opaque black
* pixels behind all the layers in the list.
* It is the responsibility of the hwcomposer module to make