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

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

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 4 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/SkEmptyShader.h ('k') | src/core/SkFilterShader.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 2012 Google Inc. 2 * Copyright 2012 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 SkFilterShader_DEFINED 8 #ifndef SkFilterShader_DEFINED
9 #define SkFilterShader_DEFINED 9 #define SkFilterShader_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 private: 33 private:
34 SkShader::Context* fShaderContext; 34 SkShader::Context* fShaderContext;
35 35
36 typedef SkShader::Context INHERITED; 36 typedef SkShader::Context INHERITED;
37 }; 37 };
38 38
39 SK_TO_STRING_OVERRIDE() 39 SK_TO_STRING_OVERRIDE()
40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFilterShader) 40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFilterShader)
41 41
42 protected: 42 protected:
43 SkFilterShader(SkReadBuffer& ); 43 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
44 SkFilterShader(SkReadBuffer&);
45 #endif
44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 46 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
45 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE; 47 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE;
46 48
47 49
48 private: 50 private:
49 SkShader* fShader; 51 SkShader* fShader;
50 SkColorFilter* fFilter; 52 SkColorFilter* fFilter;
51 53
52 typedef SkShader INHERITED; 54 typedef SkShader INHERITED;
53 }; 55 };
54 56
55 #endif 57 #endif
OLDNEW
« no previous file with comments | « src/core/SkEmptyShader.h ('k') | src/core/SkFilterShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698