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

Side by Side Diff: src/core/SkCoreBlitters.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/SkBlitter.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 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 SkBitmap& device, const SkPaint& paint , 44 virtual bool resetShaderContext(const SkShader::ContextRec&) SK_OVERRIDE;
45 const SkMatrix& matrix) SK_OVERRIDE;
46 45
47 virtual SkShader::Context* getShaderContext() const SK_OVERRIDE { return fSh aderContext; } 46 virtual SkShader::Context* getShaderContext() const SK_OVERRIDE { return fSh aderContext; }
48 47
49 protected: 48 protected:
50 uint32_t fShaderFlags; 49 uint32_t fShaderFlags;
51 const SkShader* fShader; 50 const SkShader* fShader;
52 SkShader::Context* fShaderContext; 51 SkShader::Context* fShaderContext;
53 52
54 private: 53 private:
55 // illegal 54 // illegal
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 194
196 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
197 SkBlitter::Choose(...) 196 SkBlitter::Choose(...)
198 */ 197 */
199 198
200 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint, 199 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint,
201 SkShader::Context* shaderContext, 200 SkShader::Context* shaderContext,
202 SkTBlitterAllocator* allocator); 201 SkTBlitterAllocator* allocator);
203 202
204 #endif 203 #endif
OLDNEW
« no previous file with comments | « src/core/SkBlitter.cpp ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698