blob: aae7fadea062937facabcae4dc15cc47599028f3 [file] [log] [blame]
Brian Salomoncfe910d2017-07-06 16:40:18 -04001
2/*
3 * Copyright 2017 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8#ifndef MockTestContext_DEFINED
9#define MockTestContext_DEFINED
10
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "tools/gpu/TestContext.h"
Brian Salomoncfe910d2017-07-06 16:40:18 -040012
13namespace sk_gpu_test {
14
15/**
Greg Danielbdf12ad2018-10-12 09:31:11 -040016 * Creates mock context object for use with GrContexts created with GrBackendApi::kMock. It will
Brian Salomoncfe910d2017-07-06 16:40:18 -040017 * trivially succeed at everything.
18 */
19TestContext* CreateMockTestContext(TestContext* shareContext = nullptr);
20
21} // namespace sk_gpu_test
22#endif