src/share/classes/sun/java2d/opengl/OGLBlitLoops.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 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 --- 1,7 ---- /* ! * Copyright (c) 2003, 2014, 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
*** 69,78 **** --- 69,80 ---- new OGLRTTSurfaceToSurfaceTransform(), // surface->sw ops new OGLSurfaceToSwBlit(SurfaceType.IntArgb, OGLSurfaceData.PF_INT_ARGB), + new OGLSurfaceToSwBlit(SurfaceType.IntArgbPre, + OGLSurfaceData.PF_INT_ARGB_PRE), // sw->surface ops blitIntArgbPreToSurface, new OGLSwToSurfaceBlit(SurfaceType.IntRgb, OGLSurfaceData.PF_INT_RGB),
*** 503,518 **** dx, dy, dx+w, dy+h, true); } } ! class OGLSurfaceToSwBlit extends Blit { ! private int typeval; ! // REMIND: destination will actually be opaque/premultiplied... ! OGLSurfaceToSwBlit(SurfaceType dstType, int typeval) { super(OGLSurfaceData.OpenGLSurface, CompositeType.SrcNoEa, dstType); this.typeval = typeval; } --- 505,520 ---- dx, dy, dx+w, dy+h, true); } } ! final class OGLSurfaceToSwBlit extends Blit { ! private final int typeval; ! // destination will actually be ArgbPre or Argb ! OGLSurfaceToSwBlit(final SurfaceType dstType,final int typeval) { super(OGLSurfaceData.OpenGLSurface, CompositeType.SrcNoEa, dstType); this.typeval = typeval; }