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.
5 #ifndef COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_
6 #define COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_
8 #include "base/basictypes.h"
9 #include "components/metrics/metrics_provider.h"
10 #include "ui/gfx/size.h"
14 // GPUMetricsProvider provides GPU-related metrics.
15 class GPUMetricsProvider
: public MetricsProvider
{
18 ~GPUMetricsProvider() override
;
21 void ProvideSystemProfileMetrics(
22 SystemProfileProto
* system_profile_proto
) override
;
25 // Exposed for the sake of mocking in test code.
27 // Returns the screen size for the primary monitor.
28 virtual gfx::Size
GetScreenSize() const;
30 // Returns the device scale factor for the primary monitor.
31 virtual float GetScreenDeviceScaleFactor() const;
33 // Returns the number of monitors the user is using.
34 virtual int GetScreenCount() const;
37 DISALLOW_COPY_AND_ASSIGN(GPUMetricsProvider
);
40 } // namespace metrics
42 #endif // COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_