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

Unified Diff: content/common/gpu/stream_texture_android.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: comments 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
« no previous file with comments | « content/common/gpu/image_transport_surface_mac.mm ('k') | gpu/command_buffer/service/gl_surface_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/stream_texture_android.cc
diff --git a/content/common/gpu/stream_texture_android.cc b/content/common/gpu/stream_texture_android.cc
index 17d841d8eb1b43a3382be5a5fc20f976af5055ba..2a0f82322b4568eaf725e980c95069c2b56fef88 100644
--- a/content/common/gpu/stream_texture_android.cc
+++ b/content/common/gpu/stream_texture_android.cc
@@ -125,14 +125,6 @@ scoped_ptr<ui::ScopedMakeCurrent> StreamTexture::MakeStubCurrent() {
scoped_ptr<ui::ScopedMakeCurrent> scoped_make_current;
bool needs_make_current =
!owner_stub_->decoder()->GetGLContext()->IsCurrent(NULL);
- // On Android we should not have to perform a real context switch here when
- // using virtual contexts.
- DCHECK(!needs_make_current ||
- !owner_stub_->decoder()
- ->GetContextGroup()
- ->feature_info()
- ->workarounds()
- .use_virtualized_gl_contexts);
if (needs_make_current) {
scoped_make_current.reset(new ui::ScopedMakeCurrent(
owner_stub_->decoder()->GetGLContext(), owner_stub_->surface()));
« no previous file with comments | « content/common/gpu/image_transport_surface_mac.mm ('k') | gpu/command_buffer/service/gl_surface_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698