238 public TraceMaskBlit(MaskBlit target) {
239 // We need to have the same NativePrim as our
240 // target in case we are used with a TransformHelper
241 super(target.getNativePrim(),
242 target.getSourceType(),
243 target.getCompositeType(),
244 target.getDestType());
245 this.target = target;
246 }
247
248 public GraphicsPrimitive traceWrap() {
249 return this;
250 }
251
252 public void MaskBlit(SurfaceData src, SurfaceData dst,
253 Composite comp, Region clip,
254 int srcx, int srcy, int dstx, int dsty,
255 int width, int height,
256 byte[] mask, int maskoff, int maskscan)
257 {
258 tracePrimitive(target);
259 target.MaskBlit(src, dst, comp, clip,
260 srcx, srcy, dstx, dsty, width, height,
261 mask, maskoff, maskscan);
262 }
263 }
264 }
|
238 public TraceMaskBlit(MaskBlit target) {
239 // We need to have the same NativePrim as our
240 // target in case we are used with a TransformHelper
241 super(target.getNativePrim(),
242 target.getSourceType(),
243 target.getCompositeType(),
244 target.getDestType());
245 this.target = target;
246 }
247
248 public GraphicsPrimitive traceWrap() {
249 return this;
250 }
251
252 public void MaskBlit(SurfaceData src, SurfaceData dst,
253 Composite comp, Region clip,
254 int srcx, int srcy, int dstx, int dsty,
255 int width, int height,
256 byte[] mask, int maskoff, int maskscan)
257 {
258 if ((traceflags & TRACEPTIME) == 0) {
259 tracePrimitive(target);
260 }
261 long time = System.nanoTime();
262 target.MaskBlit(src, dst, comp, clip,
263 srcx, srcy, dstx, dsty, width, height,
264 mask, maskoff, maskscan);
265 tracePrimitiveTime(target, System.nanoTime() - time);
266 }
267 }
268 }
|