blob: 50d5f7d10e3dbc798242304685d1c8f70a925ad9 [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/v2/SurfaceDrawContext_v2.h"
namespace skgpu::v2 {
SurfaceDrawContext::SurfaceDrawContext(GrRecordingContext* rContext,
GrSurfaceProxyView readView,
GrSurfaceProxyView writeView,
GrColorType colorType,
sk_sp<SkColorSpace> colorSpace,
const SkSurfaceProps& surfaceProps,
bool flushTimeOpsTask)
: SurfaceFillContext(rContext,
{colorType, kPremul_SkAlphaType, std::move(colorSpace)},
flushTimeOpsTask) {
} // namespace skgpu::v2