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 REMOTING_HOST_VIDEO_FRAME_CAPTURER_HELPER_H_ | 5 #ifndef REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_HELPER_H_ |
6 #define REMOTING_HOST_VIDEO_FRAME_CAPTURER_HELPER_H_ | 6 #define REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_HELPER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "third_party/skia/include/core/SkRegion.h" | 10 #include "third_party/skia/include/core/SkRegion.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 // VideoFrameCapturerHelper is intended to be used by an implementation of the | 14 // VideoFrameCapturerHelper is intended to be used by an implementation of the |
15 // VideoFrameCapturer interface. It maintains a thread-safe invalid region, and | 15 // VideoFrameCapturer interface. It maintains a thread-safe invalid region, and |
16 // the size of the most recently captured screen, on behalf of the | 16 // the size of the most recently captured screen, on behalf of the |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // The log (base 2) of the size of the grid to which the invalid region is | 73 // The log (base 2) of the size of the grid to which the invalid region is |
74 // expanded. | 74 // expanded. |
75 // If the value is <= 0, then the invalid region is not expanded to a grid. | 75 // If the value is <= 0, then the invalid region is not expanded to a grid. |
76 int log_grid_size_; | 76 int log_grid_size_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerHelper); | 78 DISALLOW_COPY_AND_ASSIGN(VideoFrameCapturerHelper); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace remoting | 81 } // namespace remoting |
82 | 82 |
83 #endif // REMOTING_HOST_VIDEO_FRAME_CAPTURER_HELPER_H_ | 83 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_HELPER_H_ |
OLD | NEW |