blob: 1067950ca3dd13394339f90bc544698b3b8e3e3f [file] [log] [blame]
Robert Phillips4217ea72019-01-30 13:08:28 -05001/*
2 * Copyright 2019 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "GrRecordingContext.h"
9
Robert Phillipsa41c6852019-02-07 10:44:10 -050010#include "GrCaps.h"
11#include "GrRecordingContextPriv.h"
12#include "GrSkSLFPFactoryCache.h"
13
Robert Phillipsc1541ae2019-02-04 12:05:37 -050014GrRecordingContext::GrRecordingContext(GrBackendApi backend,
15 const GrContextOptions& options,
Robert Phillipsa41c6852019-02-07 10:44:10 -050016 uint32_t contextID)
17 : INHERITED(backend, options, contextID) {
Robert Phillips4217ea72019-01-30 13:08:28 -050018}
19
20GrRecordingContext::~GrRecordingContext() { }
21
Robert Phillipsa41c6852019-02-07 10:44:10 -050022///////////////////////////////////////////////////////////////////////////////////////////////////
23sk_sp<const GrCaps> GrRecordingContextPriv::refCaps() const {
24 return fContext->refCaps();
25}
26
27sk_sp<GrSkSLFPFactoryCache> GrRecordingContextPriv::fpFactoryCache() {
28 return fContext->fpFactoryCache();
29}