Uncomment TransformLayerUserData and move it into Layers to fix build bustage

This commit is contained in:
Patrick Walton 2012-02-10 18:55:48 -08:00
Родитель b92292791a
Коммит b59a4a57f8
4 изменённых файлов: 12 добавлений и 15 удалений

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

@ -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_ */