2362N/A * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 430N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 430N/A * This code is free software; you can redistribute it and/or modify it 430N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 430N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 430N/A * This code is distributed in the hope that it will be useful, but WITHOUT 430N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 430N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 430N/A * version 2 for more details (a copy is included in the LICENSE file that 430N/A * accompanied this code). 430N/A * You should have received a copy of the GNU General Public License version 430N/A * 2 along with this work; if not, write to the Free Software Foundation, 430N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 430N/A // REMIND: the glyph cache texture is not in the default pool, so 430N/A // this can be optimized not to release the texture 430N/A // init glyph cache data structure 430N/A "D3DGlyphCache::Init: "\
430N/A "could not init D3D glyph cache");
430N/A }
else {
// gcType == CACHE_LCD 430N/A "D3DGlyphCache::Init: "\
430N/A "could not create glyph cache texture");
430N/A // store glyph image in texture cell 430N/A // LCD text rendering optimization: if the number of pixels touched on 430N/A // the first or last column of the glyph image is less than 1/3 of the 430N/A // height of the glyph we do not consider them touched. 430N/A " invoked on CACHE_GRAY cache type instance!");
430N/A // need to invalidate the cache in this case; see comments 430N/A * This method is invoked in the (relatively rare) case where one or 430N/A * more glyphs is about to be kicked out of the glyph cache texture. 430N/A * Here we simply flush the vertex queue of the current context in case 430N/A * any pending vertices are dependent upon the current glyph cache layout.