summaryrefslogtreecommitdiffstats
path: root/remoting/host/capturer_fake.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/capturer_fake.cc')
-rw-r--r--remoting/host/capturer_fake.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/remoting/host/capturer_fake.cc b/remoting/host/capturer_fake.cc
index 0cc0f37..a574457 100644
--- a/remoting/host/capturer_fake.cc
+++ b/remoting/host/capturer_fake.cc
@@ -26,6 +26,7 @@ static const int kBytesPerPixel = 4; // 32 bit RGB is 4 bytes per pixel.
CapturerFake::CapturerFake(MessageLoop* message_loop)
: Capturer(message_loop),
+ bytes_per_row_(0),
box_pos_x_(0),
box_pos_y_(0),
box_speed_x_(kSpeed),
@@ -39,8 +40,8 @@ CapturerFake::~CapturerFake() {
void CapturerFake::ScreenConfigurationChanged() {
width_ = kWidth;
height_ = kHeight;
- pixel_format_ = media::VideoFrame::RGB32;
bytes_per_row_ = width_ * kBytesPerPixel;
+ pixel_format_ = media::VideoFrame::RGB32;
// Create memory for the buffers.
int buffer_size = height_ * bytes_per_row_;
@@ -51,7 +52,7 @@ void CapturerFake::ScreenConfigurationChanged() {
void CapturerFake::CalculateInvalidRects() {
GenerateImage();
- InvalidateFullScreen();
+ InvalidateFullScreen(width_, height_);
}
void CapturerFake::CaptureRects(const InvalidRects& rects,