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

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

Issue 1463673004: gpu: Update translated shader source after link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed zmo's feedback Created 5 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/command_buffer/service/shader_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/program_manager.cc
diff --git a/gpu/command_buffer/service/program_manager.cc b/gpu/command_buffer/service/program_manager.cc
index 83f4e3945a25deb531b6916e2f2ce9a9e46f2e14..233eb4eef44caffc59e8663de8b94e172073cd02 100644
--- a/gpu/command_buffer/service/program_manager.cc
+++ b/gpu/command_buffer/service/program_manager.cc
@@ -871,6 +871,10 @@ bool Program::Link(ShaderManager* manager,
GatherInterfaceBlockInfo();
Update();
if (link) {
+ // ANGLE updates the translated shader sources on link.
+ for (auto shader : attached_shaders_) {
+ shader->RefreshTranslatedShaderSource();
+ }
if (cache) {
cache->SaveLinkedProgram(service_id(),
attached_shaders_[0].get(),
« no previous file with comments | « no previous file | gpu/command_buffer/service/shader_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698