#include "ui/ozone/demo/skia/skia_gl_renderer.h"
#include <memory>
#include <utility>
#include "base/command_line.h"
#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 "skia/ext/font_utils.h"
#include "skia/ext/legacy_display_globals.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkFont.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
#include "third_party/skia/include/gpu/GrBackendSurface.h"
#include "third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h"
#include "third_party/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "third_party/skia/include/gpu/ganesh/gl/GrGLDirectContext.h"
#include "third_party/skia/include/gpu/gl/GrGLAssembleInterface.h"
#include "third_party/skia/include/gpu/gl/GrGLInterface.h"
#include "third_party/skia/include/gpu/gl/GrGLTypes.h"
#include "third_party/skia/include/private/chromium/GrDeferredDisplayList.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_implementation.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/init/gl_factory.h"
#include "ui/ozone/public/platform_window_surface.h"
namespace ui {
namespace {
const char kUseDDL[] = …;
}
SkiaGlRenderer::SkiaGlRenderer(
gfx::AcceleratedWidget widget,
std::unique_ptr<PlatformWindowSurface> window_surface,
const scoped_refptr<gl::GLSurface>& surface,
const gfx::Size& size)
: … { … }
SkiaGlRenderer::~SkiaGlRenderer() { … }
bool SkiaGlRenderer::Initialize() { … }
void SkiaGlRenderer::RenderFrame() { … }
void SkiaGlRenderer::PostRenderFrameTask(gfx::SwapCompletionResult result) { … }
void SkiaGlRenderer::Draw(SkCanvas* canvas, float fraction) { … }
void SkiaGlRenderer::StartDDLRenderThreadIfNecessary(SkSurface* sk_surface) { … }
void SkiaGlRenderer::StopDDLRenderThread() { … }
sk_sp<GrDeferredDisplayList> SkiaGlRenderer::GetDDL() { … }
void SkiaGlRenderer::Run() { … }
void SkiaGlRenderer::OnPresentation(const gfx::PresentationFeedback& feedback) { … }
}