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

Side by Side Diff: Source/core/page/Page.cpp

Issue 117703004: Free temporary GPU and memory resources held by inactive or hidden 2D canvases (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo Created 6 years, 11 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 454
455 if (visibilityState == WebCore::PageVisibilityStateHidden) 455 if (visibilityState == WebCore::PageVisibilityStateHidden)
456 setTimerAlignmentInterval(DOMTimer::hiddenPageAlignmentInterval()); 456 setTimerAlignmentInterval(DOMTimer::hiddenPageAlignmentInterval());
457 else 457 else
458 setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()); 458 setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval());
459 459
460 if (!isInitialState) 460 if (!isInitialState)
461 lifecycleNotifier().notifyPageVisibilityChanged(); 461 lifecycleNotifier().notifyPageVisibilityChanged();
462 462
463 if (!isInitialState && m_mainFrame) 463 if (!isInitialState && m_mainFrame)
464 m_mainFrame->dispatchVisibilityStateChangeEvent(); 464 m_mainFrame->didChangeVisibilityState();
465 } 465 }
466 466
467 PageVisibilityState Page::visibilityState() const 467 PageVisibilityState Page::visibilityState() const
468 { 468 {
469 return m_visibilityState; 469 return m_visibilityState;
470 } 470 }
471 471
472 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r) 472 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r)
473 { 473 {
474 m_multisamplingChangedObservers.add(observer); 474 m_multisamplingChangedObservers.add(observer);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 , backForwardClient(0) 547 , backForwardClient(0)
548 , spellCheckerClient(0) 548 , spellCheckerClient(0)
549 { 549 {
550 } 550 }
551 551
552 Page::PageClients::~PageClients() 552 Page::PageClients::~PageClients()
553 { 553 {
554 } 554 }
555 555
556 } // namespace WebCore 556 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/platform/graphics/Canvas2DImageBufferSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698