< prev index next >

src/java.desktop/share/classes/sun/awt/image/ImageDecoder.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1995, 2003, 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) 1995, 2018, 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
*** 116,126 **** protected void headerComplete() { feeder.setPriority(ImageFetcher.LOW_PRIORITY); } protected int setPixels(int x, int y, int w, int h, ColorModel model, ! byte pix[], int off, int scansize) { source.latchConsumers(this); ImageConsumerQueue cq = null; int count = 0; while ((cq = nextConsumer(cq)) != null) { cq.consumer.setPixels(x, y, w, h, model, pix, off, scansize); --- 116,126 ---- protected void headerComplete() { feeder.setPriority(ImageFetcher.LOW_PRIORITY); } protected int setPixels(int x, int y, int w, int h, ColorModel model, ! byte[] pix, int off, int scansize) { source.latchConsumers(this); ImageConsumerQueue cq = null; int count = 0; while ((cq = nextConsumer(cq)) != null) { cq.consumer.setPixels(x, y, w, h, model, pix, off, scansize);
*** 128,138 **** } return count; } protected int setPixels(int x, int y, int w, int h, ColorModel model, ! int pix[], int off, int scansize) { source.latchConsumers(this); ImageConsumerQueue cq = null; int count = 0; while ((cq = nextConsumer(cq)) != null) { cq.consumer.setPixels(x, y, w, h, model, pix, off, scansize); --- 128,138 ---- } return count; } protected int setPixels(int x, int y, int w, int h, ColorModel model, ! int[] pix, int off, int scansize) { source.latchConsumers(this); ImageConsumerQueue cq = null; int count = 0; while ((cq = nextConsumer(cq)) != null) { cq.consumer.setPixels(x, y, w, h, model, pix, off, scansize);
< prev index next >