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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 8474007: Disable accelerated 2d canvas and put it back as an option in about:flags. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 kOsAll, 169 kOsAll,
170 SINGLE_VALUE_TYPE(switches::kDisableGpuVsync) 170 SINGLE_VALUE_TYPE(switches::kDisableGpuVsync)
171 }, 171 },
172 { 172 {
173 "disable-webgl", 173 "disable-webgl",
174 IDS_FLAGS_DISABLE_WEBGL_NAME, 174 IDS_FLAGS_DISABLE_WEBGL_NAME,
175 IDS_FLAGS_DISABLE_WEBGL_DESCRIPTION, 175 IDS_FLAGS_DISABLE_WEBGL_DESCRIPTION,
176 kOsAll, 176 kOsAll,
177 SINGLE_VALUE_TYPE(switches::kDisableExperimentalWebGL) 177 SINGLE_VALUE_TYPE(switches::kDisableExperimentalWebGL)
178 }, 178 },
179 {
180 "gpu-canvas-2d", // FLAGS:RECORD_UMA
181 IDS_FLAGS_ACCELERATED_CANVAS_2D_NAME,
182 IDS_FLAGS_ACCELERATED_CANVAS_2D_DESCRIPTION,
183 kOsWin | kOsLinux | kOsCrOS,
184 SINGLE_VALUE_TYPE(switches::kEnableAccelerated2dCanvas)
185 },
179 // Exposed on all platforms until there is a workaround for easy access to 186 // Exposed on all platforms until there is a workaround for easy access to
180 // the native print dialog for users that need it. Once that's done, revert 187 // the native print dialog for users that need it. Once that's done, revert
181 // back to: 188 // back to:
182 // Only expose this for Chromium builds where users may not have the PDF 189 // Only expose this for Chromium builds where users may not have the PDF
183 // plugin. Do not give Google Chrome users the option to disable it here. 190 // plugin. Do not give Google Chrome users the option to disable it here.
184 // Also expose it for Chrome OS where print preview is still experimental. 191 // Also expose it for Chrome OS where print preview is still experimental.
185 { 192 {
186 "print-preview", // FLAGS:RECORD_UMA 193 "print-preview", // FLAGS:RECORD_UMA
187 IDS_FLAGS_PRINT_PREVIEW_NAME, 194 IDS_FLAGS_PRINT_PREVIEW_NAME,
188 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, 195 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION,
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 } 831 }
825 832
826 const Experiment* GetExperiments(size_t* count) { 833 const Experiment* GetExperiments(size_t* count) {
827 *count = num_experiments; 834 *count = num_experiments;
828 return experiments; 835 return experiments;
829 } 836 }
830 837
831 } // namespace testing 838 } // namespace testing
832 839
833 } // namespace about_flags 840 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/render_view_host_delegate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698