OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ | |
6 #define CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "components/metrics/metrics_data_provider.h" | |
10 #include "ui/gfx/size.h" | |
11 | |
12 // GPUMetricsProvider provides GPU-related metrics. | |
13 class GPUMetricsProvider : public metrics::MetricsDataProvider { | |
14 public: | |
15 GPUMetricsProvider(); | |
16 virtual ~GPUMetricsProvider(); | |
17 | |
18 // metrics::MetricsDataProvider: | |
19 virtual void ProvideSystemProfileMetrics( | |
20 metrics::SystemProfileProto* system_profile_proto) OVERRIDE; | |
21 | |
22 protected: | |
23 // Exposed for the sake of mocking in test code. | |
24 | |
25 // Returns the screen size for the primary monitor. | |
26 virtual gfx::Size GetScreenSize() const; | |
27 | |
28 // Returns the device scale factor for the primary monitor. | |
29 virtual float GetScreenDeviceScaleFactor() const; | |
30 | |
31 // Returns the number of monitors the user is using. | |
32 virtual int GetScreenCount() const; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(GPUMetricsProvider); | |
Alexei Svitkine (slow)
2014/05/20 14:16:37
This should be in the private section.
blundell
2014/05/20 14:20:49
Done.
| |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ | |
OLD | NEW |