chromium/gpu/command_buffer/service/gl_context_virtual.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "gpu/command_buffer/service/gl_context_virtual.h"

#include "base/functional/callback.h"
#include "build/build_config.h"
#include "gpu/command_buffer/service/decoder_context.h"
#include "gpu/command_buffer/service/gl_state_restorer_impl.h"
#include "ui/gl/gl_gl_api_implementation.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/gpu_preference.h"
#include "ui/gl/gpu_timing.h"

namespace gpu {

GLContextVirtual::GLContextVirtual(
    gl::GLShareGroup* share_group,
    gl::GLContext* shared_context,
    base::WeakPtr<GLContextVirtualDelegate> delegate)
    :{}

bool GLContextVirtual::InitializeImpl(gl::GLSurface* compatible_surface,
                                      const gl::GLContextAttribs& attribs) {}

void GLContextVirtual::Destroy() {}

bool GLContextVirtual::MakeCurrentImpl(gl::GLSurface* surface) {}

void GLContextVirtual::ReleaseCurrent(gl::GLSurface* surface) {}

bool GLContextVirtual::IsCurrent(gl::GLSurface* surface) {}

void* GLContextVirtual::GetHandle() {}

scoped_refptr<gl::GPUTimingClient> GLContextVirtual::CreateGPUTimingClient() {}

std::string GLContextVirtual::GetGLVersion() {}

std::string GLContextVirtual::GetGLRenderer() {}

const gfx::ExtensionSet& GLContextVirtual::GetExtensions() {}

void GLContextVirtual::SetSafeToForceGpuSwitch() {}

unsigned int GLContextVirtual::CheckStickyGraphicsResetStatusImpl() {}

void GLContextVirtual::SetUnbindFboOnMakeCurrent() {}

void GLContextVirtual::ForceReleaseVirtuallyCurrent() {}

#if BUILDFLAG(IS_APPLE)
void GLContextVirtual::AddMetalSharedEventsForBackpressure(
    std::vector<std::unique_ptr<BackpressureMetalSharedEvent>> events) {
  shared_context_->AddMetalSharedEventsForBackpressure(std::move(events));
}

uint64_t GLContextVirtual::BackpressureFenceCreate() {
  return shared_context_->BackpressureFenceCreate();
}

void GLContextVirtual::BackpressureFenceWait(uint64_t fence) {
  shared_context_->BackpressureFenceWait(fence);
}
#endif

#if BUILDFLAG(IS_MAC)
void GLContextVirtual::FlushForDriverCrashWorkaround() {
  shared_context_->FlushForDriverCrashWorkaround();
}
#endif

gl::GLDisplayEGL* GLContextVirtual::GetGLDisplayEGL() {}

GLContextVirtual::~GLContextVirtual() {}

void GLContextVirtual::ResetExtensions() {}

}  // namespace gpu