summaryrefslogtreecommitdiffstats
path: root/components/mus/display_manager_factory.h
blob: 58b0ee084ece9cb24cc0b873a361e536b7c0296d (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
27
28
29
30
31
32
// Copyright 2015 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 COMPONENTS_MUS_DISPLAY_MANAGER_FACTORY_H_
#define COMPONENTS_MUS_DISPLAY_MANAGER_FACTORY_H_

#include "components/mus/gles2/gpu_state.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/callback.h"

namespace mojo {
class ApplicationImpl;
}  // namespace mojo

namespace view_manager {

class DisplayManager;

// Abstract factory for DisplayManagers. Used by tests to construct test
// DisplayManagers.
class DisplayManagerFactory {
 public:
  virtual DisplayManager* CreateDisplayManager(
      bool is_headless,
      mojo::ApplicationImpl* app_impl,
      const scoped_refptr<gles2::GpuState>& gpu_state,
      const scoped_refptr<surfaces::SurfacesState>& surfaces_state) = 0;
};

}  // namespace view_manager

#endif  // COMPONENTS_MUS_DISPLAY_MANAGER_FACTORY_H_