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

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

Issue 83093005: remove kA1_Config, as it is no longer supported (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 bool fConstInY; 155 bool fConstInY;
156 156
157 // illegal 157 // illegal
158 SkARGB32_Shader_Blitter& operator=(const SkARGB32_Shader_Blitter&); 158 SkARGB32_Shader_Blitter& operator=(const SkARGB32_Shader_Blitter&);
159 159
160 typedef SkShaderBlitter INHERITED; 160 typedef SkShaderBlitter INHERITED;
161 }; 161 };
162 162
163 /////////////////////////////////////////////////////////////////////////////// 163 ///////////////////////////////////////////////////////////////////////////////
164 164
165 class SkA1_Blitter : public SkRasterBlitter {
166 public:
167 SkA1_Blitter(const SkBitmap& device, const SkPaint& paint);
168 virtual void blitH(int x, int y, int width) SK_OVERRIDE;
169
170 private:
171 uint8_t fSrcA;
172
173 // illegal
174 SkA1_Blitter& operator=(const SkA1_Blitter&);
175
176 typedef SkRasterBlitter INHERITED;
177 };
178
179 ///////////////////////////////////////////////////////////////////////////////
180
181 /* These return the correct subclass of blitter for their device config. 165 /* These return the correct subclass of blitter for their device config.
182 166
183 Currently, they make the following assumptions about the state of the 167 Currently, they make the following assumptions about the state of the
184 paint: 168 paint:
185 169
186 1. If there is an xfermode, there will also be a shader 170 1. If there is an xfermode, there will also be a shader
187 2. If there is a colorfilter, there will be a shader that itself handles 171 2. If there is a colorfilter, there will be a shader that itself handles
188 calling the filter, so the blitter can always ignore the colorfilter obj 172 calling the filter, so the blitter can always ignore the colorfilter obj
189 173
190 These pre-conditions must be handled by the caller, in our case 174 These pre-conditions must be handled by the caller, in our case
191 SkBlitter::Choose(...) 175 SkBlitter::Choose(...)
192 */ 176 */
193 177
194 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, 178 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device,
195 const SkPaint& paint, 179 const SkPaint& paint,
196 void* storage, size_t storageSize); 180 void* storage, size_t storageSize);
197 181
198 #endif 182 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698