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

Unified Diff: client/deps/glbench/src/textureupdatetest.cc

Issue 2809010: Initialize textures for reproducible test results. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Created 10 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/textureupdatetest.cc
diff --git a/client/deps/glbench/src/textureupdatetest.cc b/client/deps/glbench/src/textureupdatetest.cc
index 2bc676b5a16c57f24351c7589de37b08b73dded6..c875ec7abdad1fa015bb1f675ec67aa14099fd3c 100644
--- a/client/deps/glbench/src/textureupdatetest.cc
+++ b/client/deps/glbench/src/textureupdatetest.cc
@@ -133,8 +133,10 @@ bool TextureUpdateTest::Run() {
std::string name = "mtexel_sec_" + flavor_names[f] + "_" +
IntToString(sizes[i]);
width_ = height_ = sizes[i];
- for (int i = 0; i < kNumberOfTextures; ++i)
+ for (int i = 0; i < kNumberOfTextures; ++i) {
pixels_[i].reset(new char[width_ * height_]);
+ memset(pixels_[i].get(), 255, width_ * height_);
+ }
RunTest(this, name.c_str(), width_ * height_, true);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698