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

Side by Side Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 402433005: Oilpan: Remove support for tracing off-heap HashSets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix deadWrapper number in heap tests. Created 6 years, 5 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
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/html/forms/RadioButtonGroupScope.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) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 void HTMLCanvasElement::notifySurfaceInvalid() 522 void HTMLCanvasElement::notifySurfaceInvalid()
523 { 523 {
524 if (m_context && m_context->is2d()) { 524 if (m_context && m_context->is2d()) {
525 CanvasRenderingContext2D* context2d = toCanvasRenderingContext2D(m_conte xt.get()); 525 CanvasRenderingContext2D* context2d = toCanvasRenderingContext2D(m_conte xt.get());
526 context2d->loseContext(); 526 context2d->loseContext();
527 } 527 }
528 } 528 }
529 529
530 void HTMLCanvasElement::trace(Visitor* visitor) 530 void HTMLCanvasElement::trace(Visitor* visitor)
531 { 531 {
532 #if ENABLE(OILPAN)
532 visitor->trace(m_observers); 533 visitor->trace(m_observers);
533 visitor->trace(m_context); 534 visitor->trace(m_context);
535 #endif
534 DocumentVisibilityObserver::trace(visitor); 536 DocumentVisibilityObserver::trace(visitor);
535 HTMLElement::trace(visitor); 537 HTMLElement::trace(visitor);
536 } 538 }
537 539
538 void HTMLCanvasElement::updateExternallyAllocatedMemory() const 540 void HTMLCanvasElement::updateExternallyAllocatedMemory() const
539 { 541 {
540 int bufferCount = 0; 542 int bufferCount = 0;
541 if (m_imageBuffer) 543 if (m_imageBuffer)
542 bufferCount++; 544 bufferCount++;
543 if (is3D()) 545 if (is3D())
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 { 694 {
693 return !originClean(); 695 return !originClean();
694 } 696 }
695 697
696 FloatSize HTMLCanvasElement::sourceSize() const 698 FloatSize HTMLCanvasElement::sourceSize() const
697 { 699 {
698 return FloatSize(width(), height()); 700 return FloatSize(width(), height());
699 } 701 }
700 702
701 } 703 }
OLDNEW
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/html/forms/RadioButtonGroupScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698