320 doDrawGlyphs() has been separated into several pipelined functions to increase performance, |
320 doDrawGlyphs() has been separated into several pipelined functions to increase performance, |
321 and improve accountability for JNI resources, malloc'd memory, and error handling. |
321 and improve accountability for JNI resources, malloc'd memory, and error handling. |
322 |
322 |
323 Each stage of the pipeline is responsible for doing only one major thing, like allocating buffers, |
323 Each stage of the pipeline is responsible for doing only one major thing, like allocating buffers, |
324 aquiring transform arrays from JNI, filling buffers, or striking glyphs. All resources or memory |
324 aquiring transform arrays from JNI, filling buffers, or striking glyphs. All resources or memory |
325 aquired at a given stage, must be released in that stage. Any error that occurs (like a failed malloc) |
325 acquired at a given stage, must be released in that stage. Any error that occurs (like a failed malloc) |
326 is to be handled in the stage it occurs in, and is to return immediatly after freeing it's resources. |
326 is to be handled in the stage it occurs in, and is to return immediatly after freeing it's resources. |
327 |
327 |
328 -----------------------------------*/ |
328 -----------------------------------*/ |
329 |
329 |
330 static JNF_CLASS_CACHE(jc_StandardGlyphVector, "sun/font/StandardGlyphVector"); |
330 static JNF_CLASS_CACHE(jc_StandardGlyphVector, "sun/font/StandardGlyphVector"); |