Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
8
9namespace impeller {
10
12
14
15std::shared_ptr<SkBitmap> GlyphAtlasContextSkia::GetBitmap() const {
16 return bitmap_;
17}
18
19void GlyphAtlasContextSkia::UpdateBitmap(std::shared_ptr<SkBitmap> bitmap) {
20 bitmap_ = std::move(bitmap);
21}
22
23} // namespace impeller
void UpdateBitmap(std::shared_ptr< SkBitmap > bitmap)
std::shared_ptr< SkBitmap > GetBitmap() const
Retrieve the previous (if any) SkBitmap instance.