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

Unified Diff: chrome/app/chrome_main.cc

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 4 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: chrome/app/chrome_main.cc
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index 80cd0fb2f8944215f40ee84c89adb23b886750cc..91c6161c1abb5e0a3dbf1dd869ce6664e22f0cad 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -7,9 +7,12 @@
#include "content/public/app/content_main.h"
#if defined(OS_WIN)
+#include "base/command_line.h"
#include "base/debug/dump_without_crashing.h"
#include "base/win/win_util.h"
#include "chrome/common/chrome_constants.h"
+#include "chrome/common/chrome_switches.h"
+#include "gpu/config/gpu_info_collector.h"
#define DLLEXPORT __declspec(dllexport)
@@ -49,6 +52,11 @@ int ChromeMain(int argc, const char** argv) {
::GetProcAddress(::GetModuleHandle(chrome::kBrowserProcessExecutableName),
"DumpProcessWithoutCrash"));
base::debug::SetDumpWithoutCrashingFunction(DumpProcess);
+
+ if (CommandLine::InitializedForCurrentProcess()) {
+ gpu::SetShouldFallbackToWarp(
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kViewerConnect));
Zhenyao Mo 2014/08/29 18:28:50 It seems to me that we add ShouldFallbackToWarp()
luken 2014/08/29 23:34:03 I moved it. Since kViewerConnect needs to be used
+ }
#else
params.argc = argc;
params.argv = argv;
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698