| 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 #include "remoting/host/video_frame_capturer_helper.h" | 5 #include "remoting/capturer/video_frame_capturer_helper.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 VideoFrameCapturerHelper::VideoFrameCapturerHelper() : | 14 VideoFrameCapturerHelper::VideoFrameCapturerHelper() : |
| 15 size_most_recent_(SkISize::Make(0, 0)), | 15 size_most_recent_(SkISize::Make(0, 0)), |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 bottom = UpToMultiple(bottom, grid_size, grid_size_mask); | 109 bottom = UpToMultiple(bottom, grid_size, grid_size_mask); |
| 110 rects[rectI++] = SkIRect::MakeLTRB(left, top, right, bottom); | 110 rects[rectI++] = SkIRect::MakeLTRB(left, top, right, bottom); |
| 111 } | 111 } |
| 112 // Make the union of the expanded rects. | 112 // Make the union of the expanded rects. |
| 113 scoped_ptr<SkRegion> regionNew(new SkRegion()); | 113 scoped_ptr<SkRegion> regionNew(new SkRegion()); |
| 114 regionNew->setRects(rects.get(), rectNum); | 114 regionNew->setRects(rects.get(), rectNum); |
| 115 return regionNew.Pass(); | 115 return regionNew.Pass(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace remoting | 118 } // namespace remoting |
| OLD | NEW |