| Index: components/viz/frame_sinks/frame_eviction_manager.cc
|
| diff --git a/components/viz/frame_sinks/frame_eviction_manager.cc b/components/viz/frame_sinks/frame_eviction_manager.cc
|
| index 625f7ea89250efc2b31d72295134b6692ff759a1..be419fd3197b0fb44f1633c2a61bf57e66091bb3 100644
|
| --- a/components/viz/frame_sinks/frame_eviction_manager.cc
|
| +++ b/components/viz/frame_sinks/frame_eviction_manager.cc
|
| @@ -15,7 +15,7 @@
|
| #include "base/memory/shared_memory.h"
|
| #include "base/sys_info.h"
|
| #include "build/build_config.h"
|
| -#include "components/display_compositor/host_shared_bitmap_manager.h"
|
| +#include "components/viz/display_compositor/host_shared_bitmap_manager.h"
|
|
|
| namespace viz {
|
| namespace {
|
| @@ -134,9 +134,8 @@ FrameEvictionManager::~FrameEvictionManager() {}
|
| void FrameEvictionManager::CullUnlockedFrames(size_t saved_frame_limit) {
|
| if (unlocked_frames_.size() + locked_frames_.size() > 0) {
|
| float handles_per_frame =
|
| - display_compositor::HostSharedBitmapManager::current()
|
| - ->AllocatedBitmapCount() *
|
| - 1.0f / (unlocked_frames_.size() + locked_frames_.size());
|
| + HostSharedBitmapManager::current()->AllocatedBitmapCount() * 1.0f /
|
| + (unlocked_frames_.size() + locked_frames_.size());
|
|
|
| saved_frame_limit = std::max(
|
| 1, static_cast<int>(std::min(static_cast<float>(saved_frame_limit),
|
|
|