summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Smith <raymond.smith@arm.com>2014-04-15 11:51:07 +0100
committerRaymond Smith <raymond.smith@arm.com>2014-04-15 11:54:37 +0100
commit3ec703cd63fab0337c15fbadf6aaa173d70c9329 (patch)
treeb47486b048335814dc5444889c174f5871bbb600
parente27cc5c698a394cd09521aa16cbfb9233b508fb0 (diff)
Clarify assumptions on window front buffer pixmaps
We assume that a window's front buffer pixmap won't be reallocated from beneath us. This commit updates a comment to reflect this assumption. Change-Id: Ic1ddc508dee8b1696643dd418ddb466fbce9d8fb
-rw-r--r--src/armsoc_dri2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/armsoc_dri2.c b/src/armsoc_dri2.c
index 793ea10..7d05575 100644
--- a/src/armsoc_dri2.c
+++ b/src/armsoc_dri2.c
@@ -48,9 +48,8 @@ struct ARMSOCDRI2BufferRec {
/**
* Pixmap(s) that are backing the buffer
*
- * NOTE: don't track the pixmap ptr for the front buffer if it is
- * a window.. this could get reallocated from beneath us, so we should
- * always use draw2pix to be sure to have the correct one
+ * We assume that a window's front buffer pixmap is never reallocated,
+ * and therefore that it is safe to use the pointer to it stored here.
*/
PixmapPtr *pPixmaps;