mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-22 09:19:37 +01:00
JBR-3648 Replace CacheCellInfo usages with MTLCacheCellInfo in metal rendering code
(cherry picked from commit 7a94f7ea07)
This commit is contained in:
@@ -39,8 +39,8 @@ typedef void (MTLFlushFunc)();
|
||||
typedef struct _MTLCacheCellInfo MTLCacheCellInfo;
|
||||
|
||||
typedef struct {
|
||||
CacheCellInfo *head;
|
||||
CacheCellInfo *tail;
|
||||
MTLCacheCellInfo *head;
|
||||
MTLCacheCellInfo *tail;
|
||||
id<MTLTexture> texture;
|
||||
jint width;
|
||||
jint height;
|
||||
|
||||
@@ -388,7 +388,7 @@ MTLTR_DrawLCDGlyphViaCache(MTLContext *mtlc, BMTLSDOps *dstOps,
|
||||
GlyphInfo *ginfo, jint x, jint y,
|
||||
jboolean rgbOrder, jint contrast)
|
||||
{
|
||||
CacheCellInfo *cell;
|
||||
MTLCacheCellInfo *cell;
|
||||
jfloat tx1, ty1, tx2, ty2;
|
||||
jint w = ginfo->width;
|
||||
jint h = ginfo->height;
|
||||
@@ -430,7 +430,7 @@ MTLTR_DrawLCDGlyphViaCache(MTLContext *mtlc, BMTLSDOps *dstOps,
|
||||
return JNI_TRUE;
|
||||
}
|
||||
}
|
||||
cell = (CacheCellInfo *) (ginfo->cellInfo);
|
||||
cell = (MTLCacheCellInfo *) (ginfo->cellInfo);
|
||||
cell->timesRendered++;
|
||||
|
||||
MTLTR_SetLCDContrast(mtlc, contrast, lcdCacheEncoder);
|
||||
|
||||
Reference in New Issue
Block a user