Refactor the code in atom_api_web_contents

This commit is contained in:
Cheng Zhao 2016-08-03 12:29:55 +09:00
parent 921aaf9aa3
commit 9d8e510a55
4 changed files with 95 additions and 98 deletions

View file

@ -195,7 +195,7 @@ class OffScreenRenderWidgetHostView:
void CreatePlatformWidget();
void DestroyPlatformWidget();
void SetPaintCallback(const atom::OnPaintCallback*);
void SetPaintCallback(const OnPaintCallback& callback);
void OnPaint(const gfx::Rect& damage_rect,
int bitmap_width,
@ -219,7 +219,7 @@ private:
OffScreenOutputDevice* software_output_device_;
const atom::OnPaintCallback* callback_;
const OnPaintCallback callback_;
int frame_rate_;
int frame_rate_threshold_ms_;