summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_performance_stats.h
blob: 50e752ad7db4c436c2a0fc059ae657e350c36cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_
#define CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_

#include "base/values.h"
#include "content/common/content_export.h"

class CONTENT_EXPORT GpuPerformanceStats {
 public:
  GpuPerformanceStats() : graphics(0.f), gaming(0.f), overall(0.f) {
  }

  static GpuPerformanceStats RetrieveGpuPerformanceStats();

  base::Value* ToValue() const;

  float graphics;
  float gaming;
  float overall;
};


#endif  // CONTENT_BROWSER_GPU_GPU_PERFORMANCE_STATS_H_