#include "ui/ozone/demo/skia/skia_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/skia/skia_gl_renderer.h"
#include "ui/ozone/demo/skia/skia_surfaceless_gl_renderer.h"
#include "ui/ozone/public/ozone_platform.h"
#include "ui/ozone/public/platform_window_surface.h"
#include "ui/ozone/public/surface_factory_ozone.h"
namespace ui {
namespace {
const char kDisableSurfaceless[] = …;
scoped_refptr<gl::Presenter> CreatePresenter(gl::GLDisplay* display,
gfx::AcceleratedWidget widget) { … }
scoped_refptr<gl::GLSurface> CreateGLSurface(gl::GLDisplay* display,
gfx::AcceleratedWidget widget) { … }
}
SkiaRendererFactory::SkiaRendererFactory() { … }
SkiaRendererFactory::~SkiaRendererFactory() { … }
bool SkiaRendererFactory::Initialize() { … }
std::unique_ptr<Renderer> SkiaRendererFactory::CreateRenderer(
gfx::AcceleratedWidget widget,
const gfx::Size& size) { … }
}