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

Unified Diff: gpu/command_buffer/service/shader_translator.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 | « no previous file | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/shader_translator.cc
diff --git a/gpu/command_buffer/service/shader_translator.cc b/gpu/command_buffer/service/shader_translator.cc
index d24a90d35b793d2bada56f476431f82172d4897a..60b6d63692a9ec1d28a909478671f1a9482b2121 100644
--- a/gpu/command_buffer/service/shader_translator.cc
+++ b/gpu/command_buffer/service/shader_translator.cc
@@ -276,9 +276,8 @@ void ShaderTranslator::RemoveDestructionObserver(
}
ShaderTranslator::~ShaderTranslator() {
- FOR_EACH_OBSERVER(DestructionObserver,
- destruction_observers_,
- OnDestruct(this));
+ for (auto& observer : destruction_observers_)
+ observer.OnDestruct(this);
if (compiler_ != NULL)
ShDestruct(compiler_);
« no previous file with comments | « no previous file | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698