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

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

Issue 2020243004: content: Rename num raster threads -> num worker threads. Base URL: https://chromium.googlesource.com/chromium/src.git@categorized_worker_pool_3
Patch Set: corrected cl format changes Created 4 years, 6 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
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 "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 switches::reader_mode_heuristics::kAdaBoost }, 278 switches::reader_mode_heuristics::kAdaBoost },
279 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_ON, 279 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_ON,
280 switches::kReaderModeHeuristics, 280 switches::kReaderModeHeuristics,
281 switches::reader_mode_heuristics::kAlwaysTrue }, 281 switches::reader_mode_heuristics::kAlwaysTrue },
282 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_OFF, 282 { IDS_FLAGS_READER_MODE_HEURISTICS_ALWAYS_OFF,
283 switches::kReaderModeHeuristics, 283 switches::kReaderModeHeuristics,
284 switches::reader_mode_heuristics::kNone }, 284 switches::reader_mode_heuristics::kNone },
285 }; 285 };
286 #endif 286 #endif
287 287
288 const FeatureEntry::Choice kNumRasterThreadsChoices[] = { 288 const FeatureEntry::Choice kNumCategorizedWorkerThreadsChoices[] = {
289 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 289 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
290 { IDS_FLAGS_NUM_RASTER_THREADS_ONE, switches::kNumRasterThreads, "1" }, 290 {IDS_FLAGS_NUM_CATEGORIZED_WORKER_THREADS_ONE,
291 { IDS_FLAGS_NUM_RASTER_THREADS_TWO, switches::kNumRasterThreads, "2" }, 291 switches::kNumCategorizedWorkerThreads, "1"},
292 { IDS_FLAGS_NUM_RASTER_THREADS_THREE, switches::kNumRasterThreads, "3" }, 292 {IDS_FLAGS_NUM_CATEGORIZED_WORKER_THREADS_TWO,
293 { IDS_FLAGS_NUM_RASTER_THREADS_FOUR, switches::kNumRasterThreads, "4" } 293 switches::kNumCategorizedWorkerThreads, "2"},
294 }; 294 {IDS_FLAGS_NUM_CATEGORIZED_WORKER_THREADS_THREE,
295 switches::kNumCategorizedWorkerThreads, "3"},
296 {IDS_FLAGS_NUM_CATEGORIZED_WORKER_THREADS_FOUR,
297 switches::kNumCategorizedWorkerThreads, "4"}};
295 298
296 const FeatureEntry::Choice kGpuRasterizationMSAASampleCountChoices[] = { 299 const FeatureEntry::Choice kGpuRasterizationMSAASampleCountChoices[] = {
297 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, 300 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT,
298 "", 301 "",
299 "" }, 302 "" },
300 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_ZERO, 303 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_ZERO,
301 switches::kGpuRasterizationMSAASampleCount, "0" }, 304 switches::kGpuRasterizationMSAASampleCount, "0" },
302 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_TWO, 305 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_TWO,
303 switches::kGpuRasterizationMSAASampleCount, "2" }, 306 switches::kGpuRasterizationMSAASampleCount, "2" },
304 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_FOUR, 307 { IDS_FLAGS_GPU_RASTERIZATION_MSAA_SAMPLE_COUNT_FOUR,
(...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2101 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2099 2102
2100 const FeatureEntry* GetFeatureEntries(size_t* count) { 2103 const FeatureEntry* GetFeatureEntries(size_t* count) {
2101 *count = arraysize(kFeatureEntries); 2104 *count = arraysize(kFeatureEntries);
2102 return kFeatureEntries; 2105 return kFeatureEntries;
2103 } 2106 }
2104 2107
2105 } // namespace testing 2108 } // namespace testing
2106 2109
2107 } // namespace about_flags 2110 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698