| OLD | NEW |
| 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 Loading... |
| 155 | 155 |
| 156 SkCanvas* drawingCanvas() const final; | 156 SkCanvas* drawingCanvas() const final; |
| 157 SkCanvas* existingDrawingCanvas() const final; | 157 SkCanvas* existingDrawingCanvas() const final; |
| 158 void disableDeferral(DisableDeferralReason) final; | 158 void disableDeferral(DisableDeferralReason) final; |
| 159 | 159 |
| 160 AffineTransform baseTransform() const final; | 160 AffineTransform baseTransform() const final; |
| 161 void didDraw(const SkIRect& dirtyRect) final; | 161 void didDraw(const SkIRect& dirtyRect) final; |
| 162 | 162 |
| 163 bool stateHasFilter() final; | 163 bool stateHasFilter() final; |
| 164 SkImageFilter* stateGetFilter() final; | 164 SkImageFilter* stateGetFilter() final; |
| 165 void snapshotStateForFilter() final; |
| 165 | 166 |
| 166 void validateStateStack() final; | 167 void validateStateStack() final; |
| 167 | 168 |
| 168 private: | 169 private: |
| 169 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; | 170 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; |
| 170 | 171 |
| 171 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr
ibutes& attrs, Document&); | 172 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr
ibutes& attrs, Document&); |
| 172 | 173 |
| 173 void dispose(); | 174 void dispose(); |
| 174 | 175 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 218 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
| 218 bool m_pruneLocalFontCacheScheduled; | 219 bool m_pruneLocalFontCacheScheduled; |
| 219 ListHashSet<String> m_fontLRUList; | 220 ListHashSet<String> m_fontLRUList; |
| 220 }; | 221 }; |
| 221 | 222 |
| 222 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 223 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 223 | 224 |
| 224 } // namespace blink | 225 } // namespace blink |
| 225 | 226 |
| 226 #endif // CanvasRenderingContext2D_h | 227 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |