Flutter Engine
The Flutter Engine
SkMipmapBuilder.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkMipmapBuilder_DEFINED
9#define SkMipmapBuilder_DEFINED
10
12
13class SkImage;
14class SkMipmap;
15class SkPixmap;
16struct SkImageInfo;
17
19public:
22
23 int countLevels() const;
24 SkPixmap level(int index) const;
25
26 /**
27 * If these levels are compatible with src, return a new Image that combines src's base level
28 * with these levels as mip levels. If not compatible, this returns nullptr.
29 */
31
32private:
34};
35
36#endif
int countLevels() const
sk_sp< SkImage > attachTo(const sk_sp< const SkImage > &src)
SkPixmap level(int index) const
SkMipmapBuilder(const SkImageInfo &)