Revert "Fix bug #8194572 Chrome SIGBUS'es on launch around TextLayoutCacheKey"
This reverts commit ebcacc785b.
This commit is contained in:
@@ -752,7 +752,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
static void drawText___CIIFFPaint(JNIEnv* env, jobject, SkCanvas* canvas,
|
||||
static void drawText___CIIFFIPaint(JNIEnv* env, jobject, SkCanvas* canvas,
|
||||
jcharArray text, int index, int count,
|
||||
jfloat x, jfloat y, SkPaint* paint) {
|
||||
jchar* textArray = env->GetCharArrayElements(text, NULL);
|
||||
@@ -760,7 +760,7 @@ public:
|
||||
env->ReleaseCharArrayElements(text, textArray, JNI_ABORT);
|
||||
}
|
||||
|
||||
static void drawText__StringIIFFPaint(JNIEnv* env, jobject,
|
||||
static void drawText__StringIIFFIPaint(JNIEnv* env, jobject,
|
||||
SkCanvas* canvas, jstring text,
|
||||
int start, int end,
|
||||
jfloat x, jfloat y, SkPaint* paint) {
|
||||
@@ -846,10 +846,10 @@ static void doDrawTextDecorations(SkCanvas* canvas, jfloat x, jfloat y, jfloat l
|
||||
delete[] posPtr;
|
||||
}
|
||||
|
||||
static void drawTextRun___CIIIIFFPaint(
|
||||
static void drawTextRun___CIIIIFFIPaint(
|
||||
JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index,
|
||||
int count, int contextIndex, int contextCount,
|
||||
jfloat x, jfloat y, SkPaint* paint) {
|
||||
jfloat x, jfloat y, int dirFlags, SkPaint* paint) {
|
||||
|
||||
jchar* chars = env->GetCharArrayElements(text, NULL);
|
||||
drawTextWithGlyphs(canvas, chars + contextIndex, index - contextIndex,
|
||||
@@ -857,10 +857,10 @@ static void doDrawTextDecorations(SkCanvas* canvas, jfloat x, jfloat y, jfloat l
|
||||
env->ReleaseCharArrayElements(text, chars, JNI_ABORT);
|
||||
}
|
||||
|
||||
static void drawTextRun__StringIIIIFFPaint(
|
||||
static void drawTextRun__StringIIIIFFIPaint(
|
||||
JNIEnv* env, jobject obj, SkCanvas* canvas, jstring text, jint start,
|
||||
jint end, jint contextStart, jint contextEnd,
|
||||
jfloat x, jfloat y, SkPaint* paint) {
|
||||
jfloat x, jfloat y, jint dirFlags, SkPaint* paint) {
|
||||
|
||||
jint count = end - start;
|
||||
jint contextCount = contextEnd - contextStart;
|
||||
@@ -1052,13 +1052,13 @@ static JNINativeMethod gCanvasMethods[] = {
|
||||
{"nativeDrawVertices", "(III[FI[FI[II[SIII)V",
|
||||
(void*)SkCanvasGlue::drawVertices},
|
||||
{"native_drawText","(I[CIIFFI)V",
|
||||
(void*) SkCanvasGlue::drawText___CIIFFPaint},
|
||||
(void*) SkCanvasGlue::drawText___CIIFFIPaint},
|
||||
{"native_drawText","(ILjava/lang/String;IIFFI)V",
|
||||
(void*) SkCanvasGlue::drawText__StringIIFFPaint},
|
||||
(void*) SkCanvasGlue::drawText__StringIIFFIPaint},
|
||||
{"native_drawTextRun","(I[CIIIIFFI)V",
|
||||
(void*) SkCanvasGlue::drawTextRun___CIIIIFFPaint},
|
||||
(void*) SkCanvasGlue::drawTextRun___CIIIIFFIPaint},
|
||||
{"native_drawTextRun","(ILjava/lang/String;IIIIFFI)V",
|
||||
(void*) SkCanvasGlue::drawTextRun__StringIIIIFFPaint},
|
||||
(void*) SkCanvasGlue::drawTextRun__StringIIIIFFIPaint},
|
||||
{"native_drawPosText","(I[CII[FI)V",
|
||||
(void*) SkCanvasGlue::drawPosText___CII_FPaint},
|
||||
{"native_drawPosText","(ILjava/lang/String;[FI)V",
|
||||
|
||||
Reference in New Issue
Block a user