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

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

Issue 768183002: Revert of Remove SK_SUPPORT_LEGACY_DEEPFLATTENING. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 27 matching lines...) Expand all
38 private: 38 private:
39 SkShader::Context* fShaderContext; 39 SkShader::Context* fShaderContext;
40 40
41 typedef SkShader::Context INHERITED; 41 typedef SkShader::Context INHERITED;
42 }; 42 };
43 43
44 SK_TO_STRING_OVERRIDE() 44 SK_TO_STRING_OVERRIDE()
45 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFilterShader) 45 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFilterShader)
46 46
47 protected: 47 protected:
48 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
49 SkFilterShader(SkReadBuffer&);
50 #endif
48 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 51 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
49 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE; 52 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE;
50 53
51 54
52 private: 55 private:
53 SkShader* fShader; 56 SkShader* fShader;
54 SkColorFilter* fFilter; 57 SkColorFilter* fFilter;
55 58
56 typedef SkShader INHERITED; 59 typedef SkShader INHERITED;
57 }; 60 };
58 61
59 #endif 62 #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