\r
gpu_frame_ptr get_frame()\r
{ \r
- frame_ = factory_->create_frame(format_desc_);\r
- __stosd(reinterpret_cast<unsigned long*>(frame_->data()), color_value_, frame_->size() / sizeof(unsigned long));\r
return frame_;\r
}\r
const frame_format_desc& get_frame_format_desc() const { return format_desc_; }\r
\r
void initialize(const frame_factory_ptr& factory)\r
{\r
- factory_ = factory;\r
+ frame_ = factory->create_frame(format_desc_);\r
+ __stosd(reinterpret_cast<unsigned long*>(frame_->data()), color_value_, frame_->size() / sizeof(unsigned long));\r
}\r
\r
frame_format_desc format_desc_;\r
gpu_frame_ptr frame_;\r
unsigned int color_value_;\r
- frame_factory_ptr factory_;\r
};\r
\r
union Color \r