mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
20 lines
610 B
C++
20 lines
610 B
C++
// Copyright 2016 The Chromium 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 "flutter/content_handler/rasterizer.h"
|
|
#include "flutter/content_handler/vulkan_rasterizer.h"
|
|
|
|
namespace flutter_runner {
|
|
|
|
Rasterizer::~Rasterizer() = default;
|
|
|
|
std::unique_ptr<Rasterizer> Rasterizer::Create() {
|
|
auto vulkan_rasterizer = std::make_unique<VulkanRasterizer>();
|
|
FXL_CHECK(vulkan_rasterizer)
|
|
<< "The vulkan rasterizer must be correctly initialized.";
|
|
return vulkan_rasterizer;
|
|
}
|
|
|
|
} // namespace flutter_runner
|