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

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

Issue 50673005: Revert "Revert "speed up A8 by creating a new entry-point in SkDraw that blits the path's coverage … (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « src/core/SkBlitter_A8.cpp ('k') | src/core/SkDraw.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 22 matching lines...) Expand all
33 33
34 private: 34 private:
35 // illegal 35 // illegal
36 SkShaderBlitter& operator=(const SkShaderBlitter&); 36 SkShaderBlitter& operator=(const SkShaderBlitter&);
37 37
38 typedef SkRasterBlitter INHERITED; 38 typedef SkRasterBlitter INHERITED;
39 }; 39 };
40 40
41 /////////////////////////////////////////////////////////////////////////////// 41 ///////////////////////////////////////////////////////////////////////////////
42 42
43 class SkA8_Coverage_Blitter : public SkRasterBlitter {
44 public:
45 SkA8_Coverage_Blitter(const SkBitmap& device, const SkPaint& paint);
46 virtual void blitH(int x, int y, int width) SK_OVERRIDE;
47 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]) SK_OVERRIDE;
48 virtual void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE;
49 virtual void blitRect(int x, int y, int width, int height) SK_OVERRIDE;
50 virtual void blitMask(const SkMask&, const SkIRect&) SK_OVERRIDE;
51 virtual const SkBitmap* justAnOpaqueColor(uint32_t*) SK_OVERRIDE;
52 };
53
43 class SkA8_Blitter : public SkRasterBlitter { 54 class SkA8_Blitter : public SkRasterBlitter {
44 public: 55 public:
45 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint); 56 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint);
46 virtual void blitH(int x, int y, int width); 57 virtual void blitH(int x, int y, int width);
47 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]); 58 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]);
48 virtual void blitV(int x, int y, int height, SkAlpha alpha); 59 virtual void blitV(int x, int y, int height, SkAlpha alpha);
49 virtual void blitRect(int x, int y, int width, int height); 60 virtual void blitRect(int x, int y, int width, int height);
50 virtual void blitMask(const SkMask&, const SkIRect&); 61 virtual void blitMask(const SkMask&, const SkIRect&);
51 virtual const SkBitmap* justAnOpaqueColor(uint32_t*); 62 virtual const SkBitmap* justAnOpaqueColor(uint32_t*);
52 63
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 189
179 These pre-conditions must be handled by the caller, in our case 190 These pre-conditions must be handled by the caller, in our case
180 SkBlitter::Choose(...) 191 SkBlitter::Choose(...)
181 */ 192 */
182 193
183 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, 194 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device,
184 const SkPaint& paint, 195 const SkPaint& paint,
185 void* storage, size_t storageSize); 196 void* storage, size_t storageSize);
186 197
187 #endif 198 #endif
OLDNEW
« no previous file with comments | « src/core/SkBlitter_A8.cpp ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698