Commit 4e59c58f authored by Mohsen Izadi's avatar Mohsen Izadi Committed by Commit Bot

[cleanup] Remove unused ui::Compositor::SetLatencyInfo()

Last usage of ui::Compositor::SetLatencyInfo() was removed in r564765.

Change-Id: I0f93e7bc5e5473040dc3e4c82dcf42cbded28daa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1925817
Commit-Queue: kylechar <kylechar@chromium.org>
Auto-Submit: Mohsen Izadi <mohsen@chromium.org>
Reviewed-by: default avatarkylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717629}
parent 5f8084f8
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "cc/input/input_handler.h" #include "cc/input/input_handler.h"
#include "cc/layers/layer.h" #include "cc/layers/layer.h"
#include "cc/metrics/begin_main_frame_metrics.h" #include "cc/metrics/begin_main_frame_metrics.h"
#include "cc/trees/latency_info_swap_promise.h"
#include "cc/trees/layer_tree_host.h" #include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_settings.h" #include "cc/trees/layer_tree_settings.h"
#include "components/viz/common/features.h" #include "components/viz/common/features.h"
...@@ -365,12 +364,6 @@ void Compositor::ReenableSwap() { ...@@ -365,12 +364,6 @@ void Compositor::ReenableSwap() {
context_factory_private_->ResizeDisplay(this, size_); context_factory_private_->ResizeDisplay(this, size_);
} }
void Compositor::SetLatencyInfo(const ui::LatencyInfo& latency_info) {
std::unique_ptr<cc::SwapPromise> swap_promise(
new cc::LatencyInfoSwapPromise(latency_info));
host_->QueueSwapPromise(std::move(swap_promise));
}
void Compositor::SetScaleAndSize( void Compositor::SetScaleAndSize(
float scale, float scale,
const gfx::Size& size_in_pixel, const gfx::Size& size_in_pixel,
......
...@@ -74,7 +74,6 @@ class RasterContextProvider; ...@@ -74,7 +74,6 @@ class RasterContextProvider;
namespace ui { namespace ui {
class Compositor; class Compositor;
class LatencyInfo;
class Layer; class Layer;
class Reflector; class Reflector;
class ScopedAnimationDurationScaleMode; class ScopedAnimationDurationScaleMode;
...@@ -283,8 +282,6 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient, ...@@ -283,8 +282,6 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
void DisableSwapUntilResize(); void DisableSwapUntilResize();
void ReenableSwap(); void ReenableSwap();
void SetLatencyInfo(const LatencyInfo& latency_info);
// Sets the compositor's device scale factor and size. // Sets the compositor's device scale factor and size.
void SetScaleAndSize( void SetScaleAndSize(
float scale, float scale,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment