electron/shell/browser/osr
Charles Kerr 6293bbced0
perf: avoid redundant calls to GetView() (#43216)
* perf: avoid double-calls to GetView()

There are a lot of places where we call the virtual method GetView()
twice in succession: the first to check if the view exists, and the
second to use. This PR holds the view in a temp variable instead, e.g.:

if (auto* view = foo->GetView())
  view->DoSomething();

* perf: avoid discarded GetView() call
2024-08-06 11:25:59 -05:00
..
osr_host_display_client.cc chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
osr_host_display_client.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
osr_host_display_client_mac.mm chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
osr_render_widget_host_view.cc perf: avoid redundant calls to GetView() (#43216) 2024-08-06 11:25:59 -05:00
osr_render_widget_host_view.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
osr_video_consumer.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
osr_video_consumer.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
osr_view_proxy.cc refactor: inline simple getters (#41125) 2024-01-29 20:43:28 -06:00
osr_view_proxy.h chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
osr_web_contents_view.cc perf: avoid redundant calls to GetView() (#43216) 2024-08-06 11:25:59 -05:00
osr_web_contents_view.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
osr_web_contents_view_mac.mm chore: bump chromium to 117.0.5923.0 (main) (#39304) 2023-08-04 10:47:29 +02:00