test_gpu_thread_holder.cc 426 B

12345678910111213141516
  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. #include "gpu/ipc/test_gpu_thread_holder.h"
  5. #include "base/no_destructor.h"
  6. namespace gpu {
  7. InProcessGpuThreadHolder* GetTestGpuThreadHolder() {
  8. static base::NoDestructor<InProcessGpuThreadHolder> instance;
  9. return instance.get();
  10. }
  11. } // namespace gpu