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

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

Issue 2649783002: Move CanvasRenderingContext2D timer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Move CanvasRenderingContext2D timer to frame-specific TaskRunnerTimer. Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698