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

Unified Diff: services/ui/ws/server_window_compositor_frame_sink_manager.cc

Issue 2711043002: Remove latest_submitted_surface_info (Closed)
Patch Set: Remove latest_submitted_surface_info Created 3 years, 10 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 | « services/ui/ws/server_window_compositor_frame_sink_manager.h ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window_compositor_frame_sink_manager.cc
diff --git a/services/ui/ws/server_window_compositor_frame_sink_manager.cc b/services/ui/ws/server_window_compositor_frame_sink_manager.cc
index 29cd7e99873e35f723636498ef1d442c3f5554fa..43a848d14ed0258c86f889f82883d5d8685ed297 100644
--- a/services/ui/ws/server_window_compositor_frame_sink_manager.cc
+++ b/services/ui/ws/server_window_compositor_frame_sink_manager.cc
@@ -109,21 +109,6 @@ void ServerWindowCompositorFrameSinkManager::RemoveChildFrameSinkId(
frame_sink_data_->compositor_frame_sink->RemoveChildFrameSink(frame_sink_id);
}
-gfx::Size ServerWindowCompositorFrameSinkManager::GetLatestFrameSize() const {
- if (!frame_sink_data_)
- return gfx::Size();
-
- return frame_sink_data_->latest_submitted_surface_info.size_in_pixels();
-}
-
-void ServerWindowCompositorFrameSinkManager::SetLatestSurfaceInfo(
- const cc::SurfaceInfo& surface_info) {
- if (!frame_sink_data_)
- frame_sink_data_ = base::MakeUnique<CompositorFrameSinkData>();
-
- frame_sink_data_->latest_submitted_surface_info = surface_info;
-}
-
void ServerWindowCompositorFrameSinkManager::OnRootChanged(
ServerWindow* old_root,
ServerWindow* new_root) {
@@ -146,12 +131,10 @@ CompositorFrameSinkData::~CompositorFrameSinkData() {}
CompositorFrameSinkData::CompositorFrameSinkData(
CompositorFrameSinkData&& other)
- : latest_submitted_surface_info(other.latest_submitted_surface_info),
- compositor_frame_sink(std::move(other.compositor_frame_sink)) {}
+ : compositor_frame_sink(std::move(other.compositor_frame_sink)) {}
CompositorFrameSinkData& CompositorFrameSinkData::operator=(
CompositorFrameSinkData&& other) {
- latest_submitted_surface_info = other.latest_submitted_surface_info;
compositor_frame_sink = std::move(other.compositor_frame_sink);
return *this;
}
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager.h ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698