Bug 1354434 - Update PuppetWidget::Paint() as to handle WebRenderLayerManager r=mattwoodrow

This commit is contained in:
sotaro
2017-04-11 15:12:35 +09:00
parent 7b632a18ec
commit 4c3d05e101

View File

@@ -1102,7 +1102,8 @@ PuppetWidget::Paint()
"PuppetWidget", 0);
#endif
if (mozilla::layers::LayersBackend::LAYERS_CLIENT == mLayerManager->GetBackendType()) {
if (mLayerManager->GetBackendType() == mozilla::layers::LayersBackend::LAYERS_CLIENT ||
mLayerManager->GetBackendType() == mozilla::layers::LayersBackend::LAYERS_WR) {
// Do nothing, the compositor will handle drawing
if (mTabChild) {
mTabChild->NotifyPainted();