OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkCoreBlitters_DEFINED | 8 #ifndef SkCoreBlitters_DEFINED |
9 #define SkCoreBlitters_DEFINED | 9 #define SkCoreBlitters_DEFINED |
10 | 10 |
11 #include "SkBitmapProcShader.h" | 11 #include "SkBitmapProcShader.h" |
12 #include "SkBlitter.h" | 12 #include "SkBlitter.h" |
13 #include "SkBlitRow.h" | 13 #include "SkBlitRow.h" |
14 #include "SkShader.h" | 14 #include "SkShader.h" |
15 #include "SkSmallAllocator.h" | 15 #include "SkSmallAllocator.h" |
16 #include <memory> | |
17 | 16 |
18 class SkRasterBlitter : public SkBlitter { | 17 class SkRasterBlitter : public SkBlitter { |
19 public: | 18 public: |
20 SkRasterBlitter(const SkPixmap& device) : fDevice(device) {} | 19 SkRasterBlitter(const SkPixmap& device) : fDevice(device) {} |
21 | 20 |
22 protected: | 21 protected: |
23 const SkPixmap fDevice; | 22 const SkPixmap fDevice; |
24 | 23 |
25 private: | 24 private: |
26 typedef SkBlitter INHERITED; | 25 typedef SkBlitter INHERITED; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 calling the filter, so the blitter can always ignore the colorfilter obj | 203 calling the filter, so the blitter can always ignore the colorfilter obj |
205 | 204 |
206 These pre-conditions must be handled by the caller, in our case | 205 These pre-conditions must be handled by the caller, in our case |
207 SkBlitter::Choose(...) | 206 SkBlitter::Choose(...) |
208 */ | 207 */ |
209 | 208 |
210 SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint, | 209 SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint, |
211 SkShader::Context* shaderContext, | 210 SkShader::Context* shaderContext, |
212 SkTBlitterAllocator* allocator); | 211 SkTBlitterAllocator* allocator); |
213 | 212 |
214 | |
215 // Returns nullptr if no SkRasterPipeline blitter can be constructed for this pa
int. | |
216 std::unique_ptr<SkBlitter> SkCreateRasterPipelineBlitter(const SkPixmap&, const
SkPaint&); | |
217 | |
218 #endif | 213 #endif |
OLD | NEW |