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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_metrics.cc

Issue 2303653005: Migrate content/ files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/renderer/pepper/pepper_plugin_instance_metrics.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_metrics.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "ppapi/shared_impl/ppapi_preferences.h" 12 #include "ppapi/shared_impl/ppapi_preferences.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include "base/win/windows_version.h" 15 #include "base/win/windows_version.h"
16 #endif 16 #endif
17 17
18 #define UMA_HISTOGRAM_ASPECT_RATIO(name, width, height) \ 18 #define UMA_HISTOGRAM_ASPECT_RATIO(name, width, height) \
19 UMA_HISTOGRAM_SPARSE_SLOWLY( \ 19 UMA_HISTOGRAM_SPARSE_SLOWLY( \
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // 4 : No 3D content and GPU is blacklisted on XP 102 // 4 : No 3D content and GPU is blacklisted on XP
103 // 5 : No 3D content and GPU is not blacklisted on XP 103 // 5 : No 3D content and GPU is not blacklisted on XP
104 // 6 : 3D content but GPU is blacklisted on XP 104 // 6 : 3D content but GPU is blacklisted on XP
105 // 7 : 3D content and GPU is not blacklisted on XP 105 // 7 : 3D content and GPU is not blacklisted on XP
106 UMA_HISTOGRAM_ENUMERATION( 106 UMA_HISTOGRAM_ENUMERATION(
107 "Flash.UsesGPU", is_xp * 4 + needs_gpu * 2 + prefs.is_webgl_supported, 8); 107 "Flash.UsesGPU", is_xp * 4 + needs_gpu * 2 + prefs.is_webgl_supported, 8);
108 #endif 108 #endif
109 } 109 }
110 110
111 } // namespace content 111 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/pepper/plugin_instance_throttler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698