#include "components/viz/demo/service/demo_service.h"
#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/notreached.h"
#include "build/build_config.h"
#include "components/viz/common/frame_sinks/begin_frame_source.h"
#include "components/viz/demo/common/switches.h"
#include "components/viz/service/main/viz_compositor_thread_runner_impl.h"
#include "gpu/ipc/service/gpu_init.h"
#include "services/viz/privileged/mojom/gl/gpu_host.mojom.h"
#include "ui/gl/gl_utils.h"
#include "ui/gl/init/gl_factory.h"
namespace demo {
namespace {
std::unique_ptr<base::Thread> CreateAndStartIOThread() { … }
}
DemoService::DemoService(
mojo::PendingReceiver<viz::mojom::FrameSinkManager> receiver,
mojo::PendingRemote<viz::mojom::FrameSinkManagerClient> client) { … }
DemoService::~DemoService() = default;
void DemoService::ExitProcess(viz::ExitCode immediate_exit_code) { … }
}