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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 1886063002: Make canvas filters use the font size in effect when the filter is set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 SkCanvas* drawingCanvas() const final; 157 SkCanvas* drawingCanvas() const final;
158 SkCanvas* existingDrawingCanvas() const final; 158 SkCanvas* existingDrawingCanvas() const final;
159 void disableDeferral(DisableDeferralReason) final; 159 void disableDeferral(DisableDeferralReason) final;
160 160
161 AffineTransform baseTransform() const final; 161 AffineTransform baseTransform() const final;
162 void didDraw(const SkIRect& dirtyRect) final; 162 void didDraw(const SkIRect& dirtyRect) final;
163 163
164 bool stateHasFilter() final; 164 bool stateHasFilter() final;
165 SkImageFilter* stateGetFilter() final; 165 SkImageFilter* stateGetFilter() final;
166 void snapshotStateForFilter() final;
166 167
167 void validateStateStack() final; 168 void validateStateStack() final;
168 169
169 private: 170 private:
170 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; 171 friend class CanvasRenderingContext2DAutoRestoreSkCanvas;
171 172
172 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr ibutes& attrs, Document&); 173 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr ibutes& attrs, Document&);
173 174
174 void dispose(); 175 void dispose();
175 176
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; 219 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
219 bool m_pruneLocalFontCacheScheduled; 220 bool m_pruneLocalFontCacheScheduled;
220 ListHashSet<String> m_fontLRUList; 221 ListHashSet<String> m_fontLRUList;
221 }; 222 };
222 223
223 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 224 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
224 225
225 } // namespace blink 226 } // namespace blink
226 227
227 #endif // CanvasRenderingContext2D_h 228 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698