| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 DECLARE_VIRTUAL_TRACE(); | 244 DECLARE_VIRTUAL_TRACE(); |
| 245 | 245 |
| 246 virtual bool isTransformInvertible() const; | 246 virtual bool isTransformInvertible() const; |
| 247 | 247 |
| 248 WebLayer* platformLayer() const override; | 248 WebLayer* platformLayer() const override; |
| 249 | 249 |
| 250 Member<HitRegionManager> m_hitRegionManager; | 250 Member<HitRegionManager> m_hitRegionManager; |
| 251 LostContextMode m_contextLostMode; | 251 LostContextMode m_contextLostMode; |
| 252 bool m_contextRestorable; | 252 bool m_contextRestorable; |
| 253 unsigned m_tryRestoreContextAttemptCount; | 253 unsigned m_tryRestoreContextAttemptCount; |
| 254 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 254 TaskRunnerTimer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
| 255 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 255 TaskRunnerTimer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
| 256 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 256 TaskRunnerTimer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
| 257 | 257 |
| 258 FilterOperations m_filterOperations; | 258 FilterOperations m_filterOperations; |
| 259 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 259 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
| 260 bool m_pruneLocalFontCacheScheduled; | 260 bool m_pruneLocalFontCacheScheduled; |
| 261 ListHashSet<String> m_fontLRUList; | 261 ListHashSet<String> m_fontLRUList; |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, | 264 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, |
| 265 CanvasRenderingContext, | 265 CanvasRenderingContext, |
| 266 context, | 266 context, |
| 267 context->is2d() && context->canvas(), | 267 context->is2d() && context->canvas(), |
| 268 context.is2d() && context.canvas()); | 268 context.is2d() && context.canvas()); |
| 269 | 269 |
| 270 } // namespace blink | 270 } // namespace blink |
| 271 | 271 |
| 272 #endif // CanvasRenderingContext2D_h | 272 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |