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

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

Issue 263293005: add local-matrix to shader::context (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add/fix comments Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/core/SkBitmapProcShader.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkBlitter_DEFINED 10 #ifndef SkBlitter_DEFINED
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 /** 57 /**
58 * Special method just to identify the null blitter, which is returned 58 * Special method just to identify the null blitter, which is returned
59 * from Choose() if the request cannot be fulfilled. Default impl 59 * from Choose() if the request cannot be fulfilled. Default impl
60 * returns false. 60 * returns false.
61 */ 61 */
62 virtual bool isNullBlitter() const; 62 virtual bool isNullBlitter() const;
63 63
64 /** 64 /**
65 * Special methods for SkShaderBlitter. On all other classes this is a no-o p. 65 * Special methods for SkShaderBlitter. On all other classes this is a no-o p.
66 */ 66 */
67 virtual bool resetShaderContext(const SkBitmap& device, const SkPaint& paint , 67 virtual bool resetShaderContext(const SkShader::ContextRec&);
68 const SkMatrix& matrix);
69 virtual SkShader::Context* getShaderContext() const; 68 virtual SkShader::Context* getShaderContext() const;
70 69
71 ///@name non-virtual helpers 70 ///@name non-virtual helpers
72 void blitMaskRegion(const SkMask& mask, const SkRegion& clip); 71 void blitMaskRegion(const SkMask& mask, const SkRegion& clip);
73 void blitRectRegion(const SkIRect& rect, const SkRegion& clip); 72 void blitRectRegion(const SkIRect& rect, const SkRegion& clip);
74 void blitRegion(const SkRegion& clip); 73 void blitRegion(const SkRegion& clip);
75 ///@} 74 ///@}
76 75
77 /** @name Factories 76 /** @name Factories
78 Return the correct blitter to use given the specified context. 77 Return the correct blitter to use given the specified context.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, 169 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip,
171 const SkIRect* bounds = NULL); 170 const SkIRect* bounds = NULL);
172 171
173 private: 172 private:
174 SkNullBlitter fNullBlitter; 173 SkNullBlitter fNullBlitter;
175 SkRectClipBlitter fRectBlitter; 174 SkRectClipBlitter fRectBlitter;
176 SkRgnClipBlitter fRgnBlitter; 175 SkRgnClipBlitter fRgnBlitter;
177 }; 176 };
178 177
179 #endif 178 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcShader.h ('k') | src/core/SkBlitter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698