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

Unified Diff: content/browser/renderer_host/renderer_frame_manager.cc

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 years, 8 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 | « content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/renderer_frame_manager.cc
diff --git a/content/browser/renderer_host/renderer_frame_manager.cc b/content/browser/renderer_host/renderer_frame_manager.cc
index 7650e32f461dd911e8fcd90ffd62b0d41718f044..e8944e4371845e723a5236da79f614a15e64b095 100644
--- a/content/browser/renderer_host/renderer_frame_manager.cc
+++ b/content/browser/renderer_host/renderer_frame_manager.cc
@@ -15,7 +15,7 @@
#include "base/memory/shared_memory.h"
#include "base/sys_info.h"
#include "build/build_config.h"
-#include "content/common/host_shared_bitmap_manager.h"
+#include "components/display_compositor/host_shared_bitmap_manager.h"
#include "content/public/common/content_features.h"
namespace content {
@@ -135,8 +135,9 @@ RendererFrameManager::~RendererFrameManager() {}
void RendererFrameManager::CullUnlockedFrames(size_t saved_frame_limit) {
if (unlocked_frames_.size() + locked_frames_.size() > 0) {
float handles_per_frame =
- HostSharedBitmapManager::current()->AllocatedBitmapCount() * 1.0f /
- (unlocked_frames_.size() + locked_frames_.size());
+ display_compositor::HostSharedBitmapManager::current()
+ ->AllocatedBitmapCount() *
+ 1.0f / (unlocked_frames_.size() + locked_frames_.size());
saved_frame_limit = std::max(
1,
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698