Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 066e6bfd authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 4792 into donut

* changes:
  when we reset a paint, it should return to the state it was in when it was first created. for java, this means setting its text-encoding to UTF16...
parents 9ebd737e 290f5baf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -69,6 +69,8 @@ public:
 
    static void reset(JNIEnv* env, jobject clazz, SkPaint* obj) {
        obj->reset();
        // utf16 is required for java
        obj->setTextEncoding(SkPaint::kUTF16_TextEncoding);
    }
 
    static void assign(JNIEnv* env, jobject clazz, SkPaint* dst, const SkPaint* src) {