mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1162587 - Part 2: Abort painting a painted layer when a device reset has ocurred. r=jrmuizel
This commit is contained in:
parent
a27dd25d93
commit
5c07a31049
@ -25,6 +25,10 @@
|
||||
#include "gfx2DGlue.h"
|
||||
#include "ReadbackProcessor.h"
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include "gfxWindowsPlatform.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
@ -33,6 +37,13 @@ using namespace mozilla::gfx;
|
||||
void
|
||||
ClientPaintedLayer::PaintThebes()
|
||||
{
|
||||
#ifdef XP_WIN
|
||||
if (gfxWindowsPlatform::GetPlatform()->DidRenderingDeviceReset()) {
|
||||
// If our rendering device has reset simply avoid rendering completely.
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
PROFILER_LABEL("ClientPaintedLayer", "PaintThebes",
|
||||
js::ProfileEntry::Category::GRAPHICS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user