@Override
    public void handleMessage(Message msg) {
      Layout layout = (Layout) msg.obj;
      try {
        Canvas canvas =
            mPicture.beginRecording(
                // NULLSAFE_FIXME[Parameter Not Nullable]
                LayoutMeasureUtil.getWidth(layout), LayoutMeasureUtil.getHeight(layout));
        Preconditions.checkNotNull(layout).draw(canvas);
        mPicture.endRecording();
      } catch (Exception e) {
        // Do nothing.
      }
    }
A handler to send messages to the GlyphWarmerImpl thread.
library/src/main/java/com/facebook/fbui/textlayoutbuilder/glyphwarmer/GlyphWarmerImpl.java