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

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

Issue 11414091: gpu: also move tex parameters into mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | « gpu/command_buffer/service/texture_definition.cc ('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 8573f3304cc179c9af1b6c9a5548f4d3f1a877d9..36275823e2b064e6e9ee7d525c4cc0c9c734d4cb 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -968,6 +968,11 @@ TextureDefinition* TextureManager::Save(TextureInfo* info) {
return new TextureDefinition(info->target(),
old_service_id,
+ info->min_filter(),
+ info->mag_filter(),
+ info->wrap_s(),
+ info->wrap_t(),
+ info->usage(),
immutable,
level_infos);
}
@@ -1014,6 +1019,11 @@ bool TextureManager::Restore(TextureInfo* info,
glDeleteTextures(1, &old_service_id);
info->SetServiceId(definition->ReleaseServiceId());
info->SetImmutable(definition->immutable());
+ SetParameter(info, GL_TEXTURE_MIN_FILTER, definition->min_filter());
+ SetParameter(info, GL_TEXTURE_MAG_FILTER, definition->mag_filter());
+ SetParameter(info, GL_TEXTURE_WRAP_S, definition->wrap_s());
+ SetParameter(info, GL_TEXTURE_WRAP_T, definition->wrap_t());
+ SetParameter(info, GL_TEXTURE_USAGE_ANGLE, definition->usage());
return true;
}
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698