JBR-3648 Replace CacheCellInfo usages with MTLCacheCellInfo in metal rendering code

(cherry picked from commit 7a94f7ea07)
This commit is contained in:
Nikita Gubarkov
2021-07-29 15:58:21 +03:00
committed by jbrbot
parent 5753c6cdde
commit ae5bb33ab2
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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);