Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
glyph_atlas_context_skia.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_GLYPH_ATLAS_CONTEXT_SKIA_H_
6#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_GLYPH_ATLAS_CONTEXT_SKIA_H_
7
10
11class SkBitmap;
12
13namespace impeller {
14
15//------------------------------------------------------------------------------
16/// @brief A container for caching a glyph atlas across frames.
17///
19 : public GlyphAtlasContext,
20 public BackendCast<GlyphAtlasContextSkia, GlyphAtlasContext> {
21 public:
23
25
26 //----------------------------------------------------------------------------
27 /// @brief Retrieve the previous (if any) SkBitmap instance.
28 std::shared_ptr<SkBitmap> GetBitmap() const;
29
30 void UpdateBitmap(std::shared_ptr<SkBitmap> bitmap);
31
32 private:
33 std::shared_ptr<SkBitmap> bitmap_;
34
36
37 GlyphAtlasContextSkia& operator=(const GlyphAtlasContextSkia&) = delete;
38};
39
40} // namespace impeller
41
42#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_GLYPH_ATLAS_CONTEXT_SKIA_H_
A container for caching a glyph atlas across frames.
void UpdateBitmap(std::shared_ptr< SkBitmap > bitmap)
std::shared_ptr< SkBitmap > GetBitmap() const
Retrieve the previous (if any) SkBitmap instance.
A container for caching a glyph atlas across frames.