summaryrefslogtreecommitdiffstats
path: root/media/video/capture/screen/screen_capturer_fake.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/video/capture/screen/screen_capturer_fake.h')
-rw-r--r--media/video/capture/screen/screen_capturer_fake.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/video/capture/screen/screen_capturer_fake.h b/media/video/capture/screen/screen_capturer_fake.h
index 11daad4..69f4dd1 100644
--- a/media/video/capture/screen/screen_capturer_fake.h
+++ b/media/video/capture/screen/screen_capturer_fake.h
@@ -50,11 +50,17 @@ class MEDIA_EXPORT ScreenCapturerFake : public ScreenCapturer {
// We have two buffers for the screen images as required by Capturer.
static const int kNumBuffers = 2;
- scoped_array<uint8> buffers_[kNumBuffers];
+ uint8* buffers_[kNumBuffers];
// The current buffer with valid data for reading.
int current_buffer_;
+ // Used when |delegate_| implements CreateSharedBuffer().
+ scoped_refptr<SharedBuffer> shared_buffers_[kNumBuffers];
+
+ // Used when |delegate_| does not implement CreateSharedBuffer().
+ scoped_array<uint8> private_buffers_[kNumBuffers];
+
DISALLOW_COPY_AND_ASSIGN(ScreenCapturerFake);
};