summaryrefslogtreecommitdiffstats
path: root/ui/gl/gpu_switching_observer.h
blob: ed85d8a0d8e6ef4daf495481aa1d50bb6322c200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2014 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 UI_GL_GPU_SWITCHING_OBSERVER_H_
#define UI_GL_GPU_SWITCHING_OBSERVER_H_

#include "ui/gl/gl_export.h"

namespace ui {

class GL_EXPORT GpuSwitchingObserver {
 public:
  // Called for any observer when the system switches to a different GPU.
  virtual void OnGpuSwitched() {};
};

}  // namespace ui

#endif  // UI_GL_GPU_SWITCHING_OBSERVER_H_