зеркало из https://github.com/mozilla/pjs.git
Uncomment TransformLayerUserData and move it into Layers to fix build bustage
This commit is contained in:
Родитель
b92292791a
Коммит
b59a4a57f8
|
@ -1345,6 +1345,17 @@ protected:
|
||||||
bool mDirty;
|
bool mDirty;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
|
class TransformLayerUserData : public LayerUserData {
|
||||||
|
public:
|
||||||
|
gfx3DMatrix matrix;
|
||||||
|
|
||||||
|
TransformLayerUserData(gfx3DMatrix& aMatrix) : matrix(aMatrix) {}
|
||||||
|
virtual ~TransformLayerUserData() {}
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,14 +186,12 @@ CompositorParent::Composite()
|
||||||
//layer->AsShadowLayer()->SetShadowTransform(worldTransform);
|
//layer->AsShadowLayer()->SetShadowTransform(worldTransform);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifdef MOZ_WIDGET_ANDROID
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
// Hang the transform of the root layer off the layer manager.
|
// Hang the transform of the root layer off the layer manager.
|
||||||
gfx3DMatrix transform = layer->GetTransform();
|
gfx3DMatrix transform = layer->GetTransform();
|
||||||
transform *= worldTransform;
|
transform *= v;
|
||||||
TransformLayerUserData* transformUserData = new TransformLayerUserData(transform);
|
TransformLayerUserData* transformUserData = new TransformLayerUserData(transform);
|
||||||
mLayerManager->SetUserData(nsGkAtoms::transform, transformUserData);
|
mLayerManager->SetUserData(nsGkAtoms::transform, transformUserData);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mLayerManager->EndEmptyTransaction();
|
mLayerManager->EndEmptyTransaction();
|
||||||
|
|
|
@ -694,15 +694,11 @@ AndroidGeckoGLLayerClient::Init(jobject jobj)
|
||||||
void
|
void
|
||||||
AndroidLayerRendererFrame::Init(jobject jobj)
|
AndroidLayerRendererFrame::Init(jobject jobj)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
if (!isNull()) {
|
if (!isNull()) {
|
||||||
Dispose();
|
Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapped_obj = GetJNIForThread()->NewGlobalRef(jobj);
|
wrapped_obj = GetJNIForThread()->NewGlobalRef(jobj);
|
||||||
#else
|
|
||||||
wrapped_obj = jobj;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -260,12 +260,4 @@ private:
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
class TransformLayerUserData : public mozilla::layers::LayerUserData {
|
|
||||||
public:
|
|
||||||
gfx3DMatrix matrix;
|
|
||||||
|
|
||||||
TransformLayerUserData(gfx3DMatrix& aMatrix) : matrix(aMatrix) {}
|
|
||||||
virtual ~TransformLayerUserData() {}
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* NSWINDOW_H_ */
|
#endif /* NSWINDOW_H_ */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче