Removed size_ since it's not needed anymore
This commit is contained in:
parent
2610aa60e9
commit
9a0372b61b
2 changed files with 5 additions and 5 deletions
|
@ -4,13 +4,14 @@
|
|||
|
||||
#include "atom/browser/api/frame_subscriber.h"
|
||||
|
||||
#include "atom/common/node_includes.h"
|
||||
#include "base/bind.h"
|
||||
#include "atom/common/node_includes.h"
|
||||
#include "media/base/video_frame.h"
|
||||
#include "media/base/yuv_convert.h"
|
||||
#include "content/public/browser/render_widget_host.h"
|
||||
#include "ui/gfx/screen.h"
|
||||
|
||||
#include "content/public/browser/render_widget_host.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
namespace api {
|
||||
|
@ -22,7 +23,6 @@ FrameSubscriber::FrameSubscriber(v8::Isolate* isolate,
|
|||
const FrameCaptureCallback& callback)
|
||||
: isolate_(isolate), callback_(callback), pending_frames(0), view_(view) {
|
||||
subscriber_ = new Subscriber(this);
|
||||
size_ = view->GetVisibleViewportSize();
|
||||
}
|
||||
|
||||
Subscriber::Subscriber(
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
#define ATOM_BROWSER_API_FRAME_SUBSCRIBER_H_
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
#include "content/public/browser/render_widget_host_view.h"
|
||||
#include "content/public/browser/render_widget_host_view_frame_subscriber.h"
|
||||
#include "content/public/browser/readback_types.h"
|
||||
#include "third_party/skia/include/core/SkBitmap.h"
|
||||
#include "ui/gfx/geometry/size.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
|
@ -50,7 +51,6 @@ class FrameSubscriber {
|
|||
bool RequestDestruct();
|
||||
|
||||
v8::Isolate* isolate_;
|
||||
gfx::Size size_;
|
||||
content::RenderWidgetHostView* view_;
|
||||
FrameCaptureCallback callback_;
|
||||
Subscriber* subscriber_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue