#include "ui/ozone/demo/simple_renderer_factory.h"
#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/logging.h"
#include "ui/gl/gl_display.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/init/gl_factory.h"
#include "ui/ozone/demo/gl_renderer.h"
#include "ui/ozone/demo/software_renderer.h"
#include "ui/ozone/demo/surfaceless_gl_renderer.h"
#include "ui/ozone/public/overlay_surface.h"
#include "ui/ozone/public/ozone_platform.h"
#include "ui/ozone/public/platform_window_surface.h"
#include "ui/ozone/public/surface_factory_ozone.h"
#if BUILDFLAG(ENABLE_VULKAN)
#include "gpu/vulkan/init/vulkan_factory.h"
#include "gpu/vulkan/vulkan_surface.h"
#include "ui/ozone/demo/vulkan_overlay_renderer.h"
#include "ui/ozone/demo/vulkan_renderer.h"
#endif
namespace ui {
namespace {
const char kDisableSurfaceless[] = …;
const char kDisableGpu[] = …;
#if BUILDFLAG(ENABLE_VULKAN)
const char kEnableVulkan[] = …;
#endif
scoped_refptr<gl::Presenter> CreatePresenter(gl::GLDisplay* display,
gfx::AcceleratedWidget widget) { … }
scoped_refptr<gl::GLSurface> CreateGLSurface(gl::GLDisplay* display,
gfx::AcceleratedWidget widget) { … }
}
SimpleRendererFactory::SimpleRendererFactory() { … }
SimpleRendererFactory::~SimpleRendererFactory() { … }
bool SimpleRendererFactory::Initialize() { … }
std::unique_ptr<Renderer> SimpleRendererFactory::CreateRenderer(
gfx::AcceleratedWidget widget,
const gfx::Size& size) { … }
}