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

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: Missed one of kbr's suggestions in previous patch 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 AlternativeTextClient* alternativeTextClient() const { return m_alternativeT extClient; } 251 AlternativeTextClient* alternativeTextClient() const { return m_alternativeT extClient; }
252 252
253 PageConsole* console() { return m_console.get(); } 253 PageConsole* console() { return m_console.get(); }
254 254
255 void reportMemoryUsage(MemoryObjectInfo*) const; 255 void reportMemoryUsage(MemoryObjectInfo*) const;
256 256
257 void captionPreferencesChanged(); 257 void captionPreferencesChanged();
258 258
259 double timerAlignmentInterval() const; 259 double timerAlignmentInterval() const;
260 260
261 class MultisamplingChangedObserver {
262 public:
263 virtual void multisamplingChanged(bool) = 0;
264 };
265
266 void addMultisamplingChangedObserver(MultisamplingChangedObserver*);
267 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*);
268 void multisamplingChanged();
269
261 private: 270 private:
262 void initGroup(); 271 void initGroup();
263 272
264 #if ASSERT_DISABLED 273 #if ASSERT_DISABLED
265 void checkSubframeCountConsistency() const { } 274 void checkSubframeCountConsistency() const { }
266 #else 275 #else
267 void checkSubframeCountConsistency() const; 276 void checkSubframeCountConsistency() const;
268 #endif 277 #endif
269 278
270 void setTimerAlignmentInterval(double); 279 void setTimerAlignmentInterval(double);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 Region m_topRelevantPaintedRegion; 340 Region m_topRelevantPaintedRegion;
332 Region m_bottomRelevantPaintedRegion; 341 Region m_bottomRelevantPaintedRegion;
333 Region m_relevantUnpaintedRegion; 342 Region m_relevantUnpaintedRegion;
334 bool m_isCountingRelevantRepaintedObjects; 343 bool m_isCountingRelevantRepaintedObjects;
335 #ifndef NDEBUG 344 #ifndef NDEBUG
336 bool m_isPainting; 345 bool m_isPainting;
337 #endif 346 #endif
338 AlternativeTextClient* m_alternativeTextClient; 347 AlternativeTextClient* m_alternativeTextClient;
339 348
340 OwnPtr<PageConsole> m_console; 349 OwnPtr<PageConsole> m_console;
350
351 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
341 }; 352 };
342 353
343 } // namespace WebCore 354 } // namespace WebCore
344 355
345 #endif // Page_h 356 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698