// Copyright (C) 2018 The Android Open Source Project // Copyright (C) 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Autogenerated module VkDecoder // // (header) generated by scripts/genvk.py -registry // ../../../../../hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/xml/vk.xml // -registryGfxstream xml/vk_gfxstream.xml cereal -o // ../../../../../hardware/google/gfxstream/host/vulkan/cereal // // Please do not modify directly; // re-run mesa3d/src/gfxstream/codegen/generate-gfxstream-vulkan.sh, // or directly from Python by defining: // VULKAN_REGISTRY_XML_DIR : Directory containing vk.xml // VULKAN_REGISTRY_SCRIPTS_DIR : Directory containing genvk.py // CEREAL_OUTPUT_DIR: Where to put the generated sources. // // python3 $VULKAN_REGISTRY_SCRIPTS_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o // $CEREAL_OUTPUT_DIR // #pragma once #include #include #include "ProcessResources.h" #include "VkDecoderContext.h" #include "vk_android_native_buffer_gfxstream.h" #include "vulkan_gfxstream.h" namespace android { namespace base { class BumpPool; } // namespace base } // namespace android namespace gfxstream { class IOStream; } // namespace gfxstream namespace gfxstream { namespace vk { class VkDecoder { public: VkDecoder(); ~VkDecoder(); void setForSnapshotLoad(bool forSnapshotLoad); size_t decode(void* buf, size_t bufsize, IOStream* stream, const ProcessResources* processResources, const VkDecoderContext&); private: class Impl; std::unique_ptr mImpl; }; } // namespace vk } // namespace gfxstream