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

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

Issue 959873002: Clean up ColorRectProc plumbing. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simpler, platform procs specialize anyway Created 5 years, 10 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/SkBlitter_ARGB32.cpp ('k') | src/opts/SkBlitRow_opts_arm.cpp » ('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
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]); 118 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]);
119 virtual void blitV(int x, int y, int height, SkAlpha alpha); 119 virtual void blitV(int x, int y, int height, SkAlpha alpha);
120 virtual void blitRect(int x, int y, int width, int height); 120 virtual void blitRect(int x, int y, int width, int height);
121 virtual void blitMask(const SkMask&, const SkIRect&); 121 virtual void blitMask(const SkMask&, const SkIRect&);
122 virtual const SkBitmap* justAnOpaqueColor(uint32_t*); 122 virtual const SkBitmap* justAnOpaqueColor(uint32_t*);
123 123
124 protected: 124 protected:
125 SkColor fColor; 125 SkColor fColor;
126 SkPMColor fPMColor; 126 SkPMColor fPMColor;
127 SkBlitRow::ColorProc fColor32Proc; 127 SkBlitRow::ColorProc fColor32Proc;
128 SkBlitRow::ColorRectProc fColorRect32Proc;
129 128
130 private: 129 private:
131 unsigned fSrcA, fSrcR, fSrcG, fSrcB; 130 unsigned fSrcA, fSrcR, fSrcG, fSrcB;
132 131
133 // illegal 132 // illegal
134 SkARGB32_Blitter& operator=(const SkARGB32_Blitter&); 133 SkARGB32_Blitter& operator=(const SkARGB32_Blitter&);
135 134
136 typedef SkRasterBlitter INHERITED; 135 typedef SkRasterBlitter INHERITED;
137 }; 136 };
138 137
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 193
195 These pre-conditions must be handled by the caller, in our case 194 These pre-conditions must be handled by the caller, in our case
196 SkBlitter::Choose(...) 195 SkBlitter::Choose(...)
197 */ 196 */
198 197
199 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint, 198 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint,
200 SkShader::Context* shaderContext, 199 SkShader::Context* shaderContext,
201 SkTBlitterAllocator* allocator); 200 SkTBlitterAllocator* allocator);
202 201
203 #endif 202 #endif
OLDNEW
« no previous file with comments | « src/core/SkBlitter_ARGB32.cpp ('k') | src/opts/SkBlitRow_opts_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698