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 5 #ifndef CONTENT_TEST_GPU_BROWSERTEST_HELPERS_H_ 6 #define CONTENT_TEST_GPU_BROWSERTEST_HELPERS_H_ 7 8 #include "base/memory/scoped_refptr.h" 9 10 namespace gpu { 11 class GpuChannelHost; 12 } 13 14 namespace viz { 15 class ContextProviderCommandBuffer; 16 } 17 18 namespace content { 19 20 // Synchronously establishes a connection to the GPU process and returns the 21 // GpuChannelHost. 22 scoped_refptr<gpu::GpuChannelHost> 23 GpuBrowsertestEstablishGpuChannelSyncRunLoop(); 24 25 // Creates a new ContextProviderCommandBuffer using the provided 26 // GpuChannelHost. 27 scoped_refptr<viz::ContextProviderCommandBuffer> GpuBrowsertestCreateContext( 28 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); 29 30 } // namespace content 31 32 #endif // CONTENT_TEST_GPU_BROWSERTEST_HELPERS_H_ 33