Flutter Impeller
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 
7 namespace impeller {
8 
9 CompressedImage::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
impeller::CompressedImage::source_
const std::shared_ptr< const fml::Mapping > source_
Definition: compressed_image.h:28
impeller::CompressedImage::CompressedImage
CompressedImage(std::shared_ptr< const fml::Mapping > allocation)
Definition: compressed_image.cc:9
impeller::CompressedImage::~CompressedImage
virtual ~CompressedImage()
std
Definition: comparable.h:95
impeller::CompressedImage::IsValid
bool IsValid() const
Definition: compressed_image.cc:14
impeller
Definition: aiks_blur_unittests.cc:20
compressed_image.h