blob: 0c97a8716e7ad5aee29691114a9f0e481c65143d [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "flutter/fml/macros.h"
#include "impeller/typographer/text_render_context.h"
namespace impeller {
class TextRenderContextSkia : public TextRenderContext {
public:
TextRenderContextSkia(std::shared_ptr<Context> context);
~TextRenderContextSkia() override;
// |TextRenderContext|
std::shared_ptr<GlyphAtlas> CreateGlyphAtlas(
GlyphAtlas::Type type,
std::shared_ptr<GlyphAtlasContext> atlas_context,
FrameIterator iterator) const override;
private:
FML_DISALLOW_COPY_AND_ASSIGN(TextRenderContextSkia);
};
} // namespace impeller