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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 66033009: [Android] Add workaround to unbind gpu memory buffer only on NVIDIA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update a more comments Created 7 years, 1 month 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/config/gpu_driver_bug_list_json.cc » ('j') | ui/gl/gl_image.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 0af257a8ebe054e68da5d610775effd7eb14203d..686d822359addf9038ead5cad393a75aed88fa4d 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -5782,7 +5782,8 @@ void GLES2DecoderImpl::DoDidUseTexImageIfNeeded(
"GLES2DecoderImpl::DoDidUseTexImageIfNeeded",
GetErrorState());
glBindTexture(textarget, texture->service_id());
- image->DidUseTexImage();
+ image->DidUseTexImage(
+ workarounds().unbind_image_target_texture_before_lock);
RestoreCurrentTexture2DBindings(&state_);
}
}
@@ -5879,7 +5880,8 @@ void GLES2DecoderImpl::RestoreStateForTextures() {
ScopedGLErrorSuppressor suppressor(
"GLES2DecoderImpl::RestoreStateForTextures", GetErrorState());
glActiveTexture(GL_TEXTURE0 + texture_unit_index);
- image->DidUseTexImage();
+ image->DidUseTexImage(
+ workarounds().unbind_image_target_texture_before_lock);
continue;
}
}
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | ui/gl/gl_image.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698