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

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

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: Created 7 years, 8 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.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index d58734140d43ce0c6dcfb8c065bed6c6cd680450..c4c6e14d8f2c5f391b2a38c65c1e05f595bd1fe0 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -259,6 +259,16 @@ public:
double timerAlignmentInterval() const;
+ class MultisamplingChangedObserver {
+ public:
+ virtual void multisamplingChanged(bool) = 0;
+ virtual ~MultisamplingChangedObserver() {}
+ };
+
+ void addMultisamplingChangedObserver(MultisamplingChangedObserver*);
+ void removeMultisamplingChangedObserver(MultisamplingChangedObserver*);
+ void multisamplingChanged();
+
private:
void initGroup();
@@ -339,6 +349,8 @@ private:
AlternativeTextClient* m_alternativeTextClient;
OwnPtr<PageConsole> m_console;
+
+ HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698