blob: 0789d4d5a3e50b93f5be51d2f959271192a2d2e9 [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/core/SkKeyContext.h"
#ifdef SK_GRAPHITE_ENABLED
#include "src/gpu/graphite/RecorderPriv.h"
#include "src/gpu/graphite/ResourceProvider.h"
SkKeyContext::SkKeyContext(skgpu::graphite::Recorder* recorder, const SkM44& dev2Local)
: fRecorder(recorder)
, fDev2Local(dev2Local) {
fDictionary = fRecorder->priv().shaderCodeDictionary();
}
#endif
#if SK_SUPPORT_GPU
#include "include/gpu/GrRecordingContext.h"
SkKeyContext::SkKeyContext(GrRecordingContext* rContext) : fRecordingContext(rContext) {
// TODO: fill this out for Ganesh
fDictionary = nullptr;
}
#endif