| OLD | NEW | 
|---|
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|