1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90

content / child / dwrite_font_proxy / blink_dwrite_call_flow.dot [blame]

digraph {
  newrank=true;
  node [shape="box"];

  CreateTypeface
  -> matchFamilyStyle
  -> matchFamily
  -> FindFamilyName
  -> CreateFamily
  -> RuntimeClassInitialize
  ;

  matchFamilyStyle
  -> matchStyle
  -> GetFirstMatchingFont
  -> LoadFamily
  -> FontCollectionLoadFamily
  -> CreateCustomFontCollection
  -> CreateEnumeratorFromKey
  ;

  matchStyle [label="matchStyle\n99% of CreateTypeface", color=red];
  CreateCustomFontCollection [label="CreateCustomFontCollection\n90% of CreateTypeface", color=red];
  "FontCollectionBuilder::AddFontFiles" [label="FontCollectionBuilder::AddFontFiles\n50% of CreateTypeface", color=red];
  CreateEnumeratorFromKey [label="CreateEnumeratorFromKey\n20% of CreateTypeface", color=red];

  subgraph cluster_Renderer {
    label = "Renderer";
    subgraph cluster_FontCache {
      label = "blink::FontCache";
      CreateTypeface;
    }

    subgraph cluster_content_child {
      label = "content/child";

      subgraph cluster_DWriteFontCollectionProxy {
        label = "DWriteFontCollectionProxy";
        FindFamilyName;
        CreateFamily;
        FontCollectionLoadFamily [label="LoadFamily"];
        CreateEnumeratorFromKey;
      }

      subgraph cluster_DWriteFontFamilyProxy {
        label = "DWriteFontFamilyProxy";
        RuntimeClassInitialize;
        GetFirstMatchingFont;
        LoadFamily;
      }
    }

    subgraph cluster_Skia {
      label = "Skia";

      subgraph cluster_SkFontStyleSet {
        label = "SkFontStyleSet";
        matchStyle;
      }

      subgraph cluster_SkFontMgr {
        label = "SkFontMgr";
        matchFamily;
        matchFamilyStyle;
      }
    }

    subgraph cluster_DWriteInRenderer {
      label = "DWrite";
      CreateCustomFontCollection
      -> "FontCollectionBuilder::AddFontFiles"
      ;
    }
  }

  subgraph cluster_Browser {
    label = "Browser (ThreadPoolForegroundWorker)";
    subgraph cluster_DWriteFontProxyImpl {
      label = "DWriteFontProxyImpl";
      FindFamilyName -> FindFamily;
      CreateFamily -> GetFamilyCount [label="only once"];
      CreateEnumeratorFromKey -> GetFontFiles;
    }

    subgraph cluster_DWriteInBrowser {
      label = "DWrite";
      "IDWriteFontCollection (System)";
    }
  }
}