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

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

Issue 8872061: Fixed service side implementation of glTexStorage2DEXT to only initialize the number of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: gpu/command_buffer/service/texture_manager.cc
===================================================================
--- gpu/command_buffer/service/texture_manager.cc (revision 113223)
+++ gpu/command_buffer/service/texture_manager.cc (working copy)
@@ -106,8 +106,7 @@
}
bool TextureManager::TextureInfo::MarkMipmapsGenerated(
- const FeatureInfo* feature_info,
- bool cleared) {
+ const FeatureInfo* feature_info) {
if (!CanGenerateMipmaps(feature_info)) {
return false;
}
@@ -133,7 +132,7 @@
info1.border,
info1.format,
info1.type,
- cleared);
+ true);
}
}
@@ -524,7 +523,7 @@
// needed to be able to call GL correctly.
info.cleared = decoder->ClearLevel(
service_id_, target_, info.target, info.level, info.format, info.type,
- info.width, info.height);
+ info.width, info.height, immutable_);
if (!info.cleared) {
++num_uncleared_mips_;
}
@@ -791,8 +790,7 @@
bool TextureManager::MarkMipmapsGenerated(
const FeatureInfo* feature_info,
- TextureManager::TextureInfo* info,
- bool cleared) {
+ TextureManager::TextureInfo* info) {
DCHECK(info);
if (!info->CanRender(feature_info)) {
DCHECK_NE(0, num_unrenderable_textures_);
@@ -804,7 +802,7 @@
}
num_uncleared_mips_ -= info->num_uncleared_mips();
DCHECK_GE(num_uncleared_mips_, 0);
- bool result = info->MarkMipmapsGenerated(feature_info, cleared);
+ bool result = info->MarkMipmapsGenerated(feature_info);
num_uncleared_mips_ += info->num_uncleared_mips();
if (!info->CanRender(feature_info)) {
++num_unrenderable_textures_;
« no previous file with comments | « gpu/command_buffer/service/texture_manager.h ('k') | gpu/command_buffer/service/texture_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698