Reviewed by Dan Bernstein.
Go out of accelerated compositing mode when the drawing area is destroyed
https://bugs.webkit.org/show_bug.cgi?id=53788
This fixes a crash in the UI process if a web process crashes while in accelerated compositing mode.
* UIProcess/DrawingAreaProxyImpl.cpp:
(WebKit::DrawingAreaProxyImpl::~DrawingAreaProxyImpl):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77640
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-02-04 Anders Carlsson <andersca@apple.com>
+
+ Reviewed by Dan Bernstein.
+
+ Go out of accelerated compositing mode when the drawing area is destroyed
+ https://bugs.webkit.org/show_bug.cgi?id=53788
+
+ This fixes a crash in the UI process if a web process crashes while in accelerated compositing mode.
+
+ * UIProcess/DrawingAreaProxyImpl.cpp:
+ (WebKit::DrawingAreaProxyImpl::~DrawingAreaProxyImpl):
+
2011-02-03 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Pavel Feldman.
DrawingAreaProxyImpl::~DrawingAreaProxyImpl()
{
+ // Make sure to exit accelerated compositing mode.
+ if (isInAcceleratedCompositingMode())
+ exitAcceleratedCompositingMode();
}
void DrawingAreaProxyImpl::paint(BackingStore::PlatformGraphicsContext context, const IntRect& rect, Region& unpaintedRegion)