Flutter Impeller
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 
11 class SkBitmap;
12 
13 namespace 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 
24  ~GlyphAtlasContextSkia() override;
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_
impeller::GlyphAtlasContextSkia::GlyphAtlasContextSkia
GlyphAtlasContextSkia()
backend_cast.h
impeller::GlyphAtlasContext
A container for caching a glyph atlas across frames.
Definition: glyph_atlas.h:146
impeller::BackendCast
Definition: backend_cast.h:11
impeller::GlyphAtlasContextSkia::UpdateBitmap
void UpdateBitmap(std::shared_ptr< SkBitmap > bitmap)
Definition: glyph_atlas_context_skia.cc:19
impeller::GlyphAtlasContextSkia::GetBitmap
std::shared_ptr< SkBitmap > GetBitmap() const
Retrieve the previous (if any) SkBitmap instance.
Definition: glyph_atlas_context_skia.cc:15
impeller::GlyphAtlasContextSkia::~GlyphAtlasContextSkia
~GlyphAtlasContextSkia() override
glyph_atlas.h
impeller
Definition: aiks_blur_unittests.cc:20
impeller::GlyphAtlasContextSkia
A container for caching a glyph atlas across frames.
Definition: glyph_atlas_context_skia.h:18