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

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

Issue 377503004: Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Update YUV effect to reflect these changes. Created 6 years, 5 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/SkMaskFilter.cpp ('k') | src/core/SkPictureShader.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 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 SkPictureShader_DEFINED 8 #ifndef SkPictureShader_DEFINED
9 #define SkPictureShader_DEFINED 9 #define SkPictureShader_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 class SkPictureShader : public SkShader { 22 class SkPictureShader : public SkShader {
23 public: 23 public:
24 static SkPictureShader* Create(SkPicture*, TileMode, TileMode, const SkMatri x* = NULL); 24 static SkPictureShader* Create(SkPicture*, TileMode, TileMode, const SkMatri x* = NULL);
25 virtual ~SkPictureShader(); 25 virtual ~SkPictureShader();
26 26
27 virtual size_t contextSize() const SK_OVERRIDE; 27 virtual size_t contextSize() const SK_OVERRIDE;
28 28
29 SK_TO_STRING_OVERRIDE() 29 SK_TO_STRING_OVERRIDE()
30 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader) 30 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader)
31 31
32 bool asNewEffect(GrContext*, const SkPaint&, const SkMatrix*, GrColor*, GrEf fectRef**) 32 bool asNewEffect(GrContext*, const SkPaint&, const SkMatrix*, GrColor*, GrEf fect**)
33 const SK_OVERRIDE; 33 const SK_OVERRIDE;
34 34
35 protected: 35 protected:
36 SkPictureShader(SkReadBuffer&); 36 SkPictureShader(SkReadBuffer&);
37 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 37 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
38 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE; 38 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE;
39 39
40 private: 40 private:
41 SkPictureShader(SkPicture*, TileMode, TileMode, const SkMatrix* = NULL); 41 SkPictureShader(SkPicture*, TileMode, TileMode, const SkMatrix* = NULL);
42 42
(...skipping 27 matching lines...) Expand all
70 SkShader::Context* fBitmapShaderContext; 70 SkShader::Context* fBitmapShaderContext;
71 void* fBitmapShaderContextStorage; 71 void* fBitmapShaderContextStorage;
72 72
73 typedef SkShader::Context INHERITED; 73 typedef SkShader::Context INHERITED;
74 }; 74 };
75 75
76 typedef SkShader INHERITED; 76 typedef SkShader INHERITED;
77 }; 77 };
78 78
79 #endif // SkPictureShader_DEFINED 79 #endif // SkPictureShader_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkMaskFilter.cpp ('k') | src/core/SkPictureShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698