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

Side by Side Diff: components/metrics/gpu/gpu_metrics_provider.h

Issue 523273003: Moves GPUMetricsProvider to //components/metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « components/metrics/gpu/DEPS ('k') | components/metrics/gpu/gpu_metrics_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ 5 #ifndef COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_
6 #define CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ 6 #define COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/metrics/metrics_provider.h" 9 #include "components/metrics/metrics_provider.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
11 11
12 namespace metrics {
13
12 // GPUMetricsProvider provides GPU-related metrics. 14 // GPUMetricsProvider provides GPU-related metrics.
13 class GPUMetricsProvider : public metrics::MetricsProvider { 15 class GPUMetricsProvider : public MetricsProvider {
14 public: 16 public:
15 GPUMetricsProvider(); 17 GPUMetricsProvider();
16 virtual ~GPUMetricsProvider(); 18 virtual ~GPUMetricsProvider();
17 19
18 // metrics::MetricsProvider: 20 // MetricsProvider:
19 virtual void ProvideSystemProfileMetrics( 21 virtual void ProvideSystemProfileMetrics(
20 metrics::SystemProfileProto* system_profile_proto) OVERRIDE; 22 SystemProfileProto* system_profile_proto) OVERRIDE;
21 23
22 protected: 24 protected:
23 // Exposed for the sake of mocking in test code. 25 // Exposed for the sake of mocking in test code.
24 26
25 // Returns the screen size for the primary monitor. 27 // Returns the screen size for the primary monitor.
26 virtual gfx::Size GetScreenSize() const; 28 virtual gfx::Size GetScreenSize() const;
27 29
28 // Returns the device scale factor for the primary monitor. 30 // Returns the device scale factor for the primary monitor.
29 virtual float GetScreenDeviceScaleFactor() const; 31 virtual float GetScreenDeviceScaleFactor() const;
30 32
31 // Returns the number of monitors the user is using. 33 // Returns the number of monitors the user is using.
32 virtual int GetScreenCount() const; 34 virtual int GetScreenCount() const;
33 35
34 private: 36 private:
35 DISALLOW_COPY_AND_ASSIGN(GPUMetricsProvider); 37 DISALLOW_COPY_AND_ASSIGN(GPUMetricsProvider);
36 }; 38 };
37 39
38 #endif // CHROME_BROWSER_METRICS_GPU_METRICS_PROVIDER_H_ 40 } // namespace metrics
41
42 #endif // COMPONENTS_METRICS_GPU_GPU_METRICS_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/metrics/gpu/DEPS ('k') | components/metrics/gpu/gpu_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698