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

Side by Side Diff: remoting/capturer/video_frame_capturer_helper.cc

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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 #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
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
OLDNEW
« no previous file with comments | « remoting/capturer/video_frame_capturer_helper.h ('k') | remoting/capturer/video_frame_capturer_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698