Commit 0713dc0d authored by Hiroyuki Ikezoe's avatar Hiroyuki Ikezoe
Browse files

Bug 1738385 - Drop APZSampler::AdvanceAnimations and relevant stuff. r=tnikkel

parent f7bfaba7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -65,8 +65,6 @@ class APZSampler {
  void SampleForWebRender(const Maybe<VsyncId>& aGeneratedFrameId,
                          wr::TransactionWrapper& aTxn);

  bool AdvanceAnimations(const SampleTime& aSampleTime);

  /**
   * Similar to above GetCurrentAsyncTransform, but get the current transform
   * with LayersId and ViewID.
+0 −5
Original line number Diff line number Diff line
@@ -899,11 +899,6 @@ void APZCTreeManager::SampleForWebRender(const Maybe<VsyncId>& aVsyncId,
  aTxn.AppendTransformProperties(transforms);
}

bool APZCTreeManager::AdvanceAnimations(const SampleTime& aSampleTime) {
  MutexAutoLock lock(mMapLock);
  return AdvanceAnimationsInternal(lock, aSampleTime);
}

ParentLayerRect APZCTreeManager::ComputeClippedCompositionBounds(
    const MutexAutoLock& aProofOfMapLock, ClippedCompositionBoundsMap& aDestMap,
    ScrollableLayerGuid aGuid) {
+0 −7
Original line number Diff line number Diff line
@@ -195,13 +195,6 @@ class APZCTreeManager : public IAPZCTreeManager, public APZInputBridge {
                          wr::TransactionWrapper& aTxn,
                          const SampleTime& aSampleTime);

  /**
   * Walk through all the APZCs and do the sampling steps needed when
   * advancing to the next frame. The APZCs walked can be restricted to a
   * specific render root by providing that as the first argument.
   */
  bool AdvanceAnimations(const SampleTime& aSampleTime);

  /**
   * Refer to the documentation of APZInputBridge::ReceiveInputEvent() and
   * APZEventResult.
+0 −6
Original line number Diff line number Diff line
@@ -101,12 +101,6 @@ void APZSampler::SampleForWebRender(const Maybe<VsyncId>& aVsyncId,
  mApz->SampleForWebRender(aVsyncId, aTxn, sampleTime);
}

bool APZSampler::AdvanceAnimations(const SampleTime& aSampleTime) {
  MOZ_ASSERT(CompositorThreadHolder::IsInCompositorThread());
  AssertOnSamplerThread();
  return mApz->AdvanceAnimations(aSampleTime);
}

AsyncTransform APZSampler::GetCurrentAsyncTransform(
    const LayersId& aLayersId, const ScrollableLayerGuid::ViewID& aScrollId,
    AsyncTransformComponents aComponents) const {