jdk/src/windows/native/sun/java2d/windows/GDIBlitLoops.cpp
changeset 21278 ef8a3a2a72f2
parent 18232 b538b71fb429
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   159             } else {
   159             } else {
   160                 // If no LUT needed, must be ByteGray src.  If we have not
   160                 // If no LUT needed, must be ByteGray src.  If we have not
   161                 // yet created the byteGrayPalette, create it now and copy
   161                 // yet created the byteGrayPalette, create it now and copy
   162                 // it into our temporary bmi structure.
   162                 // it into our temporary bmi structure.
   163                 // REMIND: byteGrayPalette is a leak since we do not have
   163                 // REMIND: byteGrayPalette is a leak since we do not have
   164                 // a mechansim to free it up.  This should be fine, since it
   164                 // a mechanism to free it up.  This should be fine, since it
   165                 // is only 256 bytes for any process and only gets malloc'd
   165                 // is only 256 bytes for any process and only gets malloc'd
   166                 // when using ByteGray surfaces.  Eventually, we should use
   166                 // when using ByteGray surfaces.  Eventually, we should use
   167                 // the new Disposer mechanism to delete this native memory.
   167                 // the new Disposer mechanism to delete this native memory.
   168                 if (byteGrayPalette == NULL) {
   168                 if (byteGrayPalette == NULL) {
   169                     // assert (256 * sizeof(RGBQUAD)) <= SIZE_MAX
   169                     // assert (256 * sizeof(RGBQUAD)) <= SIZE_MAX