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

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

Issue 2175563003: Bundle SkShader::asFragmentProcessor arguments in a struct (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix indentation to be less arbitrary Created 4 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/SkNormalSource.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 10 matching lines...) Expand all
21 */ 21 */
22 class SkPictureShader : public SkShader { 22 class SkPictureShader : public SkShader {
23 public: 23 public:
24 static sk_sp<SkShader> Make(sk_sp<SkPicture>, TileMode, TileMode, const SkMa trix*, 24 static sk_sp<SkShader> Make(sk_sp<SkPicture>, TileMode, TileMode, const SkMa trix*,
25 const SkRect*); 25 const SkRect*);
26 26
27 SK_TO_STRING_OVERRIDE() 27 SK_TO_STRING_OVERRIDE()
28 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader) 28 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader)
29 29
30 #if SK_SUPPORT_GPU 30 #if SK_SUPPORT_GPU
31 sk_sp<GrFragmentProcessor> asFragmentProcessor(GrContext*, 31 sk_sp<GrFragmentProcessor> asFragmentProcessor(const AsFPArgs&) const overri de;
32 const SkMatrix& viewM,
33 const SkMatrix*,
34 SkFilterQuality,
35 SkSourceGammaTreatment) const override;
36 #endif 32 #endif
37 33
38 protected: 34 protected:
39 SkPictureShader(SkReadBuffer&); 35 SkPictureShader(SkReadBuffer&);
40 void flatten(SkWriteBuffer&) const override; 36 void flatten(SkWriteBuffer&) const override;
41 size_t onContextSize(const ContextRec&) const override; 37 size_t onContextSize(const ContextRec&) const override;
42 Context* onCreateContext(const ContextRec&, void* storage) const override; 38 Context* onCreateContext(const ContextRec&, void* storage) const override;
43 39
44 private: 40 private:
45 SkPictureShader(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*, const SkRect*); 41 SkPictureShader(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*, const SkRect*);
(...skipping 25 matching lines...) Expand all
71 SkShader::Context* fBitmapShaderContext; 67 SkShader::Context* fBitmapShaderContext;
72 void* fBitmapShaderContextStorage; 68 void* fBitmapShaderContextStorage;
73 69
74 typedef SkShader::Context INHERITED; 70 typedef SkShader::Context INHERITED;
75 }; 71 };
76 72
77 typedef SkShader INHERITED; 73 typedef SkShader INHERITED;
78 }; 74 };
79 75
80 #endif // SkPictureShader_DEFINED 76 #endif // SkPictureShader_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkNormalSource.cpp ('k') | src/core/SkPictureShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698