#include "components/viz/test/test_in_process_context_provider.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/task/single_thread_task_runner.h"
#include "base/types/optional_util.h"
#include "components/viz/common/gpu/context_cache_controller.h"
#include "components/viz/common/resources/shared_image_format_utils.h"
#include "components/viz/service/gl/gpu_service_impl.h"
#include "components/viz/test/test_gpu_service_holder.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/shared_memory_limits.h"
#include "gpu/command_buffer/common/context_creation_attribs.h"
#include "gpu/config/skia_limits.h"
#include "gpu/ipc/gl_in_process_context.h"
#include "gpu/ipc/raster_in_process_context.h"
#include "gpu/skia_bindings/grcontext_for_gles2_interface.h"
#include "third_party/skia/include/gpu/GrDirectContext.h"
namespace viz {
TestInProcessContextProvider::TestInProcessContextProvider(
TestContextType type,
bool support_locking,
gpu::raster::GrShaderCache* gr_shader_cache,
gpu::GpuProcessShmCount* use_shader_cache_shm_count)
: … { … }
TestInProcessContextProvider::~TestInProcessContextProvider() { … }
void TestInProcessContextProvider::AddRef() const { … }
void TestInProcessContextProvider::Release() const { … }
gpu::ContextResult TestInProcessContextProvider::BindToCurrentSequence() { … }
gpu::gles2::GLES2Interface* TestInProcessContextProvider::ContextGL() { … }
gpu::raster::RasterInterface* TestInProcessContextProvider::RasterInterface() { … }
gpu::ContextSupport* TestInProcessContextProvider::ContextSupport() { … }
class GrDirectContext* TestInProcessContextProvider::GrContext() { … }
gpu::SharedImageInterface*
TestInProcessContextProvider::SharedImageInterface() { … }
ContextCacheController* TestInProcessContextProvider::CacheController() { … }
base::Lock* TestInProcessContextProvider::GetLock() { … }
const gpu::Capabilities& TestInProcessContextProvider::ContextCapabilities()
const { … }
const gpu::GpuFeatureInfo& TestInProcessContextProvider::GetGpuFeatureInfo()
const { … }
void TestInProcessContextProvider::AddObserver(ContextLostObserver* obs) { … }
void TestInProcessContextProvider::RemoveObserver(ContextLostObserver* obs) { … }
void TestInProcessContextProvider::SendOnContextLost() { … }
void TestInProcessContextProvider::ExecuteOnGpuThread(base::OnceClosure task) { … }
void TestInProcessContextProvider::CheckValidThreadOrLockAcquired() const { … }
unsigned int TestInProcessContextProvider::GetGrGLTextureFormat(
SharedImageFormat format) const { … }
}