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

Commit ecffcc41 authored by Daniel Norman's avatar Daniel Norman Committed by Android (Google) Code Review
Browse files

Merge "cleanup: clean up flag high_contrast_text_inner_text_color" into main

parents 859c6c2c 1d602eeb
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -41,16 +41,6 @@ flag {
  is_exported: true
}

flag {
  name: "high_contrast_text_inner_text_color"
  namespace: "accessibility"
  description: "Render text color by modifying its brightness instead of defaulting to black and white"
  bug: "384793956"
  metadata {
      purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "hdr_10bit_plus"
  namespace: "core_graphics"
+2 −9
Original line number Diff line number Diff line
@@ -38,9 +38,6 @@ namespace flags {
constexpr bool high_contrast_text_small_text_rect() {
    return false;
}
constexpr bool high_contrast_text_inner_text_color() {
    return false;
}
}  // namespace flags
#endif // __linux__

@@ -162,12 +159,8 @@ public:
            // inner
            gDrawTextBlobMode = DrawTextBlobMode::HctInner;
            Paint innerPaint(paint);
            if (flags::high_contrast_text_inner_text_color()) {
            adjustHighContrastInnerTextColor(&lab);
            simplifyPaint(uirenderer::LabToSRGB(lab, 1.0f), &innerPaint);
            } else {
                simplifyPaint(darken ? SkColors::kBlack : SkColors::kWhite, &innerPaint);
            }
            innerPaint.setStyle(SkPaint::kFill_Style);
            canvas->drawGlyphs(glyphFunc, glyphCount, innerPaint, x, y, totalAdvance);
            gDrawTextBlobMode = DrawTextBlobMode::Normal;