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

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

Issue 57883006: Revert "speed up A8 by creating a new entry-point in SkDraw that blits the path's coverage directly… (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
54 class SkA8_Blitter : public SkRasterBlitter { 43 class SkA8_Blitter : public SkRasterBlitter {
55 public: 44 public:
56 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint); 45 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint);
57 virtual void blitH(int x, int y, int width); 46 virtual void blitH(int x, int y, int width);
58 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]); 47 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]);
59 virtual void blitV(int x, int y, int height, SkAlpha alpha); 48 virtual void blitV(int x, int y, int height, SkAlpha alpha);
60 virtual void blitRect(int x, int y, int width, int height); 49 virtual void blitRect(int x, int y, int width, int height);
61 virtual void blitMask(const SkMask&, const SkIRect&); 50 virtual void blitMask(const SkMask&, const SkIRect&);
62 virtual const SkBitmap* justAnOpaqueColor(uint32_t*); 51 virtual const SkBitmap* justAnOpaqueColor(uint32_t*);
63 52
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 178
190 These pre-conditions must be handled by the caller, in our case 179 These pre-conditions must be handled by the caller, in our case
191 SkBlitter::Choose(...) 180 SkBlitter::Choose(...)
192 */ 181 */
193 182
194 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, 183 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device,
195 const SkPaint& paint, 184 const SkPaint& paint,
196 void* storage, size_t storageSize); 185 void* storage, size_t storageSize);
197 186
198 #endif 187 #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