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 #pragma once
6 
9 
10 class SkBitmap;
11 
12 namespace impeller {
13 
14 //------------------------------------------------------------------------------
15 /// @brief A container for caching a glyph atlas across frames.
16 ///
18  : public GlyphAtlasContext,
19  public BackendCast<GlyphAtlasContextSkia, GlyphAtlasContext> {
20  public:
22 
23  ~GlyphAtlasContextSkia() override;
24 
25  //----------------------------------------------------------------------------
26  /// @brief Retrieve the previous (if any) SkBitmap instance.
27  std::shared_ptr<SkBitmap> GetBitmap() const;
28 
29  void UpdateBitmap(std::shared_ptr<SkBitmap> bitmap);
30 
31  private:
32  std::shared_ptr<SkBitmap> bitmap_;
33 
34  FML_DISALLOW_COPY_AND_ASSIGN(GlyphAtlasContextSkia);
35 };
36 
37 } // namespace impeller
impeller::GlyphAtlasContextSkia::GlyphAtlasContextSkia
GlyphAtlasContextSkia()
backend_cast.h
impeller::GlyphAtlasContext
A container for caching a glyph atlas across frames.
Definition: glyph_atlas.h:142
impeller::BackendCast
Definition: backend_cast.h:12
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_context.cc:10
impeller::GlyphAtlasContextSkia
A container for caching a glyph atlas across frames.
Definition: glyph_atlas_context_skia.h:17