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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved.
9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
10 * 10 *
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 if (contextLostRestoredEventsEnabled()) { 189 if (contextLostRestoredEventsEnabled()) {
190 m_dispatchContextRestoredEventTimer.startOneShot(0, FROM_HERE); 190 m_dispatchContextRestoredEventTimer.startOneShot(0, FROM_HERE);
191 } else { 191 } else {
192 // legacy synchronous context restoration. 192 // legacy synchronous context restoration.
193 reset(); 193 reset();
194 m_isContextLost = false; 194 m_isContextLost = false;
195 } 195 }
196 } 196 }
197 } 197 }
198 198
199 void CanvasRenderingContext2D::trace(Visitor* visitor) 199 DEFINE_TRACE(CanvasRenderingContext2D)
200 { 200 {
201 #if ENABLE(OILPAN) 201 #if ENABLE(OILPAN)
202 visitor->trace(m_stateStack); 202 visitor->trace(m_stateStack);
203 visitor->trace(m_fetchedFonts); 203 visitor->trace(m_fetchedFonts);
204 visitor->trace(m_hitRegionManager); 204 visitor->trace(m_hitRegionManager);
205 #endif 205 #endif
206 CanvasRenderingContext::trace(visitor); 206 CanvasRenderingContext::trace(visitor);
207 } 207 }
208 208
209 void CanvasRenderingContext2D::dispatchContextLostEvent(Timer<CanvasRenderingCon text2D>*) 209 void CanvasRenderingContext2D::dispatchContextLostEvent(Timer<CanvasRenderingCon text2D>*)
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 402
403 void CanvasRenderingContext2D::State::fontsNeedUpdate(CSSFontSelector* fontSelec tor) 403 void CanvasRenderingContext2D::State::fontsNeedUpdate(CSSFontSelector* fontSelec tor)
404 { 404 {
405 ASSERT_ARG(fontSelector, fontSelector == m_font.fontSelector()); 405 ASSERT_ARG(fontSelector, fontSelector == m_font.fontSelector());
406 ASSERT(m_realizedFont); 406 ASSERT(m_realizedFont);
407 407
408 m_font.update(fontSelector); 408 m_font.update(fontSelector);
409 } 409 }
410 410
411 void CanvasRenderingContext2D::State::trace(Visitor* visitor) 411 DEFINE_TRACE(CanvasRenderingContext2D::State)
412 { 412 {
413 visitor->trace(m_strokeStyle); 413 visitor->trace(m_strokeStyle);
414 visitor->trace(m_fillStyle); 414 visitor->trace(m_fillStyle);
415 CSSFontSelectorClient::trace(visitor); 415 CSSFontSelectorClient::trace(visitor);
416 } 416 }
417 417
418 void CanvasRenderingContext2D::realizeSaves(SkCanvas* canvas) 418 void CanvasRenderingContext2D::realizeSaves(SkCanvas* canvas)
419 { 419 {
420 validateStateStack(); 420 validateStateStack();
421 if (state().m_unrealizedSaveCount) { 421 if (state().m_unrealizedSaveCount) {
(...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 if (imageType == NonOpaqueImage) 2478 if (imageType == NonOpaqueImage)
2479 return; 2479 return;
2480 if (alpha < 0xFF) 2480 if (alpha < 0xFF)
2481 return; 2481 return;
2482 } 2482 }
2483 2483
2484 canvas()->buffer()->willOverwriteCanvas(); 2484 canvas()->buffer()->willOverwriteCanvas();
2485 } 2485 }
2486 2486
2487 } // namespace blink 2487 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.h ('k') | Source/core/html/canvas/CanvasStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698