blob: f3b7d3a0672b4e4bc153ac41a2ccc782a1501268 [file] [log] [blame]
/*
* Copyright 2022 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/KeyContext.h"
#include "src/gpu/graphite/RecorderPriv.h"
//#include "src/gpu/graphite/ResourceProvider.h"
namespace skgpu::graphite {
KeyContext::KeyContext(skgpu::graphite::Recorder* recorder,
const SkM44& local2Dev)
: fRecorder(recorder)
, fLocal2Dev(local2Dev)
, fLocalMatrix(nullptr) {
fDictionary = fRecorder->priv().shaderCodeDictionary();
}
KeyContext::KeyContext(const KeyContext& other)
: fRecorder(other.fRecorder)
, fLocal2Dev(other.fLocal2Dev)
, fLocalMatrix(other.fLocalMatrix)
, fDictionary(other.fDictionary) {
}
} // namespace skgpu::graphite