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

Side by Side Diff: webrtc/modules/desktop_capture/desktop_geometry.cc

Issue 2202443002: [WebRTC] Add ScreenCapturerDifferWrapper to share Differ across ScreenCapturers (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Sync latest changes Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 } 38 }
39 39
40 void DesktopRect::Translate(int32_t dx, int32_t dy) { 40 void DesktopRect::Translate(int32_t dx, int32_t dy) {
41 left_ += dx; 41 left_ += dx;
42 top_ += dy; 42 top_ += dy;
43 right_ += dx; 43 right_ += dx;
44 bottom_ += dy; 44 bottom_ += dy;
45 } 45 }
46 46
47 void DesktopRect::Extend(int32_t left_offset,
48 int32_t top_offset,
49 int32_t right_offset,
50 int32_t bottom_offset) {
51 left_ -= left_offset;
52 top_ -= top_offset;
53 right_ += right_offset;
54 bottom_ += bottom_offset;
55 }
56
47 } // namespace webrtc 57 } // namespace webrtc
48 58
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/desktop_geometry.h ('k') | webrtc/modules/desktop_capture/differ_block.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698