OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2015 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 #include "SkImageGenerator.h" | |
9 | |
10 #include "SkMatrix.h" | |
11 #include "SkPaint.h" | |
12 #include "SkRefCnt.h" | |
13 #include "SkTLazy.h" | |
14 | |
15 class SkPicture; | |
16 | |
17 class SkPictureImageGenerator : SkImageGenerator { | |
18 public: | |
19 static SkImageGenerator* create(const SkISize&, const SkPicture*, const SkMa trix*, | |
reed1
2015/07/17 18:25:42
Create
f(malita)
2015/07/17 18:39:01
Done.
| |
20 const SkPaint*); | |
21 | |
22 protected: | |
23 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkP MColor ctable[], | |
24 int* ctableCount) override; | |
25 | |
26 private: | |
27 SkPictureImageGenerator(const SkISize&, const SkPicture*, const SkMatrix*, c onst SkPaint*); | |
28 | |
29 const SkImageInfo fInfo; | |
30 SkAutoTUnref<const SkPicture> fPicture; | |
31 SkTLazy<SkMatrix> fMatrix; | |
reed1
2015/07/17 18:25:42
No real reason to make matrix lazy -- it could jus
f(malita)
2015/07/17 18:39:01
Done.
| |
32 SkTLazy<SkPaint> fPaint; | |
33 | |
34 typedef SkImageGenerator INHERITED; | |
35 }; | |
OLD | NEW |