<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
        MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
TD {
        MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
LI {
        MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
BODY {
        LINE-HEIGHT: 1.4; MARGIN: 10px; FONT-FAMILY: Arial, arial; FONT-SIZE: 9pt
}
</STYLE>

<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P>Hi,</P>
<P>I have attached the sample code for the issue. It takes command line argument to execute for OPERATOR SRC /OPERATOR OVER and to use cairo_paint or cairo_fill like</P>
<P><FONT size=2>./sample  ------->>>> EGL_BACKEND, ROP OVER WITH CLIP (works)<BR>./sample  -rop_source ------> ROP_SOURCE  (NOT working)<BR>./sample  -rop_source  -cairo_fill ------> ROP_SOURCE WITH FILL (works)</FONT></P>
<P><FONT size=2>The attached code uses X window to render the final output.</FONT></P>
<P><FONT size=2>Please let me know if there is any issue in the sample.</FONT></P>
<P><FONT size=2> </P></FONT>
<P>Thanks,</P>
<P>Sumit</P>
<P> </P>
<P>------- <B>Original Message</B> -------</P>
<P><B>Sender</B> : Yuanhan Liu<yuanhan.liu@linux.intel.com></P>
<P><B>Date</B> : May 29, 2012 10:51 (GMT+09:00)</P>
<P><B>Title</B> : Re: [cairo] Information required for cairo gl backend regarding CAIRO_OPERATOR_SOURCE</P>
<P> </P>On Mon, May 28, 2012 at 02:05:22PM +0000, SUMIT PANWAR wrote:<BR>> Hi,<BR>> <BR>> We are writing some test cases to compare cairo gl backend with cairo image<BR>> backend.<BR>> <BR>> 1) Image clipping does not work for CAIRO_OPERATOR_SOURCE.<BR>> <BR>> Though it works with bounded rectangle with cairo_fill.<BR>> <BR>> Below applicaiton code does NOT work. It throws gl error 1282(Invalid<BR>> Operation)<BR>> <BR>> ---------------------------------------------------------<BR>> cairo_rectangle(m_cr, 0, 0, width,height);<BR>> cairo_clip(m_cr);<BR>> cairo_set_source_surface(m_cr,glSrcSurface, 0 , 0);<BR>> cairo_paint(m_cr);<BR>> ---------------------------------------------------------<BR>> What works is below:<BR>> -------------------------<BR>> cairo_rectangle(m_cr, 0, 0, width,height);<BR>> cairo_set_source_surface(m_cr, glSrcSurface, 0 , 0);<BR>> cairo_fill(m_cr);<BR>> -------------------------<BR><BR>Hi,<BR><BR>It would be good if you attach a full test code that can produce your<BR>issue here.<BR><BR>Thanks,<BR>Yuanhan Liu<BR><BR>> <BR>> Image clipping with image surface works well.<BR>> <BR>> Please suggest waht could be the issue.<BR>> <BR>> Thanks in advance,<BR>> <BR>> Sumit<BR>> <BR>>  <BR>> <BR>>  <BR>> <BR>> [cid]<BR>> <BR>> *<BR><BR><BR><BR>> --<BR>> cairo mailing list<BR>> cairo@cairographics.org<BR>> http://lists.cairographics.org/mailman/listinfo/cairo<BR><BR>
<P> </P>
<P> </P><!--SP:sumit.panwar--><!--sumit.panwar:EP-->
<P> </P>
<TABLE id=confidentialsignimg>
<TBODY>
<TR>
<TD NAMO_LOCK>
<P><IMG border=0 src="cid:BEI0XT4NZ5JE@namo.co.kr" width=520></P></TD></TR></TBODY></TABLE></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=6f840b097a85d5c5955bc00332a7b184c624cc070cfdcc621204142695e5d0163e5144031af605981afff71113a87aef1c868924d3beca2cdb9fdddda33e82cbe4a391424e62fcf6cf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>