graphicscomposition/openwfcompositionengine/composition/src/wfcscene.c
branchRCL_3
changeset 163 bbf46f59e123
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
--- a/graphicscomposition/openwfcompositionengine/composition/src/wfcscene.c	Thu Aug 19 11:11:18 2010 +0300
+++ b/graphicscomposition/openwfcompositionengine/composition/src/wfcscene.c	Tue Aug 31 16:31:06 2010 +0300
@@ -1,4 +1,5 @@
-/* Copyright (c) 2009 The Khronos Group Inc.
+/* Copyright (c) 2009-2010 The Khronos Group Inc.
+ * Portions copyright (c) 2009-2010  Nokia Corporation and/or its subsidiary(-ies)
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and/or associated documentation files (the
@@ -129,8 +130,11 @@
 WFC_Scene_Create(WFC_CONTEXT* context)
 {
     WFC_SCENE*              scene;
-
-    DPRINT(("WFC_Scene_Create"));
+	
+	DPRINT(("WFC_Scene_Create"));
+	
+	OWF_ASSERT(context);
+	
     scene = SCENE(OWF_Pool_GetObject(context->scenePool));
 
     OWF_ASSERT(scene);
@@ -447,3 +451,17 @@
     }
     return element;
 }
+
+/*----------------------------------------------------------------------------*/
+OWF_API_CALL WFC_ELEMENT*
+WFC_Scene_TopMostElement(WFC_SCENE* scene)
+{
+    OWF_NODE*               node = NULL;
+
+    for (node = scene->elements; node && node->next; node = node->next)
+    {
+        /* All work done in the for statement, so no body */
+    }
+    
+    return node ? ELEMENT(node->data) : NULL;
+}