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

Side by Side Diff: src/core/SkLocalMatrixShader.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/SkImageFilter.cpp ('k') | src/core/SkLocalMatrixShader.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 SkLocalMatrixShader_DEFINED 8 #ifndef SkLocalMatrixShader_DEFINED
9 #define SkLocalMatrixShader_DEFINED 9 #define SkLocalMatrixShader_DEFINED
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 if (localMatrix) { 57 if (localMatrix) {
58 *localMatrix = this->getLocalMatrix(); 58 *localMatrix = this->getLocalMatrix();
59 } 59 }
60 return SkRef(fProxyShader.get()); 60 return SkRef(fProxyShader.get());
61 } 61 }
62 62
63 SK_TO_STRING_OVERRIDE() 63 SK_TO_STRING_OVERRIDE()
64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLocalMatrixShader) 64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLocalMatrixShader)
65 65
66 protected: 66 protected:
67 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
67 SkLocalMatrixShader(SkReadBuffer&); 68 SkLocalMatrixShader(SkReadBuffer&);
69 #endif
68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 70 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
69 virtual Context* onCreateContext(const ContextRec&, void*) const SK_OVERRIDE ; 71 virtual Context* onCreateContext(const ContextRec&, void*) const SK_OVERRIDE ;
70 72
71 private: 73 private:
72 SkAutoTUnref<SkShader> fProxyShader; 74 SkAutoTUnref<SkShader> fProxyShader;
73 75
74 typedef SkShader INHERITED; 76 typedef SkShader INHERITED;
75 }; 77 };
76 78
77 #endif 79 #endif
OLDNEW
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/core/SkLocalMatrixShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698