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

Unified Diff: content/browser/renderer_host/delegated_frame_host.h

Issue 2811083002: Move frame eviction into components (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
Index: content/browser/renderer_host/delegated_frame_host.h
diff --git a/content/browser/renderer_host/delegated_frame_host.h b/content/browser/renderer_host/delegated_frame_host.h
index 3ac90e8045915af82e50b9d549509d0b54b2b28e..a795eadd901d3f0af3f2985761324afb332b605d 100644
--- a/content/browser/renderer_host/delegated_frame_host.h
+++ b/content/browser/renderer_host/delegated_frame_host.h
@@ -14,9 +14,9 @@
#include "cc/output/copy_output_result.h"
#include "cc/scheduler/begin_frame_source.h"
#include "cc/surfaces/compositor_frame_sink_support_client.h"
+#include "components/viz/frame_sinks/frame_evictor.h"
#include "content/browser/compositor/image_transport_factory.h"
#include "content/browser/compositor/owned_mailbox.h"
-#include "content/browser/renderer_host/delegated_frame_evictor.h"
#include "content/browser/renderer_host/dip_util.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
@@ -82,7 +82,7 @@ class CONTENT_EXPORT DelegatedFrameHost
: public ui::CompositorObserver,
public ui::CompositorVSyncManager::Observer,
public ui::ContextFactoryObserver,
- public DelegatedFrameEvictorClient,
+ public viz::FrameEvictorClient,
public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient),
public base::SupportsWeakPtr<DelegatedFrameHost> {
public:
@@ -105,7 +105,7 @@ class CONTENT_EXPORT DelegatedFrameHost
// ImageTransportFactoryObserver implementation.
void OnLostResources() override;
- // DelegatedFrameEvictorClient implementation.
+ // FrameEvictorClient implementation.
void EvictDelegatedFrame() override;
// cc::CompositorFrameSinkSupportClient implementation.
@@ -324,7 +324,7 @@ class CONTENT_EXPORT DelegatedFrameHost
cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ =
nullptr;
- std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
+ std::unique_ptr<viz::FrameEvictor> frame_evictor_;
};
} // namespace content
« no previous file with comments | « content/browser/renderer_host/delegated_frame_evictor.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698