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

Unified Diff: cc/test/test_delegating_output_surface.cc

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed TestDelegatingOutputSurface Created 4 years, 5 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_id_allocator.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_delegating_output_surface.cc
diff --git a/cc/test/test_delegating_output_surface.cc b/cc/test/test_delegating_output_surface.cc
index 15fca6c14cf857cfc899f5435236b786cec5a60b..2472120e670d00aa72afaa203d5176cff7632912 100644
--- a/cc/test/test_delegating_output_surface.cc
+++ b/cc/test/test_delegating_output_surface.cc
@@ -56,10 +56,15 @@ TestDelegatingOutputSurface::TestDelegatingOutputSurface(
capabilities_.delegated_sync_points_required =
!context_shared_with_compositor;
- surface_id_allocator_->RegisterSurfaceClientId(surface_manager_.get());
+ surface_manager_->RegisterSurfaceClientId(surface_id_allocator_->client_id());
}
-TestDelegatingOutputSurface::~TestDelegatingOutputSurface() {}
+TestDelegatingOutputSurface::~TestDelegatingOutputSurface() {
+ if (surface_manager_) {
+ surface_manager_->InvalidateSurfaceClientId(
danakj 2016/07/22 03:02:19 Why is this here and not in DetachOutputSurface wh
Fady Samuel 2016/07/22 12:23:38 It should absolutely be next to UnregisterSurfaceF
+ surface_id_allocator_->client_id());
+ }
+}
bool TestDelegatingOutputSurface::BindToClient(OutputSurfaceClient* client) {
if (!OutputSurface::BindToClient(client))
« no previous file with comments | « cc/surfaces/surface_id_allocator.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698