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

Unified Diff: cc/surfaces/surface_factory.cc

Issue 2779713002: Add a test checking that compositor works in a reused renderer. (Closed)
Patch Set: Reformat test page Created 3 years, 9 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/surfaces/surface_factory.cc
diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
index 880cb8c828a675fe85cd426bfb9caa05355e6cbc..b13d8f86721f0688da3dd8cfdce0903ce6b86cd0 100644
--- a/cc/surfaces/surface_factory.cc
+++ b/cc/surfaces/surface_factory.cc
@@ -105,6 +105,11 @@ void SurfaceFactory::UnrefResources(const ReturnedResourceArray& resources) {
holder_.UnrefResources(resources);
}
+void SurfaceFactory::RunDrawCallbacks() {
+ if (current_surface_)
+ current_surface_->RunDrawCallbacks();
+}
+
void SurfaceFactory::OnReferencedSurfacesChanged(
Surface* surface,
const std::vector<SurfaceId>* active_referenced_surfaces,

Powered by Google App Engine
This is Rietveld 408576698