blob: 16cbf2cd4eb0e4e14e927653fb05c48839b1c358 [file] [log] [blame]
Alistair Strachan71edaca2018-05-02 17:01:49 -07001/*
2 * Copyright (C) 2018 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 BUFFERINFOMINIGBM_H_
18#define BUFFERINFOMINIGBM_H_
Alistair Strachan71edaca2018-05-02 17:01:49 -070019
20#include <hardware/gralloc.h>
21
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030022#include "bufferinfo/BufferInfoGetter.h"
23
Alistair Strachan71edaca2018-05-02 17:01:49 -070024namespace android {
25
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030026class BufferInfoMinigbm : public LegacyBufferInfoGetter {
Alistair Strachan71edaca2018-05-02 17:01:49 -070027 public:
Roman Stratiienkob2e9fe22020-10-03 10:52:36 +030028 using LegacyBufferInfoGetter::LegacyBufferInfoGetter;
Roman Stratiienko1cbaaf92022-02-21 10:52:18 +020029 int ConvertBoInfo(buffer_handle_t handle, BufferInfo *bo) override;
Roman Stratiienko39d8f7e2021-11-30 17:06:44 +020030 int ValidateGralloc() override;
Alistair Strachan71edaca2018-05-02 17:01:49 -070031};
32
Sean Paulf72cccd2018-08-27 13:59:08 -040033} // namespace android
Alistair Strachan71edaca2018-05-02 17:01:49 -070034
35#endif