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

Unified Diff: ui/gl/gl_share_group.cc

Issue 1652873002: Android: Use virtualized context only for those with compatible config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment addressed Created 4 years, 10 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: ui/gl/gl_share_group.cc
diff --git a/ui/gl/gl_share_group.cc b/ui/gl/gl_share_group.cc
index dd424a54fe947915e80b36636ae440891387357d..d5ab43db03bf6b1dc904d10be5171f4ff0dab0b4 100644
--- a/ui/gl/gl_share_group.cc
+++ b/ui/gl/gl_share_group.cc
@@ -37,11 +37,9 @@ void* GLShareGroup::GetHandle() {
}
GLContext* GLShareGroup::GetContext() {
- for (ContextSet::iterator it = contexts_.begin();
- it != contexts_.end();
- ++it) {
- if ((*it)->GetHandle())
- return *it;
+ for (auto context : contexts_) {
+ if (context->GetHandle())
+ return context;
}
return NULL;

Powered by Google App Engine
This is Rietveld 408576698