Avoid extra copy of data in capturePage
This commit is contained in:
parent
24d615d428
commit
9bae54f917
3 changed files with 5 additions and 10 deletions
|
@ -59,8 +59,7 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
|||
public content::WebContentsObserver,
|
||||
public content::NotificationObserver {
|
||||
public:
|
||||
typedef base::Callback<void(const std::vector<unsigned char>& buffer)>
|
||||
CapturePageCallback;
|
||||
typedef base::Callback<void(const SkBitmap& bitmap)> CapturePageCallback;
|
||||
|
||||
class DialogScope {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue