Skip to content

Commit

Permalink
Cleanup compositor code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Apr 15, 2014
1 parent 30f1a81 commit 11f52d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
36 changes: 0 additions & 36 deletions embedding/embedlite/embedthread/EmbedLiteCompositorParent.cpp
Expand Up @@ -248,42 +248,6 @@ void EmbedLiteCompositorParent::ScheduleTask(CancelableTask* task, int time)
}
}

void
EmbedLiteCompositorParent::SetFirstPaintViewport(const nsIntPoint& aOffset,
float aZoom, const nsIntRect& aPageRect,
const gfx::Rect& aCssPageRect)
{
LOGT("t");
EmbedLiteView* view = EmbedLiteApp::GetInstance()->GetViewByID(mId);
NS_ENSURE_TRUE(view, );
view->GetListener()->SetFirstPaintViewport(aOffset, aZoom, aPageRect,
gfxRect(aCssPageRect.x, aCssPageRect.y,
aCssPageRect.width, aCssPageRect.height));
}

void EmbedLiteCompositorParent::SetPageRect(const gfx::Rect& aCssPageRect)
{
LOGT("t");
EmbedLiteView* view = EmbedLiteApp::GetInstance()->GetViewByID(mId);
NS_ENSURE_TRUE(view, );
view->GetListener()->SetPageRect(gfxRect(aCssPageRect.x, aCssPageRect.y,
aCssPageRect.width, aCssPageRect.height));
}

void
EmbedLiteCompositorParent::SyncViewportInfo(const nsIntRect& aDisplayPort, float aDisplayResolution,
bool aLayersUpdated, nsIntPoint& aScrollOffset,
float& aScaleX, float& aScaleY,
gfx::Margin& aFixedLayerMargins)
{
LOGT("t");
EmbedLiteView* view = EmbedLiteApp::GetInstance()->GetViewByID(mId);
NS_ENSURE_TRUE(view, );
view->GetListener()->SyncViewportInfo(aDisplayPort, aDisplayResolution,
aLayersUpdated, aScrollOffset,
aScaleX, aScaleY);
}

} // namespace embedlite
} // namespace mozilla

5 changes: 0 additions & 5 deletions embedding/embedlite/embedthread/EmbedLiteCompositorParent.h
Expand Up @@ -50,11 +50,6 @@ class EmbedLiteCompositorParent : public mozilla::layers::CompositorParent
bool* aSuccess);

virtual void ScheduleTask(CancelableTask*, int);
virtual void SetFirstPaintViewport(const nsIntPoint& aOffset, float aZoom, const nsIntRect& aPageRect, const gfx::Rect& aCssPageRect);
virtual void SetPageRect(const gfx::Rect& aCssPageRect);
virtual void SyncViewportInfo(const nsIntRect& aDisplayPort, float aDisplayResolution, bool aLayersUpdated,
nsIntPoint& aScrollOffset, float& aScaleX, float& aScaleY,
gfx::Margin& aFixedLayerMargins);

void DeferredDestroyCompositor();

Expand Down

0 comments on commit 11f52d5

Please sign in to comment.