Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: media/video/capture/screen/screen_capturer_fake.h

Issue 12096071: Adding a unit test to verify the IPC channel between the network and desktop processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix posix #2 Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | media/video/capture/screen/screen_capturer_fake.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_FAKE_H_ 5 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_FAKE_H_
6 #define MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_FAKE_H_ 6 #define MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_FAKE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
10 #include "media/video/capture/screen/screen_capturer.h" 10 #include "media/video/capture/screen/screen_capturer.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 int bytes_per_row_; 43 int bytes_per_row_;
44 int box_pos_x_; 44 int box_pos_x_;
45 int box_pos_y_; 45 int box_pos_y_;
46 int box_speed_x_; 46 int box_speed_x_;
47 int box_speed_y_; 47 int box_speed_y_;
48 48
49 ScreenCapturerHelper helper_; 49 ScreenCapturerHelper helper_;
50 50
51 // We have two buffers for the screen images as required by Capturer. 51 // We have two buffers for the screen images as required by Capturer.
52 static const int kNumBuffers = 2; 52 static const int kNumBuffers = 2;
53 scoped_array<uint8> buffers_[kNumBuffers]; 53 uint8* buffers_[kNumBuffers];
54 54
55 // The current buffer with valid data for reading. 55 // The current buffer with valid data for reading.
56 int current_buffer_; 56 int current_buffer_;
57 57
58 // Used when |delegate_| implements CreateSharedBuffer().
59 scoped_refptr<SharedBuffer> shared_buffers_[kNumBuffers];
60
61 // Used when |delegate_| does not implement CreateSharedBuffer().
62 scoped_array<uint8> private_buffers_[kNumBuffers];
63
58 DISALLOW_COPY_AND_ASSIGN(ScreenCapturerFake); 64 DISALLOW_COPY_AND_ASSIGN(ScreenCapturerFake);
59 }; 65 };
60 66
61 } // namespace media 67 } // namespace media
62 68
63 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_FAKE_H_ 69 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_FAKE_H_
OLDNEW
« no previous file with comments | « no previous file | media/video/capture/screen/screen_capturer_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698