src/share/classes/sun/java2d/pipe/BufferedContext.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 97,108 ****
// renamed from isValidatedPaintAColor as part of a work around for 6764257
private boolean isValidatedPaintJustAColor;
private int validatedRGB;
private int validatedFlags;
private boolean xformInUse;
! private int transX;
! private int transY;
protected BufferedContext(RenderQueue rq) {
this.rq = rq;
this.buf = rq.getBuffer();
}
--- 97,107 ----
// renamed from isValidatedPaintAColor as part of a work around for 6764257
private boolean isValidatedPaintJustAColor;
private int validatedRGB;
private int validatedFlags;
private boolean xformInUse;
! private AffineTransform transform;
protected BufferedContext(RenderQueue rq) {
this.rq = rq;
this.buf = rq.getBuffer();
}
*** 275,292 ****
if (xform == null) {
if (xformInUse) {
resetTransform();
xformInUse = false;
txChanged = true;
! } else if (sg2d != null) {
! if (transX != sg2d.transX || transY != sg2d.transY) {
txChanged = true;
}
! }
! if (sg2d != null) {
! transX = sg2d.transX;
! transY = sg2d.transY;
}
} else {
setTransform(xform);
xformInUse = true;
txChanged = true;
--- 274,288 ----
if (xform == null) {
if (xformInUse) {
resetTransform();
xformInUse = false;
txChanged = true;
! } else if (sg2d != null && !sg2d.transform.equals(transform)) {
txChanged = true;
}
! if (sg2d != null && txChanged) {
! transform = new AffineTransform(sg2d.transform);
}
} else {
setTransform(xform);
xformInUse = true;
txChanged = true;