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

Unified Diff: services/native_viewport/app_delegate.cc

Issue 1350723004: Apply gpu workarounds. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: need to use the process command_line so move the init to where the process command line is initiali… Created 5 years, 3 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
« no previous file with comments | « services/native_viewport/BUILD.gn ('k') | shell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/app_delegate.cc
diff --git a/services/native_viewport/app_delegate.cc b/services/native_viewport/app_delegate.cc
index bf290a8cd4d88f1260a93a5e3e00b96807f57b63..38ee4032bcc9c87fd549e16bfb9dbfcd78b90850 100644
--- a/services/native_viewport/app_delegate.cc
+++ b/services/native_viewport/app_delegate.cc
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <vector>
#include "services/native_viewport/app_delegate.h"
+#include <vector>
+#include "gpu/config/gpu_util.h"
+
namespace native_viewport {
NativeViewportAppDelegate::NativeViewportAppDelegate() : is_headless_(false) {}
@@ -44,6 +46,8 @@ void NativeViewportAppDelegate::Initialize(mojo::ApplicationImpl* application) {
command_line->AppendSwitchASCII(touch_event_string, *touch_iter);
}
+ gpu::ApplyGpuDriverBugWorkarounds(command_line);
+
if (application->HasArg(mojo::kUseTestConfig))
gfx::GLSurface::InitializeOneOffForTests();
else if (application->HasArg(mojo::kUseOSMesa))
« no previous file with comments | « services/native_viewport/BUILD.gn ('k') | shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698