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

Unified Diff: Source/core/page/Page.cpp

Issue 14840015: Lose/restore WebGL contexts if multisampling blackist status changes at runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Forgot to remove DrawingBuffer change Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 8296aa459215a3794cdff5acb962abd45b108b18..3dce2d14aceaa2f6e6ac173d3da4e09bebb45631 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -826,6 +826,24 @@ void Page::captionPreferencesChanged()
frame->document()->captionPreferencesChanged();
}
+Page::MultisamplingChangedObserver::MultisamplingChangedObserver(Page* page)
+ : m_page(page)
+{
+ m_page->m_multisamplingChangedObservers.add(this);
+}
+
+Page::MultisamplingChangedObserver::~MultisamplingChangedObserver()
+{
+ m_page->m_multisamplingChangedObservers.remove(this);
+}
Ken Russell (switch to Gerrit) 2013/05/08 02:17:02 It's confusing to me that the base class Multisamp
+
+void Page::multisamplingChanged()
+{
+ HashSet<MultisamplingChangedObserver*>::iterator stop = m_multisamplingChangedObservers.end();
+ for (HashSet<MultisamplingChangedObserver*>::iterator it = m_multisamplingChangedObservers.begin(); it != stop; ++it)
+ (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled());
abarth-chromium 2013/05/07 22:10:59 Can this call end up executing JavaScript or destr
Ken Russell (switch to Gerrit) 2013/05/08 02:17:02 Actually, it's guaranteed that it doesn't. It star
+}
+
Page::PageClients::PageClients()
: alternativeTextClient(0)
, chromeClient(0)

Powered by Google App Engine
This is Rietveld 408576698