egl/sfopenvg/riApi.cpp
branchEGL_MERGE
changeset 59 0fb7b31791c3
parent 57 2bf8a359aa2f
equal deleted inserted replaced
58:5b9c23c1a54c 59:0fb7b31791c3
  2552 
  2552 
  2553 static bool drawPath(VGContext* context, VGPath path, const Matrix3x3& userToSurfaceMatrix, VGbitfield paintModes)
  2553 static bool drawPath(VGContext* context, VGPath path, const Matrix3x3& userToSurfaceMatrix, VGbitfield paintModes)
  2554 {
  2554 {
  2555 	//set up rendering surface and mask buffer
  2555 	//set up rendering surface and mask buffer
  2556     Drawable* drawable = context->getCurrentDrawable();
  2556     Drawable* drawable = context->getCurrentDrawable();
  2557     RDebug::Printf(" ***************** In drawPath,Drawable addr is %x  $$$$$$$$$$$$$ ",drawable);
  2557       
  2558     RDebug::Printf(" $$$$$$$$$$$$$ In drawPath,VGContext addr is %x  $$$$$$$$$$$$$ ",context);
       
  2559     RDebug::Printf(" $$$$$$$$$$$$$ In drawPath,Widthis %d  $$$$$$$$$$$$$ ",drawable->getWidth());
       
  2560     RDebug::Printf(" $$$$$$$$$$$$$ In drawPath,Height is %d  $$$$$$$$$$$$$ ",drawable->getHeight());
       
  2561        
       
  2562     if(!drawable)
  2558     if(!drawable)
  2563         return false;   //no EGL surface is current at the moment
  2559         return false;   //no EGL surface is current at the moment
  2564 
  2560 
  2565 	Rasterizer rasterizer;
  2561 	Rasterizer rasterizer;
  2566 	if(context->m_scissoring)
  2562 	if(context->m_scissoring)
  2601 		Matrix3x3 surfaceToPaintMatrix = userToSurface * context->m_strokePaintToUser;
  2597 		Matrix3x3 surfaceToPaintMatrix = userToSurface * context->m_strokePaintToUser;
  2602 		if(surfaceToPaintMatrix.invert())
  2598 		if(surfaceToPaintMatrix.invert())
  2603 		{
  2599 		{
  2604 			surfaceToPaintMatrix[2].set(0,0,1);		//force affinity
  2600 			surfaceToPaintMatrix[2].set(0,0,1);		//force affinity
  2605 			pixelPipe.setSurfaceToPaintMatrix(surfaceToPaintMatrix);
  2601 			pixelPipe.setSurfaceToPaintMatrix(surfaceToPaintMatrix);
  2606 			RDebug::Printf(" $$$$$$$$$$$$$ In drawPath,Widthis %d  $$$$$$$$$$$$$ ",drawable->getWidth());
  2602 		    renderStroke(context, drawable->getWidth(), drawable->getHeight(), numSamples, (Path*)path, rasterizer, &pixelPipe, userToSurface);
  2607 			RDebug::Printf(" $$$$$$$$$$$$$ In drawPath,Height is %d  $$$$$$$$$$$$$ ",drawable->getHeight());
       
  2608             renderStroke(context, drawable->getWidth(), drawable->getHeight(), numSamples, (Path*)path, rasterizer, &pixelPipe, userToSurface);
       
  2609 		}
  2603 		}
  2610 	}
  2604 	}
  2611 	return true;
  2605 	return true;
  2612 }
  2606 }
  2613 
  2607