192 BlitBg target;
193
194 public TraceBlitBg(BlitBg target) {
195 super(target.getSourceType(),
196 target.getCompositeType(),
197 target.getDestType());
198 this.target = target;
199 }
200
201 public GraphicsPrimitive traceWrap() {
202 return this;
203 }
204
205 @Override
206 public void BlitBg(SurfaceData src, SurfaceData dst,
207 Composite comp, Region clip,
208 int bgColor,
209 int srcx, int srcy, int dstx, int dsty,
210 int width, int height)
211 {
212 tracePrimitive(target);
213 target.BlitBg(src, dst, comp, clip, bgColor,
214 srcx, srcy, dstx, dsty, width, height);
215 }
216 }
217 }
|
192 BlitBg target;
193
194 public TraceBlitBg(BlitBg target) {
195 super(target.getSourceType(),
196 target.getCompositeType(),
197 target.getDestType());
198 this.target = target;
199 }
200
201 public GraphicsPrimitive traceWrap() {
202 return this;
203 }
204
205 @Override
206 public void BlitBg(SurfaceData src, SurfaceData dst,
207 Composite comp, Region clip,
208 int bgColor,
209 int srcx, int srcy, int dstx, int dsty,
210 int width, int height)
211 {
212 if ((traceflags & TRACEPTIME) == 0) {
213 tracePrimitive(target);
214 }
215 long time = System.nanoTime();
216 target.BlitBg(src, dst, comp, clip, bgColor,
217 srcx, srcy, dstx, dsty, width, height);
218 tracePrimitiveTime(target, System.nanoTime() - time);
219 }
220 }
221 }
|