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

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

Issue 1724503002: Add dest type hint to SkShader::ContextRec (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « include/core/SkShader.h ('k') | src/core/SkBlitter.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 SkBlitter_DEFINED 8 #ifndef SkBlitter_DEFINED
9 #define SkBlitter_DEFINED 9 #define SkBlitter_DEFINED
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 SkTBlitterAllocator*, 130 SkTBlitterAllocator*,
131 bool drawCoverage = false); 131 bool drawCoverage = false);
132 132
133 static SkBlitter* ChooseSprite(const SkPixmap& dst, 133 static SkBlitter* ChooseSprite(const SkPixmap& dst,
134 const SkPaint&, 134 const SkPaint&,
135 const SkPixmap& src, 135 const SkPixmap& src,
136 int left, int top, 136 int left, int top,
137 SkTBlitterAllocator*); 137 SkTBlitterAllocator*);
138 ///@} 138 ///@}
139 139
140 static SkShader::ContextRec::DstType PreferredShaderDest(const SkImageInfo&) ;
141
140 protected: 142 protected:
141 SkAutoMalloc fBlitMemory; 143 SkAutoMalloc fBlitMemory;
142 }; 144 };
143 145
144 /** This blitter silently never draws anything. 146 /** This blitter silently never draws anything.
145 */ 147 */
146 class SkNullBlitter : public SkBlitter { 148 class SkNullBlitter : public SkBlitter {
147 public: 149 public:
148 void blitH(int x, int y, int width) override; 150 void blitH(int x, int y, int width) override;
149 void blitAntiH(int x, int y, const SkAlpha[], const int16_t runs[]) override ; 151 void blitAntiH(int x, int y, const SkAlpha[], const int16_t runs[]) override ;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, 233 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip,
232 const SkIRect* bounds = nullptr); 234 const SkIRect* bounds = nullptr);
233 235
234 private: 236 private:
235 SkNullBlitter fNullBlitter; 237 SkNullBlitter fNullBlitter;
236 SkRectClipBlitter fRectBlitter; 238 SkRectClipBlitter fRectBlitter;
237 SkRgnClipBlitter fRgnBlitter; 239 SkRgnClipBlitter fRgnBlitter;
238 }; 240 };
239 241
240 #endif 242 #endif
OLDNEW
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkBlitter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698