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

Unified Diff: media/gpu/avda_picture_buffer_manager.cc

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: auto* Created 4 years, 3 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/service/gpu_command_buffer_stub.cc ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/avda_picture_buffer_manager.cc
diff --git a/media/gpu/avda_picture_buffer_manager.cc b/media/gpu/avda_picture_buffer_manager.cc
index 7d6b5d0049334117ddb4f14964cd5a47a0032d17..50a23b4776891746ae871ae986a2c3f103940346 100644
--- a/media/gpu/avda_picture_buffer_manager.cc
+++ b/media/gpu/avda_picture_buffer_manager.cc
@@ -139,7 +139,8 @@ gl::ScopedJavaSurface AVDAPictureBufferManager::Initialize(
bool using_virtual_context = false;
if (gl::GLContext* context = gl::GLContext::GetCurrent()) {
if (gl::GLShareGroup* share_group = context->share_group())
- using_virtual_context = !!share_group->GetSharedContext();
+ using_virtual_context =
+ !!share_group->GetSharedContext(gl::GLSurface::GetCurrent());
}
UMA_HISTOGRAM_BOOLEAN("Media.AVDA.VirtualContext", using_virtual_context);
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698