swr: [rasterizer archrast] move to pass by value
Move to pass by value since most events are very small in size. We can look at pass by reference but will need to create multiple versions to handle temp objects. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
23e459b606
commit
ddc898aaf3
2 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ namespace ArchRast
|
|||
virtual ~EventHandler() {}
|
||||
|
||||
% for name in protos['event_names']:
|
||||
virtual void Handle(${name}&& event) {}
|
||||
virtual void Handle(${name} event) {}
|
||||
% endfor
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ namespace ArchRast
|
|||
% for name in protos['event_names']:
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Handle ${name} event
|
||||
virtual void Handle(${name}&& event)
|
||||
virtual void Handle(${name} event)
|
||||
{
|
||||
% if protos['events'][name]['num_fields'] == 0:
|
||||
Write(${protos['events'][name]['event_id']}, (char*)&event.data, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue