blob: 3f140f03633b1a0b87813f470af8c0ca828688e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SKIA_EXT_PIXEL_REF_UTILS_H_
#define SKIA_EXT_PIXEL_REF_UTILS_H_
#include <vector>
#include "SkPicture.h"
#include "SkRect.h"
namespace skia {
class SK_API PixelRefUtils {
public:
struct PositionPixelRef {
SkPixelRef* pixel_ref;
SkRect pixel_ref_rect;
SkMatrix matrix;
SkFilterQuality filter_quality;
};
static void GatherDiscardablePixelRefs(
SkPicture* picture,
std::vector<PositionPixelRef>* pixel_refs);
};
using PositionPixelRef = PixelRefUtils::PositionPixelRef;
using DiscardablePixelRefList = std::vector<PositionPixelRef>;
} // namespace skia
#endif
|