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

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

Issue 1768433003: remove align16 calls in skhader context sizes. will handle this elsewhere as needed (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/SkColorFilterShader.cpp ('k') | src/core/SkComposeShader.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 2007 The Android Open Source Project 2 * Copyright 2007 The Android Open Source Project
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 SkColorShader_DEFINED 8 #ifndef SkColorShader_DEFINED
9 #define SkColorShader_DEFINED 9 #define SkColorShader_DEFINED
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const SkMatrix*, SkFilterQual ity) const override; 50 const SkMatrix*, SkFilterQual ity) const override;
51 #endif 51 #endif
52 52
53 SK_TO_STRING_OVERRIDE() 53 SK_TO_STRING_OVERRIDE()
54 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) 54 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader)
55 55
56 protected: 56 protected:
57 SkColorShader(SkReadBuffer&); 57 SkColorShader(SkReadBuffer&);
58 void flatten(SkWriteBuffer&) const override; 58 void flatten(SkWriteBuffer&) const override;
59 Context* onCreateContext(const ContextRec&, void* storage) const override; 59 Context* onCreateContext(const ContextRec&, void* storage) const override;
60 size_t onContextSize(const ContextRec&) const override { 60 size_t onContextSize(const ContextRec&) const override { return sizeof(Color ShaderContext); }
61 return SkAlign16(sizeof(ColorShaderContext));
62 }
63 bool onAsLuminanceColor(SkColor* lum) const override { 61 bool onAsLuminanceColor(SkColor* lum) const override {
64 *lum = fColor; 62 *lum = fColor;
65 return true; 63 return true;
66 } 64 }
67 65
68 private: 66 private:
69 SkColor fColor; 67 SkColor fColor;
70 68
71 typedef SkShader INHERITED; 69 typedef SkShader INHERITED;
72 }; 70 };
73 71
74 #endif 72 #endif
OLDNEW
« no previous file with comments | « src/core/SkColorFilterShader.cpp ('k') | src/core/SkComposeShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698