blob: 2278082e2fcf5b9915238ecb20b959318472eeed [file] [log] [blame]
Lingfeng Yang6a283672018-11-01 13:37:56 -07001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Protect from non-C++11 builds
16#ifdef GOLDFISH_VULKAN
17#pragma once
18
Lingfeng Yanga126a8a2018-11-01 18:21:40 -070019#include <memory>
20
21class IOStream;
Lingfeng Yang6a283672018-11-01 13:37:56 -070022
23class VkEncoder {
24public:
Lingfeng Yanga126a8a2018-11-01 18:21:40 -070025 VkEncoder(IOStream* stream);
26 ~VkEncoder();
27private:
28 class Impl;
29 std::unique_ptr<Impl> mImpl;
Lingfeng Yang6a283672018-11-01 13:37:56 -070030};
31
32#else
33
34#ifndef VK_ENCODER_H
35#define VK_ENCODER_H
36
37class IOStream;
38
39// Placeholder version to make non-C++11 happy
40class VkEncoder {
41public:
42 VkEncoder(IOStream*) { }
43 ~VkEncoder() { }
44};
45
46#endif // VK_ENCODER_H
47
48
49#endif