Index: chrome/browser/browser_process_impl.cc |
=================================================================== |
--- chrome/browser/browser_process_impl.cc (revision 186737) |
+++ chrome/browser/browser_process_impl.cc (working copy) |
@@ -35,6 +35,7 @@ |
#include "chrome/browser/extensions/extension_renderer_state.h" |
#include "chrome/browser/first_run/upgrade_util.h" |
#include "chrome/browser/gpu/gl_string_manager.h" |
+#include "chrome/browser/gpu/gpu_mode_manager.h" |
#include "chrome/browser/icon_manager.h" |
#include "chrome/browser/idle.h" |
#include "chrome/browser/intranet_redirect_detector.h" |
@@ -506,6 +507,13 @@ |
return gl_string_manager_.get(); |
} |
+GpuModeManager* BrowserProcessImpl::gpu_mode_manager() { |
+ DCHECK(CalledOnValidThread()); |
+ if (!gpu_mode_manager_.get()) |
+ gpu_mode_manager_.reset(new GpuModeManager()); |
+ return gpu_mode_manager_.get(); |
+} |
+ |
RenderWidgetSnapshotTaker* BrowserProcessImpl::GetRenderWidgetSnapshotTaker() { |
return render_widget_snapshot_taker_.get(); |
} |