本文整理汇总了C++中J2dTraceLn函数的典型用法代码示例。如果您正苦于以下问题:C++ J2dTraceLn函数的具体用法?C++ J2dTraceLn怎么用?C++ J2dTraceLn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了J2dTraceLn函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: Win32BBSD_Dispose
/*
* Method: Win32BBSD_Dispose
*/
void
Win32BBSD_Dispose(JNIEnv *env, SurfaceDataOps *ops)
{
// ops is assumed non-null as it is checked in SurfaceData_DisposeOps
Win32SDOps *wsdo = (Win32SDOps*)ops;
J2dTraceLn(J2D_TRACE_INFO, "Win32BBSD_Dispose");
if (wsdo->lpSurface != NULL && !wsdo->surfaceLost) {
delete wsdo->lpSurface;
wsdo->lpSurface = NULL;
}
disposeOSSD_WSDO(env, wsdo);
}
开发者ID:michalwarecki,项目名称:ManagedRuntimeInitiative,代码行数:15,代码来源:WinBackBufferSurfaceData.cpp
示例2: Java_sun_java2d_xr_XRSurfaceData_initIDs
JNIEXPORT void JNICALL
Java_sun_java2d_xr_XRSurfaceData_initIDs(JNIEnv *env, jclass xsd)
{
#ifndef HEADLESS
J2dTraceLn(J2D_TRACE_INFO, "in XRSurfaceData_initIDs");
pictID = (*env)->GetFieldID(env, xsd, "picture", "I");
xidID = (*env)->GetFieldID(env, xsd, "xid", "I");
XShared_initIDs(env, JNI_FALSE);
#endif /* !HEADLESS */
}
开发者ID:cncomkyle,项目名称:openjdk_7_b147,代码行数:12,代码来源:XRSurfaceData.c
示例3: GetFlagValues
void GetFlagValues(JNIEnv *env, jclass wFlagsClass)
{
jboolean d3dEnabled = env->GetStaticBooleanField(wFlagsClass, d3dEnabledID);
jboolean d3dSet = env->GetStaticBooleanField(wFlagsClass, d3dSetID);
if (!d3dSet) {
// Only check environment variable if user did not set Java
// command-line parameter; values of sun.java2d.d3d override
// any setting of J2D_D3D environment variable.
char *d3dEnv = getenv("J2D_D3D");
if (d3dEnv) {
if (strcmp(d3dEnv, "false") == 0) {
// printf("Java2D Direct3D usage disabled by J2D_D3D env\n");
d3dEnabled = FALSE;
d3dSet = TRUE;
SetD3DEnabledFlag(env, d3dEnabled, d3dSet);
} else if (strcmp(d3dEnv, "true") == 0) {
// printf("Java2D Direct3D usage forced on by J2D_D3D env\n");
d3dEnabled = TRUE;
d3dSet = TRUE;
SetD3DEnabledFlag(env, d3dEnabled, d3dSet);
}
}
}
useD3D = d3dEnabled;
forceD3DUsage = d3dSet;
g_offscreenSharing = GetStaticBoolean(env, wFlagsClass,
"offscreenSharingEnabled");
accelReset = GetStaticBoolean(env, wFlagsClass, "accelReset");
checkRegistry = GetStaticBoolean(env, wFlagsClass, "checkRegistry");
disableRegistry = GetStaticBoolean(env, wFlagsClass, "disableRegistry");
jstring javaVersionString = (jstring)GetStaticObject(env, wFlagsClass,
"javaVersion",
"Ljava/lang/String;");
setHighDPIAware =
(IS_WINVISTA && GetStaticBoolean(env, wFlagsClass, "setHighDPIAware"));
J2dTraceLn(J2D_TRACE_INFO, "WindowsFlags (native):");
J2dTraceLn1(J2D_TRACE_INFO, " d3dEnabled = %s",
(useD3D ? "true" : "false"));
J2dTraceLn1(J2D_TRACE_INFO, " d3dSet = %s",
(forceD3DUsage ? "true" : "false"));
J2dTraceLn1(J2D_TRACE_INFO, " offscreenSharing = %s",
(g_offscreenSharing ? "true" : "false"));
J2dTraceLn1(J2D_TRACE_INFO, " accelReset = %s",
(accelReset ? "true" : "false"));
J2dTraceLn1(J2D_TRACE_INFO, " checkRegistry = %s",
(checkRegistry ? "true" : "false"));
J2dTraceLn1(J2D_TRACE_INFO, " disableRegistry = %s",
(disableRegistry ? "true" : "false"));
J2dTraceLn1(J2D_TRACE_INFO, " setHighDPIAware = %s",
(setHighDPIAware ? "true" : "false"));
}
开发者ID:ChenYao,项目名称:jdk7u-jdk,代码行数:53,代码来源:WindowsFlags.cpp
示例4: GLXGC_InitScratchPbuffer
/**
* Creates a scratch pbuffer, which can be used to make a context current
* for extension queries, etc.
*/
static GLXPbuffer
GLXGC_InitScratchPbuffer(GLXFBConfig fbconfig)
{
int pbattrlist[] = {GLX_PBUFFER_WIDTH, 4,
GLX_PBUFFER_HEIGHT, 4,
GLX_PRESERVED_CONTENTS, GL_FALSE,
0};
J2dTraceLn(J2D_TRACE_INFO, "GLXGC_InitScratchPbuffer");
return j2d_glXCreatePbuffer(awt_display, fbconfig, pbattrlist);
}
开发者ID:wei-tang,项目名称:JVM,代码行数:16,代码来源:GLXGraphicsConfig.c
示例5: OGLContext_InitBlitTileTexture
/**
* Initializes a small texture tile for use with tiled blit operations (see
* OGLBlitLoops.c and OGLMaskBlit.c for usage examples). The texture ID for
* the tile is stored in the given OGLContext. The tile is initially filled
* with garbage values, but the tile is updated as needed (via
* glTexSubImage2D()) with real RGBA values used in tiled blit situations.
* The internal format for the texture is GL_RGBA8, which should be sufficient
* for storing system memory surfaces of any known format (see PixelFormats
* for a list of compatible surface formats).
*/
jboolean
OGLContext_InitBlitTileTexture(OGLContext *oglc)
{
J2dTraceLn(J2D_TRACE_INFO, "OGLContext_InitBlitTileTexture");
oglc->blitTextureID =
OGLContext_CreateBlitTexture(GL_RGBA8, GL_RGBA,
OGLC_BLIT_TILE_SIZE,
OGLC_BLIT_TILE_SIZE);
return JNI_TRUE;
}
开发者ID:krichter722,项目名称:jdk9-jdk9-jdk,代码行数:22,代码来源:OGLContext.c
示例6: J2dTraceLn
D3DGlyphCache::~D3DGlyphCache()
{
J2dTraceLn(J2D_TRACE_INFO, "D3DGlyphCache::~D3DGlyphCache");
ReleaseDefPoolResources();
pCtx = NULL;
if (pGlyphCache != NULL) {
AccelGlyphCache_Free(pGlyphCache);
pGlyphCache = NULL;
}
}
开发者ID:AllenWeb,项目名称:openjdk-1,代码行数:12,代码来源:D3DGlyphCache.cpp
示例7: OGLSD_SwapBuffers
void
OGLSD_SwapBuffers(JNIEnv *env, jlong window)
{
J2dTraceLn(J2D_TRACE_INFO, "OGLSD_SwapBuffers");
if (window == 0L) {
J2dRlsTraceLn(J2D_TRACE_ERROR,
"OGLSD_SwapBuffers: window is null");
return;
}
j2d_glXSwapBuffers(awt_display, (Window)window);
}
开发者ID:michalwarecki,项目名称:ManagedRuntimeInitiative,代码行数:13,代码来源:GLXSurfaceData.c
示例8: AccelGlyphCache_AddCellInfo
/**
* Add cell info to the head of the glyph's list of cached cells.
*/
void
AccelGlyphCache_AddCellInfo(GlyphInfo *glyph, CacheCellInfo *cellInfo)
{
// assert (glyph != NULL && cellInfo != NULL)
J2dTraceLn(J2D_TRACE_INFO, "AccelGlyphCache_AddCellInfo");
J2dTraceLn2(J2D_TRACE_VERBOSE, " glyph 0x%x: adding cell 0x%x to the list",
glyph, cellInfo);
cellInfo->glyphInfo = glyph;
cellInfo->nextGCI = glyph->cellInfo;
glyph->cellInfo = cellInfo;
glyph->managed = MANAGED_GLYPH;
}
开发者ID:Gustfh,项目名称:jdk8u-dev-jdk,代码行数:16,代码来源:AccelGlyphCache.c
示例9: OGLContext_DestroyContextResources
/**
* Destroys the OpenGL resources associated with the given OGLContext.
* It is required that the native context associated with the OGLContext
* be made current prior to calling this method.
*/
void
OGLContext_DestroyContextResources(OGLContext *oglc)
{
J2dTraceLn(J2D_TRACE_INFO, "OGLContext_DestroyContextResources");
if (oglc->xformMatrix != NULL) {
free(oglc->xformMatrix);
}
if (oglc->blitTextureID != 0) {
j2d_glDeleteTextures(1, &oglc->blitTextureID);
}
}
开发者ID:krichter722,项目名称:jdk9-jdk9-jdk,代码行数:18,代码来源:OGLContext.c
示例10: J2dTraceLn
/*
* Class: sun_java2d_d3d_D3DSurfaceData
* Method: dbSetPixelNative
* Signature: (JIII)V
*/
JNIEXPORT void JNICALL Java_sun_java2d_d3d_D3DSurfaceData_dbSetPixelNative
(JNIEnv *env, jclass clazz, jlong pData, jint x, jint y, jint pixel)
{
HRESULT res;
D3DSDOps *d3dsdo;
D3DResource *pLockableRes;
D3DContext *pCtx;
D3DPipelineManager *pMgr;
J2dTraceLn(J2D_TRACE_INFO, "D3DSurfaceData_dbSetPixelNative");
RETURN_IF_NULL(d3dsdo = (D3DSDOps *)jlong_to_ptr(pData));
RETURN_IF_NULL(d3dsdo->pResource);
RETURN_IF_NULL(pMgr = D3DPipelineManager::GetInstance());
if (FAILED(res = pMgr->GetD3DContext(d3dsdo->adapter, &pCtx))) {
D3DRQ_MarkLostIfNeeded(res, d3dsdo);
return;
}
RETURN_IF_NULL(pCtx->GetResourceManager());
IDirect3DDevice9 *pd3dDevice = pCtx->Get3DDevice();
IDirect3DSurface9 *pSrc = d3dsdo->pResource->GetSurface();
D3DFORMAT srcFmt = d3dsdo->pResource->GetDesc()->Format;
pCtx->UpdateState(STATE_OTHEROP);
res = pCtx->GetResourceManager()->
GetLockableRTSurface(1, 1, srcFmt, &pLockableRes);
if (SUCCEEDED(res)) {
IDirect3DSurface9 *pTmpSurface;
D3DLOCKED_RECT lRect;
RECT srcRect = { 0l, 0l, 1, 1 };
RECT dstRect = { x, y, x+1, y+1};
pTmpSurface = pLockableRes->GetSurface();
res = pTmpSurface->LockRect(&lRect, &srcRect, D3DLOCK_NOSYSLOCK);
if (SUCCEEDED(res)) {
if (srcFmt == D3DFMT_X8R8G8B8) {
*(jint*)lRect.pBits = pixel;
} else {
*(unsigned short*)lRect.pBits = (unsigned short)pixel;
}
pTmpSurface->UnlockRect();
res = pd3dDevice->StretchRect(pTmpSurface, &srcRect, pSrc, &dstRect,
D3DTEXF_NONE);
}
}
D3DRQ_MarkLostIfNeeded(res, d3dsdo);
}
开发者ID:ChenYao,项目名称:jdk7u-jdk,代码行数:56,代码来源:D3DSurfaceData.cpp
示例11: J2dTraceLn
HRESULT
D3DVertexCacher::CreateInstance(D3DContext *pCtx, D3DVertexCacher **ppVC)
{
HRESULT res;
J2dTraceLn(J2D_TRACE_INFO, "D3DVertexCacher::CreateInstance");
*ppVC = new D3DVertexCacher();
if (FAILED(res = (*ppVC)->Init(pCtx))) {
delete *ppVC;
*ppVC = NULL;
}
return res;
}
开发者ID:ChenYao,项目名称:jdk7u-jdk,代码行数:14,代码来源:D3DVertexCacher.cpp
示例12: OGLTR_DisableGlyphVertexCache
void
OGLTR_DisableGlyphVertexCache(OGLContext *oglc)
{
J2dTraceLn(J2D_TRACE_INFO, "OGLTR_DisableGlyphVertexCache");
OGLVertexCache_FlushVertexCache();
OGLVertexCache_RestoreColorState(oglc);
j2d_glDisable(GL_TEXTURE_2D);
j2d_glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
j2d_glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
j2d_glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
j2d_glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
}
开发者ID:ChenYao,项目名称:jdk7u-jdk,代码行数:14,代码来源:OGLTextRenderer.c
示例13: D3DBufImgOps_DisableConvolveOp
HRESULT
D3DBufImgOps_DisableConvolveOp(D3DContext *d3dc)
{
IDirect3DDevice9 *pd3dDevice;
J2dTraceLn(J2D_TRACE_INFO, "D3DBufImgOps_DisableConvolveOp");
RETURN_STATUS_IF_NULL(d3dc, E_FAIL);
d3dc->UpdateState(STATE_CHANGE);
// disable the ConvolveOp shader
pd3dDevice = d3dc->Get3DDevice();
return pd3dDevice->SetPixelShader(NULL);
}
开发者ID:ChenYao,项目名称:jdk7u-jdk,代码行数:14,代码来源:D3DBufImgOps.cpp
示例14: OGLRenderer_FillRect
void
OGLRenderer_FillRect(OGLContext *oglc, jint x, jint y, jint w, jint h)
{
J2dTraceLn(J2D_TRACE_INFO, "OGLRenderer_FillRect");
if (w <= 0 || h <= 0) {
return;
}
RETURN_IF_NULL(oglc);
CHECK_PREVIOUS_OP(GL_QUADS);
GLRECT_BODY_XYWH(x, y, w, h);
}
开发者ID:michalwarecki,项目名称:ManagedRuntimeInitiative,代码行数:14,代码来源:OGLRenderer.c
示例15: J2dTraceLn
JNIEXPORT void JNICALL
Java_sun_java2d_opengl_OGLTextRenderer_drawGlyphList
(JNIEnv *env, jobject self,
jint numGlyphs, jboolean usePositions,
jboolean subPixPos, jboolean rgbOrder, jint lcdContrast,
jfloat glyphListOrigX, jfloat glyphListOrigY,
jlongArray imgArray, jfloatArray posArray)
{
unsigned char *images;
J2dTraceLn(J2D_TRACE_INFO, "OGLTextRenderer_drawGlyphList");
images = (unsigned char *)
(*env)->GetPrimitiveArrayCritical(env, imgArray, NULL);
if (images != NULL) {
OGLContext *oglc = OGLRenderQueue_GetCurrentContext();
OGLSDOps *dstOps = OGLRenderQueue_GetCurrentDestination();
if (usePositions) {
unsigned char *positions = (unsigned char *)
(*env)->GetPrimitiveArrayCritical(env, posArray, NULL);
if (positions != NULL) {
OGLTR_DrawGlyphList(env, oglc, dstOps,
numGlyphs, usePositions,
subPixPos, rgbOrder, lcdContrast,
glyphListOrigX, glyphListOrigY,
images, positions);
(*env)->ReleasePrimitiveArrayCritical(env, posArray,
positions, JNI_ABORT);
}
} else {
OGLTR_DrawGlyphList(env, oglc, dstOps,
numGlyphs, usePositions,
subPixPos, rgbOrder, lcdContrast,
glyphListOrigX, glyphListOrigY,
images, NULL);
}
// 6358147: reset current state, and ensure rendering is
// flushed to dest
if (oglc != NULL) {
RESET_PREVIOUS_OP();
j2d_glFlush();
}
(*env)->ReleasePrimitiveArrayCritical(env, imgArray,
images, JNI_ABORT);
}
}
开发者ID:ChenYao,项目名称:jdk7u-jdk,代码行数:49,代码来源:OGLTextRenderer.c
示例16: J2dTraceLn
HRESULT
D3DResourceManager::CreateInstance(D3DContext *pCtx,
D3DResourceManager** ppResourceMgr)
{
HRESULT res;
J2dTraceLn(J2D_TRACE_INFO, "D3DRM::CreateInstance");
*ppResourceMgr = new D3DResourceManager();
if (FAILED(res = (*ppResourceMgr)->Init(pCtx))) {
delete *ppResourceMgr;
*ppResourceMgr = NULL;
}
return res;
}
开发者ID:ChenYao,项目名称:jdk7u-jdk,代码行数:15,代码来源:D3DResourceManager.cpp
示例17: OGLContext_IsVersionSupported
/**
* Returns JNI_TRUE if the given GL_VERSION string meets the minimum
* requirements (>= 1.2); JNI_FALSE otherwise.
*/
jboolean
OGLContext_IsVersionSupported(const unsigned char *versionstr)
{
J2dTraceLn(J2D_TRACE_INFO, "OGLContext_IsVersionSupported");
if (versionstr == NULL) {
J2dRlsTraceLn(J2D_TRACE_ERROR,
"OGLContext_IsVersionSupported: version string is null");
return JNI_FALSE;
}
// note that this check allows for OpenGL 2.x
return ((versionstr[0] == '1' && versionstr[2] >= '2') ||
(versionstr[0] >= '2'));
}
开发者ID:krichter722,项目名称:jdk9-jdk9-jdk,代码行数:19,代码来源:OGLContext.c
注:本文中的J2dTraceLn函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论