Bug 1259571 - Try tearing-free drawing with GDI r=dvander,mattwoodrow

This commit is contained in:
Sotaro Ikeda
2016-08-07 23:54:12 -07:00
parent 6ecd6b2cc3
commit b1f37d42eb
29 changed files with 319 additions and 89 deletions

View File

@@ -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)
{