Flutter Impeller
glyph_atlas_context_skia.cc
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 
6 
7 #include "third_party/skia/include/core/SkBitmap.h"
8 
9 namespace impeller {
10 
12 
14 
15 std::shared_ptr<SkBitmap> GlyphAtlasContextSkia::GetBitmap() const {
16  return bitmap_;
17 }
18 
19 void GlyphAtlasContextSkia::UpdateBitmap(std::shared_ptr<SkBitmap> bitmap) {
20  bitmap_ = std::move(bitmap);
21 }
22 
23 } // namespace impeller
glyph_atlas_context_skia.h
impeller::GlyphAtlasContextSkia::GlyphAtlasContextSkia
GlyphAtlasContextSkia()
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
impeller
Definition: aiks_blur_unittests.cc:20