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

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: Changed settings to pass by const reference 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
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContext.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index 330a68586c537a53f3c131836951154241ede8b5..1c6b21c0c1473ffbaffcee7c52b950b6d4139642 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -254,6 +254,15 @@ public:
double timerAlignmentInterval() const;
+ class MultisamplingChangedObserver {
+ public:
+ virtual void multisamplingChanged(bool) = 0;
+ };
+
+ void addMultisamplingChangedObserver(MultisamplingChangedObserver*);
+ void removeMultisamplingChangedObserver(MultisamplingChangedObserver*);
+ void multisamplingChanged();
+
private:
void initGroup();
@@ -333,6 +342,8 @@ private:
#endif
OwnPtr<PageConsole> m_console;
+
+ HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
};
} // namespace WebCore
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContext.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698