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

Side by Side Diff: Source/platform/graphics/GraphicsTypes.h

Issue 1008173003: Move SkPaint mangement for 2D canvas into CanvasRenderingContext2DState (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixup2 Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 CompositeDestinationIn, 66 CompositeDestinationIn,
67 CompositeDestinationOut, 67 CompositeDestinationOut,
68 CompositeDestinationAtop, 68 CompositeDestinationAtop,
69 CompositeXOR, 69 CompositeXOR,
70 CompositePlusLighter 70 CompositePlusLighter
71 }; 71 };
72 72
73 enum ShadowMode { 73 enum ShadowMode {
74 DrawShadowAndForeground, 74 DrawShadowAndForeground,
75 DrawShadowOnly, 75 DrawShadowOnly,
76 DrawForegroundOnly
77 };
78
79 enum CanvasPaintType {
Stephen White 2015/03/19 20:35:17 Could this (and the CanvasShadowStrategy below) be
Justin Novosad 2015/03/19 21:03:36 They could... These enums are used in the declara
Stephen White 2015/03/19 22:37:26 I don't mind the dependency. I think keeping canva
80 FillPaintType,
81 StrokePaintType,
82 };
83
84 enum CanvasShadowStrategy {
85 DrawLooperShadowStrategy,
86 ImageFilterShadowStrategy,
76 }; 87 };
77 88
78 enum AntiAliasingMode { 89 enum AntiAliasingMode {
79 NotAntiAliased, 90 NotAntiAliased,
80 AntiAliased 91 AntiAliased
81 }; 92 };
82 93
83 enum GradientSpreadMethod { 94 enum GradientSpreadMethod {
84 SpreadMethodPad, 95 SpreadMethodPad,
85 SpreadMethodReflect, 96 SpreadMethodReflect,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 144
134 PLATFORM_EXPORT String textAlignName(TextAlign); 145 PLATFORM_EXPORT String textAlignName(TextAlign);
135 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&); 146 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&);
136 147
137 PLATFORM_EXPORT String textBaselineName(TextBaseline); 148 PLATFORM_EXPORT String textBaselineName(TextBaseline);
138 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&); 149 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&);
139 150
140 } // namespace blink 151 } // namespace blink
141 152
142 #endif 153 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698