Robert Phillips | 4217ea7 | 2019-01-30 13:08:28 -0500 | [diff] [blame] | 1 | /* |
| 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 Phillips | a41c685 | 2019-02-07 10:44:10 -0500 | [diff] [blame^] | 10 | #include "GrCaps.h" |
| 11 | #include "GrRecordingContextPriv.h" |
| 12 | #include "GrSkSLFPFactoryCache.h" |
| 13 | |
Robert Phillips | c1541ae | 2019-02-04 12:05:37 -0500 | [diff] [blame] | 14 | GrRecordingContext::GrRecordingContext(GrBackendApi backend, |
| 15 | const GrContextOptions& options, |
Robert Phillips | a41c685 | 2019-02-07 10:44:10 -0500 | [diff] [blame^] | 16 | uint32_t contextID) |
| 17 | : INHERITED(backend, options, contextID) { |
Robert Phillips | 4217ea7 | 2019-01-30 13:08:28 -0500 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | GrRecordingContext::~GrRecordingContext() { } |
| 21 | |
Robert Phillips | a41c685 | 2019-02-07 10:44:10 -0500 | [diff] [blame^] | 22 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 23 | sk_sp<const GrCaps> GrRecordingContextPriv::refCaps() const { |
| 24 | return fContext->refCaps(); |
| 25 | } |
| 26 | |
| 27 | sk_sp<GrSkSLFPFactoryCache> GrRecordingContextPriv::fpFactoryCache() { |
| 28 | return fContext->fpFactoryCache(); |
| 29 | } |