| // 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 |