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

Unified Diff: services/ui/surfaces/display_compositor_frame_sink.cc

Issue 2449853004: Getting rid of DelegatedFrameData (Closed)
Patch Set: Created 4 years, 2 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: services/ui/surfaces/display_compositor_frame_sink.cc
diff --git a/services/ui/surfaces/display_compositor_frame_sink.cc b/services/ui/surfaces/display_compositor_frame_sink.cc
index a07524e03076a02d62500925490b8f8ec1c73d1f..bc7bd8353dce00e5fbb06127bf2f244e4e13ecf0 100644
--- a/services/ui/surfaces/display_compositor_frame_sink.cc
+++ b/services/ui/surfaces/display_compositor_frame_sink.cc
@@ -89,8 +89,7 @@ DisplayCompositorFrameSink::~DisplayCompositorFrameSink() {
void DisplayCompositorFrameSink::SubmitCompositorFrame(
cc::CompositorFrame frame,
const base::Callback<void()>& callback) {
- gfx::Size frame_size =
- frame.delegated_frame_data->render_pass_list.back()->output_rect.size();
+ gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size();
if (frame_size.IsEmpty() || frame_size != display_size_) {
if (!local_frame_id_.is_null())
factory_.Destroy(local_frame_id_);

Powered by Google App Engine
This is Rietveld 408576698