#include "gpu/ipc/gl_in_process_context.h"
#include <GLES2/gl2.h>
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES …
#endif
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <utility>
#include "base/logging.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/shared_memory_limits.h"
#include "gpu/command_buffer/client/transfer_buffer.h"
#include "gpu/command_buffer/common/command_buffer.h"
#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/service/gpu_task_scheduler_helper.h"
#include "gpu/config/gpu_feature_info.h"
#include "gpu/skia_bindings/gles2_implementation_with_grcontext_support.h"
#include "ui/gfx/geometry/size.h"
#if BUILDFLAG(IS_ANDROID)
#include "ui/gl/android/surface_texture.h"
#endif
namespace gpu {
GLInProcessContext::GLInProcessContext() = default;
GLInProcessContext::~GLInProcessContext() = default;
const Capabilities& GLInProcessContext::GetCapabilities() const { … }
const GpuFeatureInfo& GLInProcessContext::GetGpuFeatureInfo() const { … }
gles2::GLES2Implementation* GLInProcessContext::GetImplementation() { … }
SharedImageInterface* GLInProcessContext::GetSharedImageInterface() { … }
ContextResult GLInProcessContext::Initialize(
CommandBufferTaskExecutor* task_executor,
const ContextCreationAttribs& attribs,
const SharedMemoryLimits& mem_limits) { … }
}