src/java.desktop/share/classes/sun/java2d/loops/GraphicsPrimitiveMgr.java
Print this page
@@ -96,11 +96,11 @@
* Ensure that noone can instantiate this class.
*/
private GraphicsPrimitiveMgr() {
}
- public synchronized static void register(GraphicsPrimitive[] newPrimitives)
+ public static synchronized void register(GraphicsPrimitive[] newPrimitives)
{
GraphicsPrimitive[] devCollection = primitives;
int oldSize = 0;
int newSize = newPrimitives.length;
if (debugTrace) {
@@ -119,11 +119,11 @@
System.arraycopy(newPrimitives, 0, temp, oldSize, newSize);
needssort = true;
primitives = temp;
}
- public synchronized static void registerGeneral(GraphicsPrimitive gen) {
+ public static synchronized void registerGeneral(GraphicsPrimitive gen) {
if (generalPrimitives == null) {
generalPrimitives = new GraphicsPrimitive[] {gen};
return;
}
int len = generalPrimitives.length;
@@ -131,20 +131,20 @@
System.arraycopy(generalPrimitives, 0, newGen, 0, len);
newGen[len] = gen;
generalPrimitives = newGen;
}
- public synchronized static GraphicsPrimitive locate(int primTypeID,
+ public static synchronized GraphicsPrimitive locate(int primTypeID,
SurfaceType dsttype)
{
return locate(primTypeID,
SurfaceType.OpaqueColor,
CompositeType.Src,
dsttype);
}
- public synchronized static GraphicsPrimitive locate(int primTypeID,
+ public static synchronized GraphicsPrimitive locate(int primTypeID,
SurfaceType srctype,
CompositeType comptype,
SurfaceType dsttype)
{
/*
@@ -168,11 +168,11 @@
}
}
return prim;
}
- public synchronized static GraphicsPrimitive
+ public static synchronized GraphicsPrimitive
locatePrim(int primTypeID,
SurfaceType srctype,
CompositeType comptype,
SurfaceType dsttype)
{