mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 952977: More gfx::Matrix cleanup in tests r=nical
This commit is contained in:
parent
8a22dac76f
commit
c4fa7513f8
@ -710,9 +710,9 @@ TEST_F(APZCBasicTester, ComplexTransform) {
|
||||
nsIntRegion(nsIntRect(0, 0, 300, 300)),
|
||||
nsIntRegion(nsIntRect(0, 0, 150, 300)),
|
||||
};
|
||||
gfx3DMatrix transforms[] = {
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
Matrix4x4 transforms[] = {
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
};
|
||||
transforms[0].ScalePost(0.5f, 0.5f, 1.0f); // this results from the 2.0 resolution on the root layer
|
||||
transforms[1].ScalePost(2.0f, 1.0f, 1.0f); // this is the 2.0 x-axis CSS transform on the child layer
|
||||
@ -1450,12 +1450,12 @@ CreateTestLayerTree1(nsRefPtr<LayerManager>& aLayerManager, nsTArray<nsRefPtr<La
|
||||
nsIntRegion(nsIntRect(10,10,20,20)),
|
||||
nsIntRegion(nsIntRect(5,5,20,20)),
|
||||
};
|
||||
gfx3DMatrix transforms[] = {
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
Matrix4x4 transforms[] = {
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
};
|
||||
return CreateLayerTree(layerTreeSyntax, layerVisibleRegion, transforms, aLayerManager, aLayers);
|
||||
}
|
||||
@ -1471,11 +1471,11 @@ CreateTestLayerTree2(nsRefPtr<LayerManager>& aLayerManager, nsTArray<nsRefPtr<La
|
||||
nsIntRegion(nsIntRect(10,60,40,40)),
|
||||
nsIntRegion(nsIntRect(10,60,40,40)),
|
||||
};
|
||||
gfx3DMatrix transforms[] = {
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
Matrix4x4 transforms[] = {
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
};
|
||||
return CreateLayerTree(layerTreeSyntax, layerVisibleRegion, transforms, aLayerManager, aLayers);
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ already_AddRefed<Layer> CreateLayer(char aLayerType, LayerManager* aManager) {
|
||||
already_AddRefed<Layer> CreateLayerTree(
|
||||
const char* aLayerTreeDescription,
|
||||
nsIntRegion* aVisibleRegions,
|
||||
const gfx3DMatrix* aTransforms,
|
||||
const Matrix4x4* aTransforms,
|
||||
nsRefPtr<LayerManager>& manager,
|
||||
nsTArray<nsRefPtr<Layer> >& aLayersOut) {
|
||||
|
||||
@ -194,7 +194,7 @@ already_AddRefed<Layer> CreateLayerTree(
|
||||
layer->SetVisibleRegion(aVisibleRegions[layerNumber]);
|
||||
}
|
||||
if (aTransforms) {
|
||||
layer->SetBaseTransform(ToMatrix4x4(aTransforms[layerNumber]));
|
||||
layer->SetBaseTransform(aTransforms[layerNumber]);
|
||||
}
|
||||
aLayersOut.AppendElement(layer);
|
||||
layerNumber++;
|
||||
@ -225,11 +225,11 @@ TEST(Layers, LayerTree) {
|
||||
nsIntRegion(nsIntRect(0,0,100,100)),
|
||||
nsIntRegion(nsIntRect(10,10,20,20)),
|
||||
};
|
||||
gfx3DMatrix transforms[] = {
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
gfx3DMatrix(),
|
||||
Matrix4x4 transforms[] = {
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
Matrix4x4(),
|
||||
};
|
||||
nsTArray<nsRefPtr<Layer> > layers;
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
already_AddRefed<mozilla::layers::Layer> CreateLayerTree(
|
||||
const char* aLayerTreeDescription,
|
||||
nsIntRegion* aVisibleRegions,
|
||||
const gfx3DMatrix* aTransforms,
|
||||
const mozilla::gfx::Matrix4x4* aTransforms,
|
||||
nsRefPtr<mozilla::layers::LayerManager>& aLayerManager,
|
||||
nsTArray<nsRefPtr<mozilla::layers::Layer> >& aLayersOut);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user