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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.cc

Issue 1499813003: Reland "Added an extra sync token field for extra command buffer..." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed sync token fuzzer parameters Created 5 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
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index d49c7bc61cf52422cea4449dd9aecb18c7a5bb54..0435eadf5f48e345c28109bfabc09b0c27c34d04 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -1204,6 +1204,7 @@ struct FuzzTraits<gpu::SyncToken> {
bool verified_flush = false;
gpu::CommandBufferNamespace namespace_id =
gpu::CommandBufferNamespace::INVALID;
+ int32_t extra_data_field = 0;
uint64_t command_buffer_id = 0;
uint64_t release_count = 0;
@@ -1211,13 +1212,15 @@ struct FuzzTraits<gpu::SyncToken> {
return false;
if (!FuzzParam(&namespace_id, fuzzer))
return false;
+ if (!FuzzParam(&extra_data_field, fuzzer))
+ return false;
if (!FuzzParam(&command_buffer_id, fuzzer))
return false;
if (!FuzzParam(&release_count, fuzzer))
return false;
p->Clear();
- p->Set(namespace_id, command_buffer_id, release_count);
+ p->Set(namespace_id, extra_data_field, command_buffer_id, release_count);
if (verified_flush)
p->SetVerifyFlush();
return true;
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698