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

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

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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/SkColorShader.h ('k') | src/core/SkDeviceImageFilterProxy.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
(...skipping 23 matching lines...) Expand all
34 */ 34 */
35 SkShaderBlitter(const SkBitmap& device, const SkPaint& paint, 35 SkShaderBlitter(const SkBitmap& device, const SkPaint& paint,
36 SkShader::Context* shaderContext); 36 SkShader::Context* shaderContext);
37 virtual ~SkShaderBlitter(); 37 virtual ~SkShaderBlitter();
38 38
39 /** 39 /**
40 * Create a new shader context and uses it instead of the old one if succe ssful. 40 * Create a new shader context and uses it instead of the old one if succe ssful.
41 * Will create the context at the same location as the old one (this is sa fe 41 * Will create the context at the same location as the old one (this is sa fe
42 * because the shader itself is unchanged). 42 * because the shader itself is unchanged).
43 */ 43 */
44 virtual bool resetShaderContext(const SkShader::ContextRec&) SK_OVERRIDE; 44 bool resetShaderContext(const SkShader::ContextRec&) SK_OVERRIDE;
45 45
46 virtual SkShader::Context* getShaderContext() const SK_OVERRIDE { return fSh aderContext; } 46 SkShader::Context* getShaderContext() const SK_OVERRIDE { return fShaderCont ext; }
47 47
48 protected: 48 protected:
49 uint32_t fShaderFlags; 49 uint32_t fShaderFlags;
50 const SkShader* fShader; 50 const SkShader* fShader;
51 SkShader::Context* fShaderContext; 51 SkShader::Context* fShaderContext;
52 52
53 private: 53 private:
54 // illegal 54 // illegal
55 SkShaderBlitter& operator=(const SkShaderBlitter&); 55 SkShaderBlitter& operator=(const SkShaderBlitter&);
56 56
57 typedef SkRasterBlitter INHERITED; 57 typedef SkRasterBlitter INHERITED;
58 }; 58 };
59 59
60 /////////////////////////////////////////////////////////////////////////////// 60 ///////////////////////////////////////////////////////////////////////////////
61 61
62 class SkA8_Coverage_Blitter : public SkRasterBlitter { 62 class SkA8_Coverage_Blitter : public SkRasterBlitter {
63 public: 63 public:
64 SkA8_Coverage_Blitter(const SkBitmap& device, const SkPaint& paint); 64 SkA8_Coverage_Blitter(const SkBitmap& device, const SkPaint& paint);
65 virtual void blitH(int x, int y, int width) SK_OVERRIDE; 65 void blitH(int x, int y, int width) SK_OVERRIDE;
66 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]) SK_OVERRIDE; 66 void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[] ) SK_OVERRIDE;
67 virtual void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE; 67 void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE;
68 virtual void blitRect(int x, int y, int width, int height) SK_OVERRIDE; 68 void blitRect(int x, int y, int width, int height) SK_OVERRIDE;
69 virtual void blitMask(const SkMask&, const SkIRect&) SK_OVERRIDE; 69 void blitMask(const SkMask&, const SkIRect&) SK_OVERRIDE;
70 virtual const SkBitmap* justAnOpaqueColor(uint32_t*) SK_OVERRIDE; 70 const SkBitmap* justAnOpaqueColor(uint32_t*) SK_OVERRIDE;
71 }; 71 };
72 72
73 class SkA8_Blitter : public SkRasterBlitter { 73 class SkA8_Blitter : public SkRasterBlitter {
74 public: 74 public:
75 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint); 75 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint);
76 virtual void blitH(int x, int y, int width); 76 virtual void blitH(int x, int y, int width);
77 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]); 77 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]);
78 virtual void blitV(int x, int y, int height, SkAlpha alpha); 78 virtual void blitV(int x, int y, int height, SkAlpha alpha);
79 virtual void blitRect(int x, int y, int width, int height); 79 virtual void blitRect(int x, int y, int width, int height);
80 virtual void blitMask(const SkMask&, const SkIRect&); 80 virtual void blitMask(const SkMask&, const SkIRect&);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 private: 155 private:
156 typedef SkARGB32_Opaque_Blitter INHERITED; 156 typedef SkARGB32_Opaque_Blitter INHERITED;
157 }; 157 };
158 158
159 class SkARGB32_Shader_Blitter : public SkShaderBlitter { 159 class SkARGB32_Shader_Blitter : public SkShaderBlitter {
160 public: 160 public:
161 SkARGB32_Shader_Blitter(const SkBitmap& device, const SkPaint& paint, 161 SkARGB32_Shader_Blitter(const SkBitmap& device, const SkPaint& paint,
162 SkShader::Context* shaderContext); 162 SkShader::Context* shaderContext);
163 virtual ~SkARGB32_Shader_Blitter(); 163 virtual ~SkARGB32_Shader_Blitter();
164 virtual void blitH(int x, int y, int width) SK_OVERRIDE; 164 void blitH(int x, int y, int width) SK_OVERRIDE;
165 virtual void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE; 165 void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE;
166 virtual void blitRect(int x, int y, int width, int height) SK_OVERRIDE; 166 void blitRect(int x, int y, int width, int height) SK_OVERRIDE;
167 virtual void blitAntiH(int x, int y, const SkAlpha[], const int16_t[]) SK_OV ERRIDE; 167 void blitAntiH(int x, int y, const SkAlpha[], const int16_t[]) SK_OVERRIDE;
168 virtual void blitMask(const SkMask&, const SkIRect&) SK_OVERRIDE; 168 void blitMask(const SkMask&, const SkIRect&) SK_OVERRIDE;
169 169
170 private: 170 private:
171 SkXfermode* fXfermode; 171 SkXfermode* fXfermode;
172 SkPMColor* fBuffer; 172 SkPMColor* fBuffer;
173 SkBlitRow::Proc32 fProc32; 173 SkBlitRow::Proc32 fProc32;
174 SkBlitRow::Proc32 fProc32Blend; 174 SkBlitRow::Proc32 fProc32Blend;
175 bool fShadeDirectlyIntoDevice; 175 bool fShadeDirectlyIntoDevice;
176 bool fConstInY; 176 bool fConstInY;
177 177
178 // illegal 178 // illegal
(...skipping 15 matching lines...) Expand all
194 194
195 These pre-conditions must be handled by the caller, in our case 195 These pre-conditions must be handled by the caller, in our case
196 SkBlitter::Choose(...) 196 SkBlitter::Choose(...)
197 */ 197 */
198 198
199 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint, 199 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint,
200 SkShader::Context* shaderContext, 200 SkShader::Context* shaderContext,
201 SkTBlitterAllocator* allocator); 201 SkTBlitterAllocator* allocator);
202 202
203 #endif 203 #endif
OLDNEW
« no previous file with comments | « src/core/SkColorShader.h ('k') | src/core/SkDeviceImageFilterProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698