blob: d3b1fb2c0f6049f700aa4601ce89edfee4d97a47 [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.
Lingfeng Yanga126a8a2018-11-01 18:21:40 -070014#include "VkEncoder.h"
Lingfeng Yang6a283672018-11-01 13:37:56 -070015
Lingfeng Yanga126a8a2018-11-01 18:21:40 -070016#include "IOStream.h"
17#include "VulkanStream.h"
18
Lingfeng Yange71c6422018-11-01 19:29:49 -070019#include "goldfish_vk_marshaling_guest.h"
20
Lingfeng Yanga126a8a2018-11-01 18:21:40 -070021class VkEncoder::Impl {
22public:
23 Impl(IOStream* stream) : m_stream(stream) {
24
25 }
Lingfeng Yange71c6422018-11-01 19:29:49 -070026
27 // do the api calls here
28
Lingfeng Yanga126a8a2018-11-01 18:21:40 -070029private:
30 goldfish_vk::VulkanStream m_stream;
31};
32
33VkEncoder::VkEncoder(IOStream *stream) :
34 mImpl(new VkEncoder::Impl(stream)) { }