1 /*
2 * Copyright 2023 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 <cutils/log.h>
18
19 #include "FuchsiaVirtGpu.h"
20
FuchsiaVirtGpuResource(int64_t deviceHandle,uint32_t blobHandle,uint32_t resourceHandle,uint64_t size)21 FuchsiaVirtGpuResource::FuchsiaVirtGpuResource(int64_t deviceHandle, uint32_t blobHandle,
22 uint32_t resourceHandle, uint64_t size) {}
23
~FuchsiaVirtGpuResource(void)24 FuchsiaVirtGpuResource::~FuchsiaVirtGpuResource(void) {}
25
getBlobHandle() const26 uint32_t FuchsiaVirtGpuResource::getBlobHandle() const {
27 ALOGE("%s: unimplemented", __func__);
28 return 0;
29 }
30
getResourceHandle() const31 uint32_t FuchsiaVirtGpuResource::getResourceHandle() const {
32 ALOGE("%s: unimplemented", __func__);
33 return 0;
34 }
35
createMapping(void)36 VirtGpuResourceMappingPtr FuchsiaVirtGpuResource::createMapping(void) {
37 ALOGE("%s: unimplemented", __func__);
38 return nullptr;
39 }
40
wait()41 int FuchsiaVirtGpuResource::wait() { return -1; }
42
exportBlob(struct VirtGpuExternalHandle & handle)43 int FuchsiaVirtGpuResource::exportBlob(struct VirtGpuExternalHandle& handle) {
44 ALOGE("%s: unimplemented", __func__);
45 return 0;
46 }
47
transferFromHost(uint32_t offset,uint32_t size)48 int FuchsiaVirtGpuResource::transferFromHost(uint32_t offset, uint32_t size) {
49 ALOGE("%s: unimplemented", __func__);
50 return 0;
51 }
52
transferToHost(uint32_t offset,uint32_t size)53 int FuchsiaVirtGpuResource::transferToHost(uint32_t offset, uint32_t size) {
54 ALOGE("%s: unimplemented", __func__);
55 return 0;
56 }
57