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

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

Issue 2503203002: Revert "Getting rid of DelegatedFrameData" (Closed)
Patch Set: Created 4 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
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index 5c335fa603b0df94562860aec2cf70c9ab60b294..e12171d6d3dce598477e1c9f8e8b385e28b44547 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -683,9 +683,8 @@ struct FuzzTraits<cc::CompositorFrame> {
switch (RandInRange(2)) {
case 0: {
- if (!FuzzParam(&p->resource_list, fuzzer))
- return false;
- if (!FuzzParam(&p->render_pass_list, fuzzer))
+ p->delegated_frame_data.reset(new cc::DelegatedFrameData());
+ if (!FuzzParam(p->delegated_frame_data.get(), fuzzer))
return false;
return true;
}
@@ -696,6 +695,17 @@ struct FuzzTraits<cc::CompositorFrame> {
}
};
+template <>
+struct FuzzTraits<cc::DelegatedFrameData> {
+ static bool Fuzz(cc::DelegatedFrameData* p, Fuzzer* fuzzer) {
+ if (!FuzzParam(&p->resource_list, fuzzer))
+ return false;
+ if (!FuzzParam(&p->render_pass_list, fuzzer))
+ return false;
+ return true;
+ }
+};
+
template <class A>
struct FuzzTraits<cc::ListContainer<A>> {
static bool Fuzz(cc::ListContainer<A>* p, Fuzzer* fuzzer) {

Powered by Google App Engine
This is Rietveld 408576698