Home
last modified time | relevance | path

Searched refs:DesktopRect (Results 1 – 25 of 40) sorted by relevance

12

/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_region_unittest.cc26 const DesktopRect rects[], int rects_size) { in CompareRegion()
52 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 0, 0); in TEST()
60 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 3, 4); in TEST()
69 DesktopRect rects[4]; in TEST()
71 { 1, { DesktopRect::MakeXYWH(10, 10, 10, 10) } }, in TEST()
72 { 2, { DesktopRect::MakeXYWH(10, 10, 10, 10), in TEST()
73 DesktopRect::MakeXYWH(30, 10, 10, 15) } }, in TEST()
74 { 2, { DesktopRect::MakeXYWH(10, 10, 10, 10), in TEST()
75 DesktopRect::MakeXYWH(10, 30, 10, 5) } }, in TEST()
76 { 3, { DesktopRect::MakeXYWH(10, 10, 10, 9), in TEST()
[all …]
Dscreen_capturer_helper_unittest.cc24 DesktopRegion region(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F()
36 region.SetRect(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F()
39 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4)).Equals(region)); in TEST_F()
42 DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4))); in TEST_F()
44 DesktopRegion(DesktopRect::MakeXYWH(4, 2, 3, 4))); in TEST_F()
46 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 6, 4)).Equals(region)); in TEST_F()
53 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeWH(12, 34)).Equals(region)); in TEST_F()
71 DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1))); in TEST_F()
73 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1)).Equals(region)); in TEST_F()
77 DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1))); in TEST_F()
[all …]
Ddesktop_geometry.h78 class DesktopRect {
80 static DesktopRect MakeSize(const DesktopSize& size) { in MakeSize()
81 return DesktopRect(0, 0, size.width(), size.height()); in MakeSize()
83 static DesktopRect MakeWH(int32_t width, int32_t height) { in MakeWH()
84 return DesktopRect(0, 0, width, height); in MakeWH()
86 static DesktopRect MakeXYWH(int32_t x, int32_t y, in MakeXYWH()
88 return DesktopRect(x, y, x + width, y + height); in MakeXYWH()
90 static DesktopRect MakeLTRB(int32_t left, int32_t top, in MakeLTRB()
92 return DesktopRect(left, top, right, bottom); in MakeLTRB()
94 static DesktopRect MakeOriginSize(const DesktopVector& origin, in MakeOriginSize()
[all …]
Dcropping_window_capturer_win.cc36 DesktopRect selected_window_rect;
92 DesktopRect intersect_rect = context->selected_window_rect; in TopWindowVerifier()
93 DesktopRect enumerated_desktop_rect = in TopWindowVerifier()
94 DesktopRect::MakeLTRB(enumerated_rect.left, in TopWindowVerifier()
117 DesktopRect GetWindowRectInVirtualScreen() override;
121 DesktopRect window_region_rect_;
158 context.selected_window_rect = DesktopRect::MakeLTRB( in ShouldUseScreenCapturer()
176 DesktopRect rgn_rect = in ShouldUseScreenCapturer()
177 DesktopRect::MakeLTRB(region_rect.left, in ShouldUseScreenCapturer()
193 DesktopRect CroppingWindowCapturerWin::GetWindowRectInVirtualScreen() { in GetWindowRectInVirtualScreen()
[all …]
Ddesktop_region.h75 const DesktopRect& rect() const { return rect_; } in rect()
88 DesktopRect rect_;
92 explicit DesktopRegion(const DesktopRect& rect);
93 DesktopRegion(const DesktopRect* rects, int count);
107 void SetRect(const DesktopRect& rect);
110 void AddRect(const DesktopRect& rect);
111 void AddRects(const DesktopRect* rects, int count);
121 void IntersectWith(const DesktopRect& rect);
127 void Subtract(const DesktopRect& rect);
Ddesktop_geometry.cc17 bool DesktopRect::Contains(const DesktopVector& point) const { in Contains()
22 bool DesktopRect::ContainsRect(const DesktopRect& rect) const { in ContainsRect()
27 void DesktopRect::IntersectWith(const DesktopRect& rect) { in IntersectWith()
40 void DesktopRect::Translate(int32_t dx, int32_t dy) { in Translate()
Dmouse_cursor_monitor_win.cc36 DesktopRect GetScreenRect();
109 DesktopRect original_rect; in Capture()
110 DesktopRect cropped_rect; in Capture()
124 DesktopRect rect = GetScreenRect(); in Capture()
133 DesktopRect MouseCursorMonitorWin::GetScreenRect() { in GetScreenRect()
136 return DesktopRect::MakeXYWH( in GetScreenRect()
146 return DesktopRect(); in GetScreenRect()
154 return DesktopRect(); in GetScreenRect()
156 return DesktopRect::MakeXYWH(device_mode.dmPosition.x, in GetScreenRect()
Dcropped_desktop_frame.cc18 CroppedDesktopFrame(DesktopFrame* frame, const DesktopRect& rect);
27 CreateCroppedDesktopFrame(DesktopFrame* frame, const DesktopRect& rect) { in CreateCroppedDesktopFrame()
28 if (!DesktopRect::MakeSize(frame->size()).ContainsRect(rect)) { in CreateCroppedDesktopFrame()
37 const DesktopRect& rect) in CroppedDesktopFrame()
Ddesktop_frame.cc32 const DesktopRect& dest_rect) { in CopyPixelsFrom()
33 assert(DesktopRect::MakeSize(size()).ContainsRect(dest_rect)); in CopyPixelsFrom()
45 const DesktopRect& dest_rect) { in CopyPixelsFrom()
46 assert(DesktopRect::MakeSize(src_frame.size()).ContainsRect( in CopyPixelsFrom()
47 DesktopRect::MakeOriginSize(src_pos, dest_rect.size()))); in CopyPixelsFrom()
Ddesktop_and_cursor_composer.cc84 DesktopRect target_rect = DesktopRect::MakeSize(cursor.image()->size()); in DesktopFrameWithCursor()
87 target_rect.IntersectWith(DesktopRect::MakeSize(size())); in DesktopFrameWithCursor()
96 DesktopRect::MakeSize(restore_frame_->size())); in DesktopFrameWithCursor()
114 DesktopRect target_rect = DesktopRect::MakeSize(restore_frame_->size()); in ~DesktopFrameWithCursor()
Dscreen_capturer_helper.cc41 invalid_region_.AddRect(DesktopRect::MakeSize(size)); in InvalidateScreen()
58 invalid_region->IntersectWith(DesktopRect::MakeSize(size_most_recent_)); in TakeInvalidRegion()
100 result->AddRect(DesktopRect::MakeLTRB(left, top, right, bottom)); in ExpandToGrid()
Ddesktop_region.cc31 DesktopRegion::DesktopRegion(const DesktopRect& rect) { in DesktopRegion()
35 DesktopRegion::DesktopRegion(const DesktopRect* rects, int count) { in DesktopRegion()
83 void DesktopRegion::SetRect(const DesktopRect& rect) { in SetRect()
88 void DesktopRegion::AddRect(const DesktopRect& rect) { in AddRect()
144 void DesktopRegion::AddRects(const DesktopRect* rects, int count) { in AddRects()
269 void DesktopRegion::IntersectWith(const DesktopRect& rect) { in IntersectWith()
364 void DesktopRegion::Subtract(const DesktopRect& rect) { in Subtract()
565 rect_ = DesktopRect::MakeLTRB(row_span_->left, row_->second->top, in UpdateCurrentRect()
Dscreen_capturer_x11.cc335 updated_region->AddRect(DesktopRect::MakeXYWH( in CaptureScreen()
348 DesktopRect::MakeSize(x_server_pixel_buffer_.window_size())); in CaptureScreen()
357 DesktopRect screen_rect = DesktopRect::MakeSize(frame->size()); in CaptureScreen()
Dscreen_capturer_mac.mm57 DesktopRect ScaleAndRoundCGRect(const CGRect& rect, float scale) {
58 return DesktopRect::MakeLTRB(
72 const DesktopRect& rect) {
132 DesktopRect GetExcludedWindowPixelBounds(CGWindowID window,
168 CGImageRef CreateExcludedWindowRegionImage(const DesktopRect& pixel_bounds,
252 DesktopRect screen_pixel_bounds_;
504 DesktopRect clip_rect = DesktopRect::MakeSize(frame.size());
517 DesktopRect copy_rect = i.rect();
547 DesktopRect copy_rect = i.rect();
609 DesktopRect display_bounds = display_config.pixel_bounds;
[all …]
Ddesktop_frame.h65 const DesktopRect& dest_rect);
68 const DesktopRect& dest_rect);
Dwindow_capturer_win.cc177 DesktopRect original_rect; in Capture()
178 DesktopRect cropped_rect; in Capture()
241 DesktopRect::MakeSize(frame->size())); in Capture()
Ddiffer_unittest.cc157 DesktopRect r = in CheckDirtyRegionContainsRect()
158 DesktopRect::MakeXYWH(x * kBlockSize, y * kBlockSize, in CheckDirtyRegionContainsRect()
179 DesktopRect expected_rect = DesktopRect::MakeXYWH( in MarkBlocksAndCheckMerge()
/external/webrtc/webrtc/modules/desktop_capture/win/
Dscreen_capture_utils.cc57 DesktopRect GetScreenRect(ScreenId screen, const std::wstring& device_key) { in GetScreenRect()
59 return DesktopRect::MakeXYWH(GetSystemMetrics(SM_XVIRTUALSCREEN), in GetScreenRect()
69 return DesktopRect(); in GetScreenRect()
76 return DesktopRect(); in GetScreenRect()
84 return DesktopRect(); in GetScreenRect()
86 return DesktopRect::MakeXYWH(device_mode.dmPosition.x, in GetScreenRect()
Dwindow_capture_utils.cc17 DesktopRect* cropped_rect, in GetCroppedWindowRect()
18 DesktopRect* original_rect) { in GetCroppedWindowRect()
29 *original_rect = DesktopRect::MakeLTRB( in GetCroppedWindowRect()
35 *cropped_rect = DesktopRect::MakeLTRB( in GetCroppedWindowRect()
Dwindow_capture_utils.h22 DesktopRect* cropped_rect,
23 DesktopRect* original_rect);
Dscreen_capturer_win_gdi.cc188 DesktopRect screen_rect(DesktopRect::MakeXYWH( in PrepareCaptureResources()
202 desktop_dc_rect_ = DesktopRect(); in PrepareCaptureResources()
226 DesktopRect screen_rect = in CaptureImage()
Dscreen_capturer_win_magnifier.h29 class DesktopRect; variable
87 bool CaptureImage(const DesktopRect& rect);
/external/webrtc/webrtc/modules/desktop_capture/mac/
Ddesktop_configuration.mm33 DesktopRect NSRectToDesktopRect(const NSRect& ns_rect) {
34 return DesktopRect::MakeLTRB(
41 DesktopRect JoinRects(const DesktopRect& a,
42 const DesktopRect& b) {
43 return DesktopRect::MakeLTRB(
52 void InvertRectYOrigin(const DesktopRect& bounds,
53 DesktopRect* rect) {
55 *rect = DesktopRect::MakeXYWH(
126 DesktopRect primary_bounds = DesktopRect::MakeLTRB(
Ddesktop_configuration.h31 DesktopRect bounds;
34 DesktopRect pixel_bounds;
64 DesktopRect bounds;
67 DesktopRect pixel_bounds;
/external/webrtc/webrtc/modules/desktop_capture/x11/
Dx_server_pixel_buffer.h57 void CaptureRect(const DesktopRect& rect, DesktopFrame* frame);
66 const DesktopRect& rect,
69 const DesktopRect& rect,

12