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

Side by Side Diff: Source/core/platform/graphics/GraphicsContextState.h

Issue 23102018: Refactoring DrawLooper so that it can apply shadow effects as skia image filters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding missing adoptRefs Created 7 years, 3 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 // Copyright (C) 2013 Google Inc. All rights reserved. 1 // Copyright (C) 2013 Google Inc. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * 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 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer 10 // copyright notice, this list of conditions and the following disclaimer
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Stroke. 109 // Stroke.
110 StrokeData m_strokeData; 110 StrokeData m_strokeData;
111 111
112 // Fill. 112 // Fill.
113 Color m_fillColor; 113 Color m_fillColor;
114 WindRule m_fillRule; 114 WindRule m_fillRule;
115 RefPtr<Gradient> m_fillGradient; 115 RefPtr<Gradient> m_fillGradient;
116 RefPtr<Pattern> m_fillPattern; 116 RefPtr<Pattern> m_fillPattern;
117 117
118 // Shadow. (This will need tweaking if we use draw loopers for other things. ) 118 // Shadow. (This will need tweaking if we use draw loopers for other things. )
119 RefPtr<SkDrawLooper> m_looper; 119 RefPtr<DrawLooper> m_looper;
120 120
121 // Text. (See TextModeFill & friends.) 121 // Text. (See TextModeFill & friends.)
122 TextDrawingModeFlags m_textDrawingMode; 122 TextDrawingModeFlags m_textDrawingMode;
123 123
124 // Common shader state. 124 // Common shader state.
125 float m_alpha; 125 float m_alpha;
126 SkXfermode::Mode m_xferMode; 126 SkXfermode::Mode m_xferMode;
127 127
128 // Compositing control, for the CSS and Canvas compositing spec. 128 // Compositing control, for the CSS and Canvas compositing spec.
129 CompositeOperator m_compositeOperator; 129 CompositeOperator m_compositeOperator;
130 BlendMode m_blendMode; 130 BlendMode m_blendMode;
131 131
132 // If non-empty, the current State is clipped to this image. 132 // If non-empty, the current State is clipped to this image.
133 SkBitmap m_imageBufferClip; 133 SkBitmap m_imageBufferClip;
134 134
135 // If m_imageBufferClip is non-empty, this is the region the image is clippe d to. 135 // If m_imageBufferClip is non-empty, this is the region the image is clippe d to.
136 SkRect m_clip; 136 SkRect m_clip;
137 137
138 // Image interpolation control. 138 // Image interpolation control.
139 InterpolationQuality m_interpolationQuality; 139 InterpolationQuality m_interpolationQuality;
140 140
141 bool m_shouldAntialias : 1; 141 bool m_shouldAntialias : 1;
142 bool m_shouldSmoothFonts : 1; 142 bool m_shouldSmoothFonts : 1;
143 }; 143 };
144 144
145 } // namespace WebCore 145 } // namespace WebCore
146 146
147 #endif // GraphicsContextState_h 147 #endif // GraphicsContextState_h
148 148
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/GraphicsContext.cpp ('k') | Source/core/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698