graphicscomposition/openwfcompositionengine/composition/src/wfccontext.c
branchNewGraphicsArchitecture
changeset 143 3db46cb3f779
parent 0 5d03bc08d59c
equal deleted inserted replaced
141:f5b6a43d0d2d 143:3db46cb3f779
  1203  *----------------------------------------------------------------------------*/
  1203  *----------------------------------------------------------------------------*/
  1204 OWF_API_CALL WFCErrorCode
  1204 OWF_API_CALL WFCErrorCode
  1205 WFC_Context_RemoveElement(WFC_CONTEXT* context,
  1205 WFC_Context_RemoveElement(WFC_CONTEXT* context,
  1206                           WFCElement element)
  1206                           WFCElement element)
  1207 {
  1207 {
  1208     WFCErrorCode            err = WFC_ERROR_BAD_HANDLE;
       
  1209     WFC_ELEMENT*            elemento = NULL;
  1208     WFC_ELEMENT*            elemento = NULL;
  1210 
  1209 
  1211     OWF_ASSERT(context);
  1210     OWF_ASSERT(context);
  1212 
  1211 
  1213     elemento = WFC_Context_FindElement(context, element);
  1212     elemento = WFC_Context_FindElement(context, element);
  1218         /* the element is no longer shared, as it only resides
  1217         /* the element is no longer shared, as it only resides
  1219          * in device from this point on
  1218          * in device from this point on
  1220          */
  1219          */
  1221         elemento->shared = WFC_FALSE;
  1220         elemento->shared = WFC_FALSE;
  1222         context->lowestElement = WFC_Scene_LowestElement(context->workScene);
  1221         context->lowestElement = WFC_Scene_LowestElement(context->workScene);
  1223 
  1222     }
  1224         err = WFC_ERROR_NONE;
  1223 
  1225     }
  1224     return WFC_ERROR_NONE;
  1226 
       
  1227     return err;
       
  1228 }
  1225 }
  1229 
  1226 
  1230 /*!
  1227 /*!
  1231  *  \brief IncreaseClientElementCount
  1228  *  \brief IncreaseClientElementCount
  1232  *
  1229  *