MockTestContext.h 521 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright 2017 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. #ifndef MockTestContext_DEFINED
  8. #define MockTestContext_DEFINED
  9. #include "tools/gpu/TestContext.h"
  10. namespace sk_gpu_test {
  11. /**
  12. * Creates mock context object for use with GrContexts created with GrBackendApi::kMock. It will
  13. * trivially succeed at everything.
  14. */
  15. TestContext* CreateMockTestContext(TestContext* shareContext = nullptr);
  16. } // namespace sk_gpu_test
  17. #endif