Skip to content
Permalink
Browse files

8254869: Refactor check_previous_op usage in Mask Fill

  • Loading branch information
jayathirthrao committed Oct 16, 2020
1 parent f4f9e93 commit afc927b611f79368de2af2bd1ff3c6df2c9f98ac
@@ -90,8 +90,6 @@
unsigned char *pMask)
{
J2dTraceLn5(J2D_TRACE_INFO, "MTLMaskFill_MaskFill (x=%d y=%d w=%d h=%d pMask=%p)", x, y, w, h, dstOps->pTexture);
if (mtlc == nil) return;
CHECK_PREVIOUS_OP(MTL_OP_MASK_OP);
jint tw, th, x0;
jint sx1, sy1, sx2, sy2;
jint sx, sy, sw, sh;
@@ -53,7 +53,6 @@ enum {
MTL_OP_MASK_OP,
MTL_OP_OTHER
};
void MTLRenderQueue_CheckPreviousOp(jint op);
/*
* These macros now simply delegate to the CheckPreviousOp() method.
*/
@@ -729,6 +729,9 @@ void MTLRenderQueue_CheckPreviousOp(jint op) {
jint maskscan = NEXT_INT(b);
jint masklen = NEXT_INT(b);
unsigned char *pMask = (masklen > 0) ? b : NULL;
if (mtlc == nil)
return;
CHECK_PREVIOUS_OP(MTL_OP_MASK_OP);
MTLMaskFill_MaskFill(mtlc, dstOps, x, y, w, h,
maskoff, maskscan, masklen, pMask);
SKIP_BYTES(b, masklen);

0 comments on commit afc927b

Please sign in to comment.