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

Unified Diff: cc/surfaces/surface_display_output_surface.cc

Issue 2208693003: Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/surface_display_output_surface.h ('k') | cc/test/failure_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_display_output_surface.cc
diff --git a/cc/surfaces/surface_display_output_surface.cc b/cc/surfaces/surface_display_output_surface.cc
index 294840be307e20f0315fc07ccd150fc10013e419..3b1d59d8aff2ab4bade8e55dac27f516d269ecaf 100644
--- a/cc/surfaces/surface_display_output_surface.cc
+++ b/cc/surfaces/surface_display_output_surface.cc
@@ -75,7 +75,7 @@
factory_.SubmitCompositorFrame(
delegated_surface_id_, std::move(frame),
- base::Bind(&SurfaceDisplayOutputSurface::DidDrawCallback,
+ base::Bind(&SurfaceDisplayOutputSurface::SwapBuffersComplete,
base::Unretained(this)));
}
@@ -153,19 +153,7 @@
SetMemoryPolicy(policy);
}
-void SurfaceDisplayOutputSurface::DisplayWillDrawAndSwap(
- bool will_draw_and_swap,
- const RenderPassList& render_passes) {
- // This notification is not relevant to our client outside of tests.
-}
-
-void SurfaceDisplayOutputSurface::DisplayDidDrawAndSwap() {
- // This notification is not relevant to our client outside of tests. We
- // unblock the client from DidDrawCallback() when the surface is going to
- // be drawn.
-}
-
-void SurfaceDisplayOutputSurface::DidDrawCallback() {
+void SurfaceDisplayOutputSurface::SwapBuffersComplete() {
// TODO(danakj): Why the lost check?
if (!output_surface_lost_)
client_->DidSwapBuffersComplete();
« no previous file with comments | « cc/surfaces/surface_display_output_surface.h ('k') | cc/test/failure_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698