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

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

Issue 2731793002: DelegatedFrameHost should not allocate a new local surface id on frame eviction (Closed)
Patch Set: c Created 3 years, 9 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 | « no previous file | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 01f4f656bd552e6f9d504fca3202b3eb12568f8b..0cba4c46a9ee6d4a2c640f0707efccb85e6a9c52 100644
--- a/content/browser/renderer_host/delegated_frame_host.h
+++ b/content/browser/renderer_host/delegated_frame_host.h
@@ -178,9 +178,7 @@ class CONTENT_EXPORT DelegatedFrameHost
return cc::SurfaceId(frame_sink_id_, local_surface_id_);
}
- const cc::LocalSurfaceId& LocalSurfaceIdForTesting() const {
- return local_surface_id_;
- }
+ bool HasFrameForTesting() const { return has_frame_; }
void OnCompositingDidCommitForTesting(ui::Compositor* compositor) {
OnCompositingDidCommit(compositor);
@@ -339,6 +337,8 @@ class CONTENT_EXPORT DelegatedFrameHost
bool needs_begin_frame_ = false;
+ bool has_frame_ = false;
+
std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
};
« no previous file with comments | « no previous file | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698