blob: 4011137b403e34d5950002dcba5cd51bfccf8146 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <memory>
#include "flutter/fml/macros.h"
#include "impeller/core/texture.h"
namespace impeller {
class Image {
public:
explicit Image(std::shared_ptr<Texture> texture);
~Image();
ISize GetSize() const;
std::shared_ptr<Texture> GetTexture() const;
private:
const std::shared_ptr<Texture> texture_;
Image(const Image&) = delete;
Image& operator=(const Image&) = delete;
};
} // namespace impeller