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

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

Issue 385743002: Use a C++11 feature in a single file, to discover if this works everywhere. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/gpu_data_manager_impl_private.h" 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 UMA_HISTOGRAM_ENUMERATION("GPU.BlacklistTestResultsPerEntry", 131 UMA_HISTOGRAM_ENUMERATION("GPU.BlacklistTestResultsPerEntry",
132 flag_entries[i], max_entry_id + 1); 132 flag_entries[i], max_entry_id + 1);
133 } 133 }
134 } 134 }
135 135
136 // This counts how many users are affected by a disabled entry - this allows 136 // This counts how many users are affected by a disabled entry - this allows
137 // us to understand the impact of an entry before enable it. 137 // us to understand the impact of an entry before enable it.
138 std::vector<uint32> flag_disabled_entries; 138 std::vector<uint32> flag_disabled_entries;
139 disabled = true; 139 disabled = true;
140 blacklist->GetDecisionEntries(&flag_disabled_entries, disabled); 140 blacklist->GetDecisionEntries(&flag_disabled_entries, disabled);
141 for (size_t i = 0; i < flag_disabled_entries.size(); ++i) { 141 for (uint32 disabled_entry : flag_disabled_entries) {
142 UMA_HISTOGRAM_ENUMERATION("GPU.BlacklistTestResultsPerDisabledEntry", 142 UMA_HISTOGRAM_ENUMERATION("GPU.BlacklistTestResultsPerDisabledEntry",
143 flag_disabled_entries[i], max_entry_id + 1); 143 disabled_entry, max_entry_id + 1);
144 } 144 }
145 145
146 const gpu::GpuFeatureType kGpuFeatures[] = { 146 const gpu::GpuFeatureType kGpuFeatures[] = {
147 gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS, 147 gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS,
148 gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING, gpu::GPU_FEATURE_TYPE_WEBGL}; 148 gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING, gpu::GPU_FEATURE_TYPE_WEBGL};
149 const std::string kGpuBlacklistFeatureHistogramNames[] = { 149 const std::string kGpuBlacklistFeatureHistogramNames[] = {
150 "GPU.BlacklistFeatureTestResults.Accelerated2dCanvas", 150 "GPU.BlacklistFeatureTestResults.Accelerated2dCanvas",
151 "GPU.BlacklistFeatureTestResults.GpuCompositing", 151 "GPU.BlacklistFeatureTestResults.GpuCompositing",
152 "GPU.BlacklistFeatureTestResults.Webgl", }; 152 "GPU.BlacklistFeatureTestResults.Webgl", };
153 const bool kGpuFeatureUserFlags[] = { 153 const bool kGpuFeatureUserFlags[] = {
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 1068
1069 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { 1069 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() {
1070 gpu_process_accessible_ = false; 1070 gpu_process_accessible_ = false;
1071 gpu_info_.finalized = true; 1071 gpu_info_.finalized = true;
1072 complete_gpu_info_already_requested_ = true; 1072 complete_gpu_info_already_requested_ = true;
1073 // Some observers might be waiting. 1073 // Some observers might be waiting.
1074 NotifyGpuInfoUpdate(); 1074 NotifyGpuInfoUpdate();
1075 } 1075 }
1076 1076
1077 } // namespace content 1077 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698