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

Unified Diff: cc/test/fake_compositor_frame_sink.cc

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_compositor_frame_sink.cc
diff --git a/cc/test/fake_compositor_frame_sink.cc b/cc/test/fake_compositor_frame_sink.cc
index 2907a1c66aa6f9a3c679fe65106356c93277da0f..91775d3869112cb07d07dcd0288c3af2123ff052 100644
--- a/cc/test/fake_compositor_frame_sink.cc
+++ b/cc/test/fake_compositor_frame_sink.cc
@@ -31,11 +31,7 @@ void FakeCompositorFrameSink::SwapBuffers(CompositorFrame frame) {
auto* frame_data = last_sent_frame_->delegated_frame_data.get();
last_swap_rect_ = frame_data->render_pass_list.back()->damage_rect;
last_swap_rect_valid_ = true;
- } else if (context_provider()) {
- last_swap_rect_ = last_sent_frame_->gl_frame_data->sub_buffer_rect;
- last_swap_rect_valid_ = true;
} else {
- // Unknown for direct software frames.
last_swap_rect_ = gfx::Rect();
last_swap_rect_valid_ = false;
}
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698