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

Unified Diff: cc/test/fake_output_surface.cc

Issue 2699173002: cc: Make OutputSurfaceFrame::sub_buffer_rect optional (Closed)
Patch Set: 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
Index: cc/test/fake_output_surface.cc
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index cafd10bf00c7fc7e71b47fbe63bdee0670475f0c..07cd5b77019cd014d0b77b910a07369490f8a512 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -45,15 +45,6 @@ void FakeOutputSurface::SwapBuffers(OutputSurfaceFrame frame) {
last_sent_frame_.reset(new OutputSurfaceFrame(std::move(frame)));
++num_sent_frames_;
- if (context_provider()) {
- last_swap_rect_ = last_sent_frame_->sub_buffer_rect;
- last_swap_rect_valid_ = true;
- } else {
- // Unknown for direct software frames.
- last_swap_rect_ = gfx::Rect();
- last_swap_rect_valid_ = false;
- }
-
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&FakeOutputSurface::SwapBuffersAck,
weak_ptr_factory_.GetWeakPtr()));

Powered by Google App Engine
This is Rietveld 408576698