Back out changeset 98bd7a8e4705 (bug 1225645) for Windows build bustage

CLOSED TREE
This commit is contained in:
Phil Ringnalda 2015-11-18 18:48:14 -08:00
Родитель 73f2fbe016
Коммит 04f94361ed
3 изменённых файлов: 0 добавлений и 25 удалений

Просмотреть файл

@ -472,9 +472,6 @@ DrawTargetD2D::DrawSurfaceWithShadow(SourceSurface *aSurface,
}
srView = static_cast<SourceSurfaceD2DTarget*>(aSurface)->GetSRView();
if (!srView) {
return;
}
EnsureViews();
@ -762,11 +759,6 @@ DrawTargetD2D::DrawSurfaceWithShadow(SourceSurface *aSurface,
mDevice->Draw(4, 0);
RefPtr<ID3D10ShaderResourceView> srView = static_cast<SourceSurfaceD2DTarget*>(aSurface)->GetSRView();
if (!srView) {
return;
}
mPrivateData->mEffect->GetVariableByName("QuadDesc")->AsVector()->
SetFloatVector(ShaderConstantRectD3D10(-1.0f + ((aDest.x / mSize.width) * 2.0f),
1.0f - (aDest.y / mSize.height * 2.0f),

Просмотреть файл

@ -96,11 +96,6 @@ SourceSurfaceD2DTarget::GetSRView()
return mSRView;
}
if (!Factory::GetDirect3D10Device()) {
gfxCriticalError() << "Invalid D3D10 device in D2D target surface";
return nullptr;
}
HRESULT hr = Factory::GetDirect3D10Device()->CreateShaderResourceView(mTexture, nullptr, getter_AddRefs(mSRView));
if (FAILED(hr)) {

Просмотреть файл

@ -370,9 +370,6 @@ TextureClientD3D11::Unlock()
if (NS_IsMainThread() && mReadbackSink && mTexture10) {
ID3D10Device* device = gfxWindowsPlatform::GetPlatform()->GetD3D10Device();
if (!device) {
return;
}
D3D10_TEXTURE2D_DESC desc;
mTexture10->GetDesc(&desc);
@ -591,9 +588,6 @@ TextureClientD3D11::AllocateForSurface(gfx::IntSize aSize, TextureAllocationFlag
}
} else {
ID3D10Device* device = gfxWindowsPlatform::GetPlatform()->GetD3D10Device();
if (!device) {
return false;
}
CD3D10_TEXTURE2D_DESC newDesc(DXGI_FORMAT_B8G8R8A8_UNORM,
aSize.width, aSize.height, 1, 1,
@ -1241,9 +1235,6 @@ SyncObjectD3D11::FinalizeFrame()
if (!mD3D10Texture && mD3D10SyncedTextures.size()) {
ID3D10Device* device = gfxWindowsPlatform::GetPlatform()->GetD3D10Device();
if (!device) {
return;
}
hr = device->OpenSharedResource(mHandle, __uuidof(ID3D10Texture2D), (void**)(ID3D10Texture2D**)getter_AddRefs(mD3D10Texture));
@ -1314,9 +1305,6 @@ SyncObjectD3D11::FinalizeFrame()
box.back = box.bottom = box.right = 1;
ID3D10Device* device = gfxWindowsPlatform::GetPlatform()->GetD3D10Device();
if (!device) {
return;
}
for (auto iter = mD3D10SyncedTextures.begin(); iter != mD3D10SyncedTextures.end(); iter++) {
device->CopySubresourceRegion(mD3D10Texture, 0, 0, 0, 0, *iter, 0, &box);