Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(687)

Unified Diff: content/common/gpu/media/rendering_helper.cc

Issue 972153004: Make ui::DisplayConfigurator a singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make a Singleton Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/rendering_helper.cc
diff --git a/content/common/gpu/media/rendering_helper.cc b/content/common/gpu/media/rendering_helper.cc
index 3ceea1fa6f9585178c9acda5e13d8f0f4c09ce2f..f2706f795850647f63666f55364f797fd5e0c6a9 100644
--- a/content/common/gpu/media/rendering_helper.cc
+++ b/content/common/gpu/media/rendering_helper.cc
@@ -245,7 +245,7 @@ void RenderingHelper::Setup() {
// the same size.
base::RunLoop wait_display_setup;
DisplayConfiguratorObserver display_setup_observer(&wait_display_setup);
- display_configurator_.reset(new ui::DisplayConfigurator());
+ display_configurator_ = DisplayConfigurator::GetInstance();
display_configurator_->AddObserver(&display_setup_observer);
display_configurator_->Init(true);
display_configurator_->ForceInitialConfigure(0);
@@ -287,7 +287,6 @@ void RenderingHelper::TearDown() {
platform_window_delegate_.reset();
#if defined(OS_CHROMEOS)
display_configurator_->PrepareForExit();
- display_configurator_.reset();
#endif
#endif
window_ = gfx::kNullAcceleratedWidget;
« no previous file with comments | « content/common/gpu/media/rendering_helper.h ('k') | extensions/shell/browser/shell_desktop_controller_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698