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

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

Issue 1775153002: Make OffscreenCanvasRenderingContext2D renderable on a worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix non-oilpan build 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void disableDeferral(DisableDeferralReason) final; 155 void disableDeferral(DisableDeferralReason) final;
156 156
157 AffineTransform baseTransform() const final; 157 AffineTransform baseTransform() const final;
158 void didDraw(const SkIRect& dirtyRect) final; 158 void didDraw(const SkIRect& dirtyRect) final;
159 159
160 bool stateHasFilter() final; 160 bool stateHasFilter() final;
161 SkImageFilter* stateGetFilter() final; 161 SkImageFilter* stateGetFilter() final;
162 162
163 void validateStateStack() final; 163 void validateStateStack() final;
164 164
165 void updateFilterReferences(const FilterOperations& filters) final;
166
165 private: 167 private:
166 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; 168 friend class CanvasRenderingContext2DAutoRestoreSkCanvas;
167 169
168 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr ibutes& attrs, Document&); 170 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr ibutes& attrs, Document&);
169 171
170 void dispose(); 172 void dispose();
171 173
172 void dispatchContextLostEvent(Timer<CanvasRenderingContext2D>*); 174 void dispatchContextLostEvent(Timer<CanvasRenderingContext2D>*);
173 void dispatchContextRestoredEvent(Timer<CanvasRenderingContext2D>*); 175 void dispatchContextRestoredEvent(Timer<CanvasRenderingContext2D>*);
174 void tryRestoreContextEvent(Timer<CanvasRenderingContext2D>*); 176 void tryRestoreContextEvent(Timer<CanvasRenderingContext2D>*);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; 216 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
215 bool m_pruneLocalFontCacheScheduled; 217 bool m_pruneLocalFontCacheScheduled;
216 ListHashSet<String> m_fontLRUList; 218 ListHashSet<String> m_fontLRUList;
217 }; 219 };
218 220
219 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 221 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
220 222
221 } // namespace blink 223 } // namespace blink
222 224
223 #endif // CanvasRenderingContext2D_h 225 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698