Refactor the code in atom_api_web_contents
This commit is contained in:
parent
921aaf9aa3
commit
9d8e510a55
4 changed files with 95 additions and 98 deletions
|
@ -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_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue