blob: 650f631ae9b428c2f5f02e61d70305d4a2e719fd [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/lib/ui/sketchy/sketchy_system.h"
namespace scenic_impl {
const char* SketchySystem::kName = "SketchySystem";
SketchySystem::SketchySystem(SystemContext context, gfx::GfxSystem* gfx_system)
: System(std::move(context)), gfx_system_(gfx_system) {}
SketchySystem::~SketchySystem() = default;
CommandDispatcherUniquePtr SketchySystem::CreateCommandDispatcher(
CommandDispatcherContext context) {
return CommandDispatcherUniquePtr(
new SketchyCommandDispatcher(std::move(context), gfx_system_),
// Custom deleter.
[](CommandDispatcher* cd) { delete cd; });
}
SketchyCommandDispatcher::SketchyCommandDispatcher(
CommandDispatcherContext context, gfx::GfxSystem* gfx_system)
: CommandDispatcher(std::move(context)), gfx_system_(gfx_system) {
FXL_DCHECK(gfx_system_);
}
SketchyCommandDispatcher::~SketchyCommandDispatcher() = default;
void SketchyCommandDispatcher::DispatchCommand(
fuchsia::ui::scenic::Command command) {}
} // namespace scenic_impl