summaryrefslogtreecommitdiff
path: root/chromium/components/metal_util/device.h
blob: 0c9f6e2568d84f10ff5726cb9ab2cc98ab29b97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2019 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_METAL_UTIL_DEVICE_H_
#define COMPONENTS_METAL_UTIL_DEVICE_H_

#include "components/metal_util/metal_util_export.h"
#include "components/metal_util/types.h"

namespace metal {

// Return a low-power device, if one exists, otherwise return the system default
// device.
MTLDevicePtr METAL_UTIL_EXPORT CreateDefaultDevice();

}  // namespace metal

#endif  // COMPONENTS_METAL_UTIL_DEVICE_H_