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

Side by Side Diff: gpu/command_buffer/service/gpu_switches.cc

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: fix windows build Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | gpu/command_buffer/service/path_manager.h » ('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 "gpu/command_buffer/service/gpu_switches.h" 5 #include "gpu/command_buffer/service/gpu_switches.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 "enable-threaded-texture-mailboxes"; 64 "enable-threaded-texture-mailboxes";
65 65
66 // Include ANGLE's intermediate representation (AST) output in shader 66 // Include ANGLE's intermediate representation (AST) output in shader
67 // compilation info logs. 67 // compilation info logs.
68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; 68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output";
69 69
70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to 70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to
71 // round intermediate values in ANGLE. 71 // round intermediate values in ANGLE.
72 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; 72 const char kEmulateShaderPrecision[] = "emulate-shader-precision";
73 73
74 // Enables using path rendering implementation implemented currently
75 // in NV_path_rendering OpenGL extension. Requires compatible hardware
76 // and driver. This is used in GPU rasterization.
77 const char kEnableGLPathRendering[] = "enable-gl-path-rendering";
78
74 const char* kGpuSwitches[] = { 79 const char* kGpuSwitches[] = {
75 kCompileShaderAlwaysSucceeds, 80 kCompileShaderAlwaysSucceeds,
76 kDisableGLErrorLimit, 81 kDisableGLErrorLimit,
77 kDisableGLSLTranslator, 82 kDisableGLSLTranslator,
78 kDisableGpuDriverBugWorkarounds, 83 kDisableGpuDriverBugWorkarounds,
79 kDisableShaderNameHashing, 84 kDisableShaderNameHashing,
80 kEnableGPUCommandLogging, 85 kEnableGPUCommandLogging,
81 kEnableGPUDebugging, 86 kEnableGPUDebugging,
82 kEnableGPUServiceLoggingGPU, 87 kEnableGPUServiceLoggingGPU,
83 kDisableGpuProgramCache, 88 kDisableGpuProgramCache,
84 kEnforceGLMinimums, 89 kEnforceGLMinimums,
85 kForceGpuMemAvailableMb, 90 kForceGpuMemAvailableMb,
86 kGpuDriverBugWorkarounds, 91 kGpuDriverBugWorkarounds,
87 kGpuProgramCacheSizeKb, 92 kGpuProgramCacheSizeKb,
88 kDisableGpuShaderDiskCache, 93 kDisableGpuShaderDiskCache,
89 kEnableShareGroupAsyncTextureUpload, 94 kEnableShareGroupAsyncTextureUpload,
90 kEnableSubscribeUniformExtension, 95 kEnableSubscribeUniformExtension,
91 kGLShaderIntermOutput, 96 kGLShaderIntermOutput,
92 kEmulateShaderPrecision, 97 kEmulateShaderPrecision,
98 kEnableGLPathRendering,
93 }; 99 };
94 100
95 const int kNumGpuSwitches = arraysize(kGpuSwitches); 101 const int kNumGpuSwitches = arraysize(kGpuSwitches);
96 102
97 } // namespace switches 103 } // namespace switches
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | gpu/command_buffer/service/path_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698