blob: 05b9b81c337f120a1fa9a6d462df18d0770f2725 [file] [log] [blame] [edit]
/*
* 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) : fRecorder(recorder) {
fDictionary = fRecorder->priv().resourceProvider()->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