aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/mock/MockTestContext.h
blob: 4aac2483e65a1e4897d0a7628377df3096f1e022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef MockTestContext_DEFINED
#define MockTestContext_DEFINED

#include "TestContext.h"

namespace sk_gpu_test {

/**
 * Creates mock context object for use with GrContexts created with kMock_GrBackend. It will
 * trivially succeed at everything.
 */
TestContext* CreateMockTestContext(TestContext* shareContext = nullptr);

}  // namespace sk_gpu_test
#endif