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

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

Issue 1316513002: Change SkShader;asFragmentProcessor signature to no longer take skpaint\grcolor* (Closed) Base URL: https://skia.googlesource.com/skia.git@things
Patch Set: Address comments, fix roll(?) Created 5 years, 3 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/SkLocalMatrixShader.h ('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 /*
2 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
3 * 4 *
4 * 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
5 * found in the LICENSE file. 6 * found in the LICENSE file.
6 */ 7 */
7 8
8 #ifndef SkPictureShader_DEFINED 9 #ifndef SkPictureShader_DEFINED
9 #define SkPictureShader_DEFINED 10 #define SkPictureShader_DEFINED
10 11
(...skipping 12 matching lines...) Expand all
23 public: 24 public:
24 static SkShader* Create(const SkPicture*, TileMode, TileMode, const SkMatrix *, 25 static SkShader* Create(const SkPicture*, TileMode, TileMode, const SkMatrix *,
25 const SkRect*); 26 const SkRect*);
26 virtual ~SkPictureShader(); 27 virtual ~SkPictureShader();
27 28
28 size_t contextSize() const override; 29 size_t contextSize() const override;
29 30
30 SK_TO_STRING_OVERRIDE() 31 SK_TO_STRING_OVERRIDE()
31 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader) 32 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader)
32 33
33 bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix& viewM, const SkMatrix*, 34 #if SK_SUPPORT_GPU
34 GrColor*, GrProcessorDataManager*, 35 const GrFragmentProcessor* asFragmentProcessor(GrContext*,
35 GrFragmentProcessor**) const override; 36 const SkMatrix& viewM,
37 const SkMatrix*,
38 SkFilterQuality,
39 GrProcessorDataManager*) cons t override;
40 #endif
36 41
37 protected: 42 protected:
38 SkPictureShader(SkReadBuffer&); 43 SkPictureShader(SkReadBuffer&);
39 void flatten(SkWriteBuffer&) const override; 44 void flatten(SkWriteBuffer&) const override;
40 Context* onCreateContext(const ContextRec&, void* storage) const override; 45 Context* onCreateContext(const ContextRec&, void* storage) const override;
41 46
42 private: 47 private:
43 SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix*, const SkRect*); 48 SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix*, const SkRect*);
44 49
45 SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix, cons t int maxTextureSize = 0) const; 50 SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix, cons t int maxTextureSize = 0) const;
(...skipping 22 matching lines...) Expand all
68 SkShader::Context* fBitmapShaderContext; 73 SkShader::Context* fBitmapShaderContext;
69 void* fBitmapShaderContextStorage; 74 void* fBitmapShaderContextStorage;
70 75
71 typedef SkShader::Context INHERITED; 76 typedef SkShader::Context INHERITED;
72 }; 77 };
73 78
74 typedef SkShader INHERITED; 79 typedef SkShader INHERITED;
75 }; 80 };
76 81
77 #endif // SkPictureShader_DEFINED 82 #endif // SkPictureShader_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkLocalMatrixShader.h ('k') | src/core/SkPictureShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698