Removed size_ since it's not needed anymore
authorHeilig Benedek <benecene@gmail.com>
Thu, 25 Feb 2016 22:48:58 +0000 (23:48 +0100)
committerHeilig Benedek <benecene@gmail.com>
Thu, 25 Feb 2016 22:48:58 +0000 (23:48 +0100)
atom/browser/api/frame_subscriber.cc
atom/browser/api/frame_subscriber.h

index ec3bcd0..4653fc4 100644 (file)
@@ -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(
index 745cf38..7029e0e 100644 (file)
@@ -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_;