#include "ui/ozone/demo/gl_renderer.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/gpu_fence.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/init/gl_factory.h"
#include "ui/ozone/public/platform_window_surface.h"
namespace ui {
GlRenderer::GlRenderer(gfx::AcceleratedWidget widget,
std::unique_ptr<PlatformWindowSurface> window_surface,
const scoped_refptr<gl::GLSurface>& gl_surface,
const gfx::Size& size)
: … { … }
GlRenderer::~GlRenderer() { … }
bool GlRenderer::Initialize() { … }
void GlRenderer::RenderFrame() { … }
void GlRenderer::PostRenderFrameTask(gfx::SwapCompletionResult result) { … }
void GlRenderer::OnPresentation(const gfx::PresentationFeedback& feedback) { … }
}