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

Side by Side Diff: ui/gl/gl_switches.cc

Issue 783543003: Update from https://crrev.com/306901 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « ui/gl/gl_switches.h ('k') | url/url_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gl/gl_switches.h" 5 #include "ui/gl/gl_switches.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 7
8 namespace gfx { 8 namespace gfx {
9 9
10 const char kGLImplementationDesktopName[] = "desktop"; 10 const char kGLImplementationDesktopName[] = "desktop";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 51 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
52 // library first, but fall back to regular library if loading fails. 52 // library first, but fall back to regular library if loading fails.
53 const char kTestGLLib[] = "test-gl-lib"; 53 const char kTestGLLib[] = "test-gl-lib";
54 54
55 // Use hardware gpu, if available, for tests. 55 // Use hardware gpu, if available, for tests.
56 const char kUseGpuInTests[] = "use-gpu-in-tests"; 56 const char kUseGpuInTests[] = "use-gpu-in-tests";
57 57
58 // On Windows only: use the WARP software rasterizer in the GPU process. 58 // On Windows only: use the WARP software rasterizer in the GPU process.
59 const char kUseWarp[] = "use-warp"; 59 const char kUseWarp[] = "use-warp";
60 60
61 // Include ANGLE's intermediate representation (AST) output in shader
62 // compilation info logs.
63 const char kGLShaderIntermOutput[] = "gl-shader-interm-output";
64
61 // Disables GL drawing operations which produce pixel output. With this 65 // Disables GL drawing operations which produce pixel output. With this
62 // the GL output will not be correct but tests will run faster. 66 // the GL output will not be correct but tests will run faster.
63 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; 67 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
64 68
65 // Forces the use of OSMesa instead of hardware gpu. 69 // Forces the use of OSMesa instead of hardware gpu.
66 const char kOverrideUseGLWithOSMesaForTests[] = 70 const char kOverrideUseGLWithOSMesaForTests[] =
67 "override-use-gl-with-osmesa-for-tests"; 71 "override-use-gl-with-osmesa-for-tests";
68 72
69 // This is the list of switches passed from this file that are passed from the 73 // This is the list of switches passed from this file that are passed from the
70 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 74 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
71 // to read it in the GPU process, else don't add it. 75 // to read it in the GPU process, else don't add it.
72 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 76 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
73 kDisableGpuVsync, 77 kDisableGpuVsync,
74 kDisableD3D11, 78 kDisableD3D11,
75 kEnableGPUServiceLogging, 79 kEnableGPUServiceLogging,
76 kEnableGPUServiceTracing, 80 kEnableGPUServiceTracing,
77 kGpuNoContextLost, 81 kGpuNoContextLost,
78 kDisableGLDrawingForTests, 82 kDisableGLDrawingForTests,
79 kOverrideUseGLWithOSMesaForTests, 83 kOverrideUseGLWithOSMesaForTests,
80 kUseWarp 84 kUseWarp,
85 kGLShaderIntermOutput
81 }; 86 };
82 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 87 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
83 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 88 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
84 89
85 } // namespace switches 90 } // namespace switches
86 91
OLDNEW
« no previous file with comments | « ui/gl/gl_switches.h ('k') | url/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698