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

Unified Diff: components/display_compositor/delegated_frame_evictor.cc

Issue 2811083002: Move frame eviction into components (Closed)
Patch Set: 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
Index: components/display_compositor/delegated_frame_evictor.cc
diff --git a/content/browser/renderer_host/delegated_frame_evictor.cc b/components/display_compositor/delegated_frame_evictor.cc
similarity index 81%
rename from content/browser/renderer_host/delegated_frame_evictor.cc
rename to components/display_compositor/delegated_frame_evictor.cc
index 65ae48329323b638eac52fc7723e5beeced2c948..b0669a48a699a5f821fa1df08e019f0a0499256b 100644
--- a/content/browser/renderer_host/delegated_frame_evictor.cc
+++ b/components/display_compositor/delegated_frame_evictor.cc
@@ -2,18 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/renderer_host/delegated_frame_evictor.h"
+#include "components/display_compositor/delegated_frame_evictor.h"
#include "base/logging.h"
-namespace content {
+namespace display_compositor {
DelegatedFrameEvictor::DelegatedFrameEvictor(
DelegatedFrameEvictorClient* client)
- : client_(client), has_frame_(false), visible_(false) {
-}
+ : client_(client), has_frame_(false), visible_(false) {}
-DelegatedFrameEvictor::~DelegatedFrameEvictor() { DiscardedFrame(); }
+DelegatedFrameEvictor::~DelegatedFrameEvictor() {
+ DiscardedFrame();
+}
void DelegatedFrameEvictor::SwappedFrame(bool visible) {
visible_ = visible;
@@ -53,4 +54,4 @@ void DelegatedFrameEvictor::EvictCurrentFrame() {
client_->EvictDelegatedFrame();
}
-} // namespace content
+} // namespace display_compositor

Powered by Google App Engine
This is Rietveld 408576698