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

Side by Side Diff: src/pdf/SkPDFGraphicState.h

Issue 2396953002: Revert[8] "replace SkXfermode obj with SkBlendMode enum in paints" (Closed)
Patch Set: add tmp virtual to unroll legacy arithmodes Created 4 years, 2 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/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFGraphicState.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 2010 The Android Open Source Project 2 * Copyright 2010 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 8
9 #ifndef SkPDFGraphicState_DEFINED 9 #ifndef SkPDFGraphicState_DEFINED
10 #define SkPDFGraphicState_DEFINED 10 #define SkPDFGraphicState_DEFINED
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return 0 == memcmp(&fStrokeWidth, &rhs.fStrokeWidth, 12); 63 return 0 == memcmp(&fStrokeWidth, &rhs.fStrokeWidth, 12);
64 } 64 }
65 uint32_t hash() const { return SkOpts::hash(&fStrokeWidth, 12); } 65 uint32_t hash() const { return SkOpts::hash(&fStrokeWidth, 12); }
66 66
67 private: 67 private:
68 const SkScalar fStrokeWidth; 68 const SkScalar fStrokeWidth;
69 const SkScalar fStrokeMiter; 69 const SkScalar fStrokeMiter;
70 const uint8_t fAlpha; 70 const uint8_t fAlpha;
71 const uint8_t fStrokeCap; // SkPaint::Cap 71 const uint8_t fStrokeCap; // SkPaint::Cap
72 const uint8_t fStrokeJoin; // SkPaint::Join 72 const uint8_t fStrokeJoin; // SkPaint::Join
73 const uint8_t fMode; // SkXfermode::Mode 73 const uint8_t fMode; // SkBlendMode
74 74
75 SkPDFGraphicState(const SkPaint&); 75 SkPDFGraphicState(const SkPaint&);
76 76
77 typedef SkPDFDict INHERITED; 77 typedef SkPDFDict INHERITED;
78 }; 78 };
79 79
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFGraphicState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698