blob: 635e3b53e3bd30738e1dc48b8fcc03555fe51720 [file] [log] [blame]
Mattijs Korpershoek5284c7e2020-09-21 11:03:35 +00001/*
2 * Copyright (C) 2020 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
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030017#ifndef BUFFERINFOIMAGINATION_H
18#define BUFFERINFOIMAGINATION_H
Mattijs Korpershoek5284c7e2020-09-21 11:03:35 +000019
20#include <hardware/gralloc.h>
Mattijs Korpershoek5284c7e2020-09-21 11:03:35 +000021
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030022#include "bufferinfo/BufferInfoGetter.h"
Mattijs Korpershoek5284c7e2020-09-21 11:03:35 +000023
24namespace android {
25
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030026class BufferInfoImagination : public LegacyBufferInfoGetter {
Mattijs Korpershoek5284c7e2020-09-21 11:03:35 +000027 public:
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030028 using LegacyBufferInfoGetter::LegacyBufferInfoGetter;
Mattijs Korpershoek5284c7e2020-09-21 11:03:35 +000029
Roman Stratiienkoe9fbd8d2022-02-21 13:03:29 +020030 auto GetBoInfo(buffer_handle_t handle) -> std::optional<BufferInfo> override;
Mattijs Korpershoek5284c7e2020-09-21 11:03:35 +000031};
32} // namespace android
33
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030034#endif // PLATFORMIMAGINATION_H