graphicscomposition/openwfcompositionengine/composition/src/wfccontext.c
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 152 9f1c3fea0f87
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
   277     if (attribError!=ATTR_ERROR_NONE)
   277     if (attribError!=ATTR_ERROR_NONE)
   278         {
   278         {
   279         OWF_ASSERT(attribError==ATTR_ERROR_NO_MEMORY);
   279         OWF_ASSERT(attribError==ATTR_ERROR_NO_MEMORY);
   280         return attribError;
   280         return attribError;
   281         }
   281         }
   282     
   282 
   283     /* The composition code uses the member variables directly, 
   283   
       
   284     /* The composition code reads the member variables directly, 
   284      * not via the attribute engine.
   285      * not via the attribute engine.
   285      */
   286      */
   286     OWF_Attribute_Initi(&context->attributes,
   287     OWF_Attribute_Initi(&context->attributes,
   287                         WFC_CONTEXT_TYPE,
   288                         WFC_CONTEXT_TYPE,
   288                         (WFCint*) &context->type,
   289                         (WFCint*) &context->type,
   311     OWF_Attribute_Initi(&context->attributes,
   312     OWF_Attribute_Initi(&context->attributes,
   312                         WFC_CONTEXT_LOWEST_ELEMENT,
   313                         WFC_CONTEXT_LOWEST_ELEMENT,
   313                         (OWFint*) &context->lowestElement,
   314                         (OWFint*) &context->lowestElement,
   314                         OWF_TRUE);
   315                         OWF_TRUE);
   315     attribError=OWF_AttributeList_GetError(&context->attributes);
   316     attribError=OWF_AttributeList_GetError(&context->attributes);
       
   317 	
       
   318 	/* After commit to working, writable attribute abstracted variables
       
   319 	must not be written to directly. */
       
   320     OWF_AttributeList_Commit(&context->attributes,
       
   321                              WFC_CONTEXT_TYPE,
       
   322                              WFC_CONTEXT_BG_COLOR,
       
   323 		             WORKING_ATTR_VALUE_INDEX );
       
   324 	
   316     return attribError;
   325     return attribError;
   317 }
   326 }
   318 
   327 
   319 
   328 
   320 /*---------------------------------------------------------------------------
   329 /*---------------------------------------------------------------------------