blob: c347c2cc5334b506b03d56ee6dc23165a77befa5 [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 "experimental/graphite/src/ContextPriv.h"
#include "experimental/graphite/src/Gpu.h"
namespace skgpu {
Gpu* ContextPriv::gpu() {
return fContext->fGpu.get();
}
const Gpu* ContextPriv::gpu() const {
return fContext->fGpu.get();
}
ResourceProvider* ContextPriv::resourceProvider() {
return this->gpu()->resourceProvider();
}
} // namespace skgpu