Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: src/core/SkCoreBlitters.h

Issue 2178523002: Revert of Add SkRasterPipeline blitter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkColorFilter.cpp ('k') | src/core/SkRasterPipeline.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/core/SkColorFilter.cpp ('k') | src/core/SkRasterPipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698