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

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

Issue 2570463005: Retire ThreadState::registerPreFinalizer<T>() (Closed)
Patch Set: Created 4 years 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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved.
10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 this, 125 this,
126 &CanvasRenderingContext2D::dispatchContextRestoredEvent), 126 &CanvasRenderingContext2D::dispatchContextRestoredEvent),
127 m_tryRestoreContextEventTimer( 127 m_tryRestoreContextEventTimer(
128 this, 128 this,
129 &CanvasRenderingContext2D::tryRestoreContextEvent), 129 &CanvasRenderingContext2D::tryRestoreContextEvent),
130 m_pruneLocalFontCacheScheduled(false) { 130 m_pruneLocalFontCacheScheduled(false) {
131 if (document.settings() && 131 if (document.settings() &&
132 document.settings()->antialiasedClips2dCanvasEnabled()) 132 document.settings()->antialiasedClips2dCanvasEnabled())
133 m_clipAntialiasing = AntiAliased; 133 m_clipAntialiasing = AntiAliased;
134 setShouldAntialias(true); 134 setShouldAntialias(true);
135 ThreadState::current()->registerPreFinalizer(this);
136 validateStateStack(); 135 validateStateStack();
137 } 136 }
138 137
139 void CanvasRenderingContext2D::setCanvasGetContextResult( 138 void CanvasRenderingContext2D::setCanvasGetContextResult(
140 RenderingContext& result) { 139 RenderingContext& result) {
141 result.setCanvasRenderingContext2D(this); 140 result.setCanvasRenderingContext2D(this);
142 } 141 }
143 142
144 CanvasRenderingContext2D::~CanvasRenderingContext2D() {} 143 CanvasRenderingContext2D::~CanvasRenderingContext2D() {}
145 144
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 } 1153 }
1155 return true; 1154 return true;
1156 } 1155 }
1157 1156
1158 void CanvasRenderingContext2D::resetUsageTracking() { 1157 void CanvasRenderingContext2D::resetUsageTracking() {
1159 UsageCounters newCounters; 1158 UsageCounters newCounters;
1160 m_usageCounters = newCounters; 1159 m_usageCounters = newCounters;
1161 } 1160 }
1162 1161
1163 } // namespace blink 1162 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698