You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
521 B
23 lines
521 B
|
|
/*
|
|
* 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 "tools/gpu/TestContext.h"
|
|
|
|
namespace sk_gpu_test {
|
|
|
|
/**
|
|
* Creates mock context object for use with GrContexts created with GrBackendApi::kMock. It will
|
|
* trivially succeed at everything.
|
|
*/
|
|
TestContext* CreateMockTestContext(TestContext* shareContext = nullptr);
|
|
|
|
} // namespace sk_gpu_test
|
|
#endif
|