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
5
#include "
impeller/typographer/backends/skia/glyph_atlas_context_skia.h
"
6
7
#include "third_party/skia/include/core/SkBitmap.h"
8
9
namespace
impeller
{
10
11
GlyphAtlasContextSkia::GlyphAtlasContextSkia
() =
default
;
12
13
GlyphAtlasContextSkia::~GlyphAtlasContextSkia
() =
default
;
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
impeller
typographer
backends
skia
glyph_atlas_context_skia.cc
Generated by
1.8.17