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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 2414153005: Remove usage of FOR_EACH_OBSERVER macro in gpu (Closed)
Patch Set: 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 | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index 6c3063aa446701217dd7816440b705912ac572be..74b419744071f3172560048b503086c3ec6600b4 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -428,9 +428,8 @@ void GpuCommandBufferStub::Destroy() {
// don't leak resources.
have_context = decoder_->GetGLContext()->MakeCurrent(surface_.get());
}
- FOR_EACH_OBSERVER(DestructionObserver,
- destruction_observers_,
- OnWillDestroyStub());
+ for (auto& observer : destruction_observers_)
+ observer.OnWillDestroyStub();
if (decoder_) {
decoder_->Destroy(have_context);
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698