1 /* 2 * Copyright 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #include "VirtGpu.h" 18 getInstance(enum VirtGpuCapset capset)19VirtGpuDevice& VirtGpuDevice::getInstance(enum VirtGpuCapset capset) { 20 static VirtGpuDevice mInstance(capset); 21 return mInstance; 22 } 23 VirtGpuDevice(enum VirtGpuCapset capset)24VirtGpuDevice::VirtGpuDevice(enum VirtGpuCapset capset) { 25 // Unimplemented stub 26 } 27 getCaps(void)28struct VirtGpuCaps VirtGpuDevice::getCaps(void) { return mCaps; } 29 getDeviceHandle(void)30int64_t VirtGpuDevice::getDeviceHandle(void) { 31 return mDeviceHandle; 32 } 33 createPipeBlob(uint32_t size)34VirtGpuBlobPtr VirtGpuDevice::createPipeBlob(uint32_t size) { 35 return nullptr; 36 } 37 createBlob(const struct VirtGpuCreateBlob & blobCreate)38VirtGpuBlobPtr VirtGpuDevice::createBlob(const struct VirtGpuCreateBlob& blobCreate) { 39 return nullptr; 40 } 41 importBlob(const struct VirtGpuExternalHandle & handle)42VirtGpuBlobPtr VirtGpuDevice::importBlob(const struct VirtGpuExternalHandle& handle) { 43 return nullptr; 44 } 45 execBuffer(struct VirtGpuExecBuffer & execbuffer,VirtGpuBlobPtr blob)46int VirtGpuDevice::execBuffer(struct VirtGpuExecBuffer& execbuffer, VirtGpuBlobPtr blob) { 47 return -1; 48 } 49 ~VirtGpuDevice()50VirtGpuDevice::~VirtGpuDevice() { 51 // Unimplemented stub 52 } 53