| 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
5 #include "impeller/playground/image/compressed_image.h"
6
7 namespace impeller {
8
9 CompressedImage::CompressedImage(std::shared_ptr<const fml::Mapping> allocation)
10 : source_(std::move(allocation)) {}
11
12 CompressedImage::~CompressedImage() = default;
13
14 bool CompressedImage::IsValid() const {
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:26
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_blend_unittests.cc:18
compressed_image.h