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

Side by Side Diff: content/browser/gpu/compositor_util.cc

Issue 1875913002: Cleanup: Convert const char* kFoo to const char kFoo[]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "content/browser/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 namespace content { 23 namespace content {
24 24
25 namespace { 25 namespace {
26 26
27 static bool IsGpuRasterizationBlacklisted() { 27 static bool IsGpuRasterizationBlacklisted() {
28 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); 28 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance();
29 return manager->IsFeatureBlacklisted( 29 return manager->IsFeatureBlacklisted(
30 gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION); 30 gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION);
31 } 31 }
32 32
33 const char* kGpuCompositingFeatureName = "gpu_compositing"; 33 const char kGpuCompositingFeatureName[] = "gpu_compositing";
34 const char* kWebGLFeatureName = "webgl"; 34 const char kWebGLFeatureName[] = "webgl";
35 const char* kRasterizationFeatureName = "rasterization"; 35 const char kRasterizationFeatureName[] = "rasterization";
36 const char* kMultipleRasterThreadsFeatureName = "multiple_raster_threads"; 36 const char kMultipleRasterThreadsFeatureName[] = "multiple_raster_threads";
37 const char* kNativeGpuMemoryBuffersFeatureName = "native_gpu_memory_buffers"; 37 const char kNativeGpuMemoryBuffersFeatureName[] = "native_gpu_memory_buffers";
38 38
39 const int kMinRasterThreads = 1; 39 const int kMinRasterThreads = 1;
40 const int kMaxRasterThreads = 4; 40 const int kMaxRasterThreads = 4;
41 41
42 const int kMinMSAASampleCount = 0; 42 const int kMinMSAASampleCount = 0;
43 43
44 struct GpuFeatureInfo { 44 struct GpuFeatureInfo {
45 std::string name; 45 std::string name;
46 bool blocked; 46 bool blocked;
47 bool disabled; 47 bool disabled;
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 } 394 }
395 } 395 }
396 return problem_list; 396 return problem_list;
397 } 397 }
398 398
399 std::vector<std::string> GetDriverBugWorkarounds() { 399 std::vector<std::string> GetDriverBugWorkarounds() {
400 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 400 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
401 } 401 }
402 402
403 } // namespace content 403 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_net_log_parameters.cc ('k') | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698