Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Unified Diff: components/viz/frame_sinks/frame_eviction_manager.cc

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/viz/frame_sinks/frame_eviction_manager.h ('k') | components/viz/frame_sinks/frame_evictor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
« no previous file with comments | « components/viz/frame_sinks/frame_eviction_manager.h ('k') | components/viz/frame_sinks/frame_evictor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698