blob: 493efcde44e6137618f81a2f4cefb38574ab2cb4 [file] [log] [blame]
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/graphite/SharedContext.h"
#include "include/gpu/graphite/BackendTexture.h"
#include "include/gpu/graphite/TextureInfo.h"
#include "src/gpu/graphite/Caps.h"
#include "src/gpu/graphite/CommandBuffer.h"
#include "src/gpu/graphite/GpuWorkSubmission.h"
#include "src/gpu/graphite/ResourceProvider.h"
namespace skgpu::graphite {
SharedContext::SharedContext(std::unique_ptr<const Caps> caps, BackendApi backend)
: fCaps(std::move(caps))
, fBackend(backend)
, fGlobalCache()
, fShaderDictionary() {}
SharedContext::~SharedContext() {
// TODO: add disconnect?
// TODO: destroyResources instead?
}
} // namespace skgpu::graphite