xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/CLDeviceImpl.cpp (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker //
2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2021 The ANGLE Project Authors. All rights reserved.
3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file.
5*8975f5c5SAndroid Build Coastguard Worker //
6*8975f5c5SAndroid Build Coastguard Worker // CLDeviceImpl.cpp: Implements the class methods for CLDeviceImpl.
7*8975f5c5SAndroid Build Coastguard Worker 
8*8975f5c5SAndroid Build Coastguard Worker #include "libANGLE/renderer/CLDeviceImpl.h"
9*8975f5c5SAndroid Build Coastguard Worker 
10*8975f5c5SAndroid Build Coastguard Worker #include "libANGLE/Debug.h"
11*8975f5c5SAndroid Build Coastguard Worker 
12*8975f5c5SAndroid Build Coastguard Worker namespace rx
13*8975f5c5SAndroid Build Coastguard Worker {
14*8975f5c5SAndroid Build Coastguard Worker 
15*8975f5c5SAndroid Build Coastguard Worker CLDeviceImpl::Info::Info() = default;
16*8975f5c5SAndroid Build Coastguard Worker 
Info(cl::DeviceType deviceType)17*8975f5c5SAndroid Build Coastguard Worker CLDeviceImpl::Info::Info(cl::DeviceType deviceType) : type(deviceType) {}
18*8975f5c5SAndroid Build Coastguard Worker 
19*8975f5c5SAndroid Build Coastguard Worker CLDeviceImpl::Info::~Info() = default;
20*8975f5c5SAndroid Build Coastguard Worker 
21*8975f5c5SAndroid Build Coastguard Worker CLDeviceImpl::Info::Info(Info &&) = default;
22*8975f5c5SAndroid Build Coastguard Worker 
23*8975f5c5SAndroid Build Coastguard Worker CLDeviceImpl::Info &CLDeviceImpl::Info::operator=(Info &&) = default;
24*8975f5c5SAndroid Build Coastguard Worker 
CLDeviceImpl(const cl::Device & device)25*8975f5c5SAndroid Build Coastguard Worker CLDeviceImpl::CLDeviceImpl(const cl::Device &device) : mDevice(device) {}
26*8975f5c5SAndroid Build Coastguard Worker 
27*8975f5c5SAndroid Build Coastguard Worker CLDeviceImpl::~CLDeviceImpl() = default;
28*8975f5c5SAndroid Build Coastguard Worker 
29*8975f5c5SAndroid Build Coastguard Worker }  // namespace rx
30