Flutter Engine
The Flutter Engine
compressed_image.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
7namespace impeller {
8
9CompressedImage::CompressedImage(std::shared_ptr<const fml::Mapping> allocation)
10 : source_(std::move(allocation)) {}
11
13
15 return static_cast<bool>(source_);
16}
17
18} // namespace impeller
const std::shared_ptr< const fml::Mapping > source_
CompressedImage(std::shared_ptr< const fml::Mapping > allocation)
Definition: ref_ptr.h:256