2017-07-06 20:40:18 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "tools/gpu/TestContext.h"
|
2017-07-06 20:40:18 +00:00
|
|
|
|
|
|
|
namespace sk_gpu_test {
|
|
|
|
|
|
|
|
/**
|
2018-10-12 13:31:11 +00:00
|
|
|
* Creates mock context object for use with GrContexts created with GrBackendApi::kMock. It will
|
2017-07-06 20:40:18 +00:00
|
|
|
* trivially succeed at everything.
|
|
|
|
*/
|
|
|
|
TestContext* CreateMockTestContext(TestContext* shareContext = nullptr);
|
|
|
|
|
|
|
|
} // namespace sk_gpu_test
|
|
|
|
#endif
|