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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.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: rebased 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: gpu/command_buffer/service/in_process_command_buffer.cc
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
index 516e5c1c536ed1c08b27213283ca24b955a729c2..ffec97bcfa6035aee6fe6bbf74ea382519b004ff 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.cc
+++ b/gpu/command_buffer/service/in_process_command_buffer.cc
@@ -374,9 +374,9 @@ bool InProcessCommandBuffer::InitializeOnGpuThread(
.use_virtualized_gl_contexts) {
context_ = gl_share_group_->GetSharedContext();
if (!context_.get()) {
- context_ = gfx::GLContext::CreateGLContext(
- gl_share_group_.get(), surface_.get(), params.gpu_preference);
- gl_share_group_->SetSharedContext(context_.get());
+ gl_share_group_->UpdateActiveSharedContext(surface_.get(),
+ params.gpu_preference);
+ context_ = gl_share_group_->GetSharedContext();
}
context_ = new GLContextVirtual(

Powered by Google App Engine
This is Rietveld 408576698