31e6d66c74
* 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(); Co-authored-by: Charles Kerr <charles@charleskerr.com> * perf: avoid discarded GetView() call Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> |
||
---|---|---|
.. | ||
osr_host_display_client.cc | ||
osr_host_display_client.h | ||
osr_host_display_client_mac.mm | ||
osr_render_widget_host_view.cc | ||
osr_render_widget_host_view.h | ||
osr_video_consumer.cc | ||
osr_video_consumer.h | ||
osr_view_proxy.cc | ||
osr_view_proxy.h | ||
osr_web_contents_view.cc | ||
osr_web_contents_view.h | ||
osr_web_contents_view_mac.mm |