mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Build fixes and clean up
This commit is contained in:
parent
67c4b7f7be
commit
0fc7c92286
@ -52,9 +52,9 @@ namespace mozilla {
|
|||||||
namespace layers {
|
namespace layers {
|
||||||
|
|
||||||
CompositorParent::CompositorParent(nsIWidget* aWidget)
|
CompositorParent::CompositorParent(nsIWidget* aWidget)
|
||||||
: mPaused(false)
|
: mWidget(aWidget)
|
||||||
, mWidget(aWidget)
|
|
||||||
, mCurrentCompositeTask(NULL)
|
, mCurrentCompositeTask(NULL)
|
||||||
|
, mPaused(false)
|
||||||
{
|
{
|
||||||
MOZ_COUNT_CTOR(CompositorParent);
|
MOZ_COUNT_CTOR(CompositorParent);
|
||||||
}
|
}
|
||||||
@ -182,13 +182,18 @@ CompositorParent::Composite()
|
|||||||
printf_stderr("Correcting for position fixed %i, %i\n", -mScrollOffset.x, -mScrollOffset.y);
|
printf_stderr("Correcting for position fixed %i, %i\n", -mScrollOffset.x, -mScrollOffset.y);
|
||||||
worldTransform.Translate(offset);
|
worldTransform.Translate(offset);
|
||||||
worldTransform.Scale(mXScale, mYScale, 1.0f);
|
worldTransform.Scale(mXScale, mYScale, 1.0f);
|
||||||
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
Layer* layer = GetPrimaryScrollableLayer();
|
Layer* layer = GetPrimaryScrollableLayer();
|
||||||
|
#else
|
||||||
|
Layer* root = mLayerManager->GetRoot();
|
||||||
|
#endif
|
||||||
layer->AsShadowLayer()->SetShadowTransform(worldTransform);
|
layer->AsShadowLayer()->SetShadowTransform(worldTransform);
|
||||||
|
|
||||||
mLayerManager->EndEmptyTransaction();
|
mLayerManager->EndEmptyTransaction();
|
||||||
mLastCompose = mozilla::TimeStamp::Now();
|
mLastCompose = mozilla::TimeStamp::Now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
// Do a breadth-first search to find the first layer in the tree with a
|
// Do a breadth-first search to find the first layer in the tree with a
|
||||||
// displayport set.
|
// displayport set.
|
||||||
Layer*
|
Layer*
|
||||||
@ -218,6 +223,7 @@ CompositorParent::GetPrimaryScrollableLayer()
|
|||||||
|
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Go down shadow layer tree, setting properties to match their non-shadow
|
// Go down shadow layer tree, setting properties to match their non-shadow
|
||||||
// counterparts.
|
// counterparts.
|
||||||
@ -411,12 +417,6 @@ CompositorParent::TestScroll()
|
|||||||
PLayersParent*
|
PLayersParent*
|
||||||
CompositorParent::AllocPLayers(const LayersBackend &backendType)
|
CompositorParent::AllocPLayers(const LayersBackend &backendType)
|
||||||
{
|
{
|
||||||
#ifdef MOZ_WIDGET_ANDROID
|
|
||||||
// Registering with the compositor will create the surface view that
|
|
||||||
// the layer manager expects to attach to.
|
|
||||||
//RegisterCompositorWithJava();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (backendType == LayerManager::LAYERS_OPENGL) {
|
if (backendType == LayerManager::LAYERS_OPENGL) {
|
||||||
nsRefPtr<LayerManagerOGL> layerManager = new LayerManagerOGL(mWidget);
|
nsRefPtr<LayerManagerOGL> layerManager = new LayerManagerOGL(mWidget);
|
||||||
mWidget = NULL;
|
mWidget = NULL;
|
||||||
@ -445,14 +445,6 @@ CompositorParent::DeallocPLayers(PLayersParent* actor)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOZ_WIDGET_ANDROID
|
|
||||||
void
|
|
||||||
CompositorParent::RegisterCompositorWithJava()
|
|
||||||
{
|
|
||||||
mozilla::AndroidBridge::Bridge()->RegisterCompositor();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace layers
|
} // namespace layers
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
||||||
|
@ -114,13 +114,6 @@ private:
|
|||||||
|
|
||||||
// Platform specific functions
|
// Platform specific functions
|
||||||
#ifdef MOZ_WIDGET_ANDROID
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
/**
|
|
||||||
* Register the compositor thread with the Java native thread.
|
|
||||||
* This will replace the temporary compositor with the real
|
|
||||||
* Gecko compositor thread.
|
|
||||||
**/
|
|
||||||
void RegisterCompositorWithJava();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Asks Java for the viewport position and updates the world transform
|
* Asks Java for the viewport position and updates the world transform
|
||||||
* accordingly.
|
* accordingly.
|
||||||
|
Loading…
Reference in New Issue
Block a user