jdk/src/java.desktop/share/classes/sun/java2d/marlin/TransformingPathConsumer2D.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
56 float mxx = (float) at.getScaleX(); |
56 float mxx = (float) at.getScaleX(); |
57 float mxy = (float) at.getShearX(); |
57 float mxy = (float) at.getShearX(); |
58 float myx = (float) at.getShearY(); |
58 float myx = (float) at.getShearY(); |
59 float myy = (float) at.getScaleY(); |
59 float myy = (float) at.getScaleY(); |
60 |
60 |
61 if (mxy == 0f && myx == 0f) { |
61 if (mxy == 0.0f && myx == 0.0f) { |
62 if (mxx == 1f && myy == 1f) { |
62 if (mxx == 1.0f && myy == 1.0f) { |
63 return out; |
63 return out; |
64 } else { |
64 } else { |
65 return dt_DeltaScaleFilter.init(out, mxx, myy); |
65 return dt_DeltaScaleFilter.init(out, mxx, myy); |
66 } |
66 } |
67 } else { |
67 } else { |
82 float mxx = (float) at.getScaleX(); |
82 float mxx = (float) at.getScaleX(); |
83 float mxy = (float) at.getShearX(); |
83 float mxy = (float) at.getShearX(); |
84 float myx = (float) at.getShearY(); |
84 float myx = (float) at.getShearY(); |
85 float myy = (float) at.getScaleY(); |
85 float myy = (float) at.getScaleY(); |
86 |
86 |
87 if (mxy == 0f && myx == 0f) { |
87 if (mxy == 0.0f && myx == 0.0f) { |
88 if (mxx == 1f && myy == 1f) { |
88 if (mxx == 1.0f && myy == 1.0f) { |
89 return out; |
89 return out; |
90 } else { |
90 } else { |
91 return iv_DeltaScaleFilter.init(out, 1.0f/mxx, 1.0f/myy); |
91 return iv_DeltaScaleFilter.init(out, 1.0f/mxx, 1.0f/myy); |
92 } |
92 } |
93 } else { |
93 } else { |