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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
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 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 AlternativeTextClient* alternativeTextClient() const { return m_alternativeT extClient; } 252 AlternativeTextClient* alternativeTextClient() const { return m_alternativeT extClient; }
253 253
254 PageConsole* console() { return m_console.get(); } 254 PageConsole* console() { return m_console.get(); }
255 255
256 void reportMemoryUsage(MemoryObjectInfo*) const; 256 void reportMemoryUsage(MemoryObjectInfo*) const;
257 257
258 void captionPreferencesChanged(); 258 void captionPreferencesChanged();
259 259
260 double timerAlignmentInterval() const; 260 double timerAlignmentInterval() const;
261 261
262 class MultisamplingChangedObserver {
263 public:
264 virtual void multisamplingChanged(bool) = 0;
265 virtual ~MultisamplingChangedObserver() {}
266 };
267
268 void addMultisamplingChangedObserver(MultisamplingChangedObserver*);
269 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*);
270 void multisamplingChanged();
271
262 private: 272 private:
263 void initGroup(); 273 void initGroup();
264 274
265 #if ASSERT_DISABLED 275 #if ASSERT_DISABLED
266 void checkSubframeCountConsistency() const { } 276 void checkSubframeCountConsistency() const { }
267 #else 277 #else
268 void checkSubframeCountConsistency() const; 278 void checkSubframeCountConsistency() const;
269 #endif 279 #endif
270 280
271 void setTimerAlignmentInterval(double); 281 void setTimerAlignmentInterval(double);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 Region m_topRelevantPaintedRegion; 342 Region m_topRelevantPaintedRegion;
333 Region m_bottomRelevantPaintedRegion; 343 Region m_bottomRelevantPaintedRegion;
334 Region m_relevantUnpaintedRegion; 344 Region m_relevantUnpaintedRegion;
335 bool m_isCountingRelevantRepaintedObjects; 345 bool m_isCountingRelevantRepaintedObjects;
336 #ifndef NDEBUG 346 #ifndef NDEBUG
337 bool m_isPainting; 347 bool m_isPainting;
338 #endif 348 #endif
339 AlternativeTextClient* m_alternativeTextClient; 349 AlternativeTextClient* m_alternativeTextClient;
340 350
341 OwnPtr<PageConsole> m_console; 351 OwnPtr<PageConsole> m_console;
352
353 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
342 }; 354 };
343 355
344 } // namespace WebCore 356 } // namespace WebCore
345 357
346 #endif // Page_h 358 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698