| Lingfeng Yang | 6a28367 | 2018-11-01 13:37:56 -0700 | [diff] [blame] | 1 | // 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 Yang | a126a8a | 2018-11-01 18:21:40 -0700 | [diff] [blame^] | 19 | #include <memory> |
| 20 | |
| 21 | class IOStream; |
| Lingfeng Yang | 6a28367 | 2018-11-01 13:37:56 -0700 | [diff] [blame] | 22 | |
| 23 | class VkEncoder { |
| 24 | public: |
| Lingfeng Yang | a126a8a | 2018-11-01 18:21:40 -0700 | [diff] [blame^] | 25 | VkEncoder(IOStream* stream); |
| 26 | ~VkEncoder(); |
| 27 | private: |
| 28 | class Impl; |
| 29 | std::unique_ptr<Impl> mImpl; |
| Lingfeng Yang | 6a28367 | 2018-11-01 13:37:56 -0700 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | #else |
| 33 | |
| 34 | #ifndef VK_ENCODER_H |
| 35 | #define VK_ENCODER_H |
| 36 | |
| 37 | class IOStream; |
| 38 | |
| 39 | // Placeholder version to make non-C++11 happy |
| 40 | class VkEncoder { |
| 41 | public: |
| 42 | VkEncoder(IOStream*) { } |
| 43 | ~VkEncoder() { } |
| 44 | }; |
| 45 | |
| 46 | #endif // VK_ENCODER_H |
| 47 | |
| 48 | |
| 49 | #endif |