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

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

Issue 2014313002: StreamTextureImages can now override a Texture's service id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/command_buffer/service/texture_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index ba79b2a3890fe5bdce0c3f75fc42ecdc21000f8e..60192add4dbd9e630cdcc737e5577ee6921b65fc 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -1491,6 +1491,9 @@ void Texture::SetLevelImageInternal(GLenum target,
info.stream_texture_image = stream_texture_image;
info.image_state = state;
+ // Reset the unowned service id because if the previously bound image owned
+ // it, it would have become invalid when that image was destructed.
+ SetUnownedServiceId(0);
piman 2016/05/26 22:09:16 I think I understand the semantics this is trying
UpdateCanRenderCondition();
UpdateHasImages();
UpdateEmulatingRGB();
« no previous file with comments | « gpu/command_buffer/service/texture_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698