test_gpu_thread_holder.h 778 B

12345678910111213141516171819202122
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef GPU_IPC_TEST_GPU_THREAD_HOLDER_H_
  5. #define GPU_IPC_TEST_GPU_THREAD_HOLDER_H_
  6. #include "base/component_export.h"
  7. #include "gpu/ipc/in_process_gpu_thread_holder.h"
  8. namespace gpu {
  9. // Returns a global InProcessGpuThreadHolder instance that can be used to get a
  10. // task executor for use with InProcessCommandBuffer in tests. Any changes to
  11. // GpuPreferences or GpuFeatureInfo should be done during test suite
  12. // initialization before *any* tests run.
  13. COMPONENT_EXPORT(GPU_THREAD_HOLDER)
  14. InProcessGpuThreadHolder* GetTestGpuThreadHolder();
  15. } // namespace gpu
  16. #endif // GPU_IPC_TEST_GPU_THREAD_HOLDER_H_