Bug 1259571 - Try tearing-free drawing with GDI r=dvander,mattwoodrow
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include "mozilla/layers/ShadowLayers.h"
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include "mozilla/gfx/DeviceManagerD3D11.h"
|
||||
#include "mozilla/gfx/DeviceManagerDx.h"
|
||||
#include "mozilla/layers/TextureD3D9.h"
|
||||
#include "mozilla/layers/TextureD3D11.h"
|
||||
#include "mozilla/layers/TextureDIB.h"
|
||||
@@ -1040,7 +1040,7 @@ TextureClient::CreateForDrawing(TextureForwarder* aAllocator,
|
||||
(moz2DBackend == gfx::BackendType::DIRECT2D ||
|
||||
moz2DBackend == gfx::BackendType::DIRECT2D1_1 ||
|
||||
(!!(aAllocFlags & ALLOC_FOR_OUT_OF_BAND_CONTENT) &&
|
||||
DeviceManagerD3D11::Get()->GetContentDevice())) &&
|
||||
DeviceManagerDx::Get()->GetContentDevice())) &&
|
||||
aSize.width <= maxTextureSize &&
|
||||
aSize.height <= maxTextureSize)
|
||||
{
|
||||
@@ -1139,7 +1139,7 @@ TextureClient::CreateFromSurface(TextureForwarder* aAllocator,
|
||||
(moz2DBackend == gfx::BackendType::DIRECT2D ||
|
||||
moz2DBackend == gfx::BackendType::DIRECT2D1_1 ||
|
||||
(!!(aAllocFlags & ALLOC_FOR_OUT_OF_BAND_CONTENT) &&
|
||||
DeviceManagerD3D11::Get()->GetContentDevice())) &&
|
||||
DeviceManagerDx::Get()->GetContentDevice())) &&
|
||||
size.width <= maxTextureSize &&
|
||||
size.height <= maxTextureSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user