/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* The following offsets are used to pack the parameters in
* createPackedParams(). (They are also used at the native level when
* unpacking the params.)
*/
/**
* Packs the given parameters into a single int value in order to save
* space on the rendering queue. Note that most of these parameters
* are only used for rendering LCD-optimized text, but conditionalizing
* this work wouldn't make any impact on performance, so we will pack
* those parameters even in the non-LCD case.
*/
return
}
}
/*
* The native drawGlyphList() only works with two composite types:
* - CompositeType.SrcOver (with any extra alpha), or
* - CompositeType.Xor
*/
/*
* In addition to the composite types listed above, the logic
* in OGL/D3DSurfaceData.validatePipe() allows for
* CompositeType.SrcNoEa, but only in the presence of an opaque
* color. If we reach this case, we know the color is opaque,
* and therefore SrcNoEa is the same as SrcOverNoEa, so we
* override the composite here.
*/
}
try {
} finally {
}
}
{
// assert rq.lock.isHeldByCurrentThread();
int posBytesRequired =
// make sure the RenderQueue keeps a hard reference to the FontStrike
// so that the associated glyph images are not disposed while enqueued
// process the queue first and then enqueue the glyphs
}
// enqueue parameters
// now enqueue glyph information
if (gl.usePositions()) {
}
} else {
// queue is too small to accomodate glyphs; perform
// the operation directly on the queue flushing thread
public void run() {
}
});
}
}
/**
* Called as a separate Runnable when the operation is too large to fit
* native implementation of this method.
*/
int lcdContrast,
/**
* Validates the state in the provided SunGraphics2D object.
*/
}