Home
last modified time | relevance | path

Searched refs:DesktopRegion (Results 1 – 23 of 23) sorted by relevance

/external/webrtc/modules/desktop_capture/
Dscreen_capturer_helper_unittest.cc23 DesktopRegion region(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F()
31 DesktopRegion region; in TEST_F()
38 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4)).Equals(region)); in TEST_F()
41 DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4))); in TEST_F()
43 DesktopRegion(DesktopRect::MakeXYWH(4, 2, 3, 4))); in TEST_F()
45 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 6, 4)).Equals(region)); in TEST_F()
49 DesktopRegion region; in TEST_F()
52 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeWH(12, 34)).Equals(region)); in TEST_F()
64 DesktopRegion region; in TEST_F()
66 EXPECT_TRUE(DesktopRegion().Equals(region)); in TEST_F()
[all …]
Ddesktop_region.h28 class RTC_EXPORT DesktopRegion {
72 explicit Iterator(const DesktopRegion& target);
81 const DesktopRegion& region_;
94 DesktopRegion();
95 explicit DesktopRegion(const DesktopRect& rect);
96 DesktopRegion(const DesktopRect* rects, int count);
97 DesktopRegion(const DesktopRegion& other);
98 ~DesktopRegion();
100 DesktopRegion& operator=(const DesktopRegion& other);
104 bool Equals(const DesktopRegion& region) const;
[all …]
Ddesktop_region.cc20 DesktopRegion::RowSpan::RowSpan(int32_t left, int32_t right) in RowSpan()
23 DesktopRegion::Row::Row(const Row&) = default;
24 DesktopRegion::Row::Row(Row&&) = default;
26 DesktopRegion::Row::Row(int32_t top, int32_t bottom) in Row()
29 DesktopRegion::Row::~Row() {} in ~Row()
31 DesktopRegion::DesktopRegion() {} in DesktopRegion() function in webrtc::DesktopRegion
33 DesktopRegion::DesktopRegion(const DesktopRect& rect) { in DesktopRegion() function in webrtc::DesktopRegion
37 DesktopRegion::DesktopRegion(const DesktopRect* rects, int count) { in DesktopRegion() function in webrtc::DesktopRegion
41 DesktopRegion::DesktopRegion(const DesktopRegion& other) { in DesktopRegion() function in webrtc::DesktopRegion
45 DesktopRegion::~DesktopRegion() { in ~DesktopRegion()
[all …]
Ddesktop_region_unittest.cc28 void CompareRegion(const DesktopRegion& region, in CompareRegion()
31 DesktopRegion::Iterator it(region); in CompareRegion()
49 DesktopRegion r; in TEST()
55 DesktopRegion r; in TEST()
63 DesktopRegion r; in TEST()
101 DesktopRegion r; in TEST()
222 DesktopRegion r; in TEST()
246 DesktopRegion base_region; in TEST()
268 DesktopRegion r = base_region; in TEST()
280 for (DesktopRegion::Iterator it(r); !it.IsAtEnd(); it.Advance()) { in TEST()
[all …]
Dscreen_capturer_helper.h36 void InvalidateRegion(const DesktopRegion& invalid_region);
43 void TakeInvalidRegion(DesktopRegion* invalid_region);
64 static void ExpandToGrid(const DesktopRegion& region,
66 DesktopRegion* result);
72 DesktopRegion invalid_region_;
Dscreen_capturer_helper.cc28 const DesktopRegion& invalid_region) { in InvalidateRegion()
38 void ScreenCapturerHelper::TakeInvalidRegion(DesktopRegion* invalid_region) { in TakeInvalidRegion()
47 DesktopRegion expanded_region; in TakeInvalidRegion()
79 void ScreenCapturerHelper::ExpandToGrid(const DesktopRegion& region, in ExpandToGrid()
81 DesktopRegion* result) { in ExpandToGrid()
87 for (DesktopRegion::Iterator it(region); !it.IsAtEnd(); it.Advance()) { in ExpandToGrid()
Ddesktop_frame_generator.cc33 const DesktopRegion& updated_region, in SetUpdatedRegion()
40 for (DesktopRegion::Iterator it(updated_region); !it.IsAtEnd(); in SetUpdatedRegion()
83 DesktopRegion* region, in PaintRegion()
86 for (DesktopRegion::Iterator it(*region); !it.IsAtEnd(); it.Advance()) { in PaintRegion()
119 DesktopRegion updated_region; in GetNextFrame()
171 DesktopRegion* BlackWhiteDesktopFramePainter::updated_region() { in updated_region()
176 DesktopRegion* updated_region) { in Paint()
Ddesktop_frame_generator.h40 virtual bool Paint(DesktopFrame* frame, DesktopRegion* updated_region) = 0;
110 DesktopRegion* updated_region();
113 bool Paint(DesktopFrame* frame, DesktopRegion* updated_region) override;
116 DesktopRegion updated_region_;
Ddesktop_capturer_differ_wrapper_unittest.cc39 DesktopRegion region; in AssertUpdatedRegionIs()
54 DesktopRegion region; in AssertUpdatedRegionCovers()
61 DesktopRegion intersect(region); in AssertUpdatedRegionCovers()
100 DesktopRegion differ(frame.updated_region()); in AssertUpdatedRegionCovers()
102 for (DesktopRegion::Iterator it(differ); !it.IsAtEnd(); it.Advance()) { in AssertUpdatedRegionCovers()
Ddesktop_frame.h67 const DesktopRegion& updated_region() const { return updated_region_; } in updated_region()
68 DesktopRegion* mutable_updated_region() { return &updated_region_; } in mutable_updated_region()
150 DesktopRegion updated_region_;
Ddesktop_capturer_differ_wrapper.cc59 DesktopRegion* const output) { in CompareRow()
117 DesktopRegion* const output) { in CompareFrames()
208 DesktopRegion hints; in OnCaptureResult()
210 for (DesktopRegion::Iterator it(hints); !it.IsAtEnd(); it.Advance()) { in OnCaptureResult()
Dscreen_capturer_integration_test.cc57 DesktopRegion updated_region(frame.updated_region()); in ArePixelsColoredBy()
59 if (!updated_region.Equals(DesktopRegion(rect))) { in ArePixelsColoredBy()
Dscreen_capturer_mac_unittest.cc61 DesktopRegion::Iterator it((*frame)->updated_region()); in CaptureDoneCallback1()
Ddesktop_and_cursor_composer_unittest.cc358 DesktopRegion expected_region; in TEST_F()
392 DesktopRegion expected_region; in TEST_F()
Dscreen_capturer_unittest.cc144 DesktopRegion::Iterator it(frame->updated_region()); in TEST_F()
/external/webrtc/modules/desktop_capture/win/
Ddxgi_output_duplicator.cc177 DesktopRegion updated_region; in Duplicate()
191 for (DesktopRegion::Iterator it(updated_region); !it.IsAtEnd(); in Duplicate()
200 for (DesktopRegion::Iterator it(updated_region); !it.IsAtEnd(); in Duplicate()
219 for (DesktopRegion::Iterator it(updated_region); !it.IsAtEnd(); in Duplicate()
254 DesktopRegion* updated_region) { in DetectUpdatedRegion()
266 DesktopRegion* updated_region) { in DoDetectUpdatedRegion()
Ddxgi_output_duplicator.h88 DesktopRegion* updated_region);
93 DesktopRegion* updated_region);
Ddxgi_context.h25 DesktopRegion updated_region;
Ddxgi_texture.h24 class DesktopRegion; variable
/external/webrtc/modules/desktop_capture/mac/
Dscreen_capturer_mac.h57 bool CgBlit(const DesktopFrame& frame, const DesktopRegion& region);
99 DesktopRegion last_invalid_region_;
Dscreen_capturer_mac.mm229 DesktopRegion region;
295 bool ScreenCapturerMac::CgBlit(const DesktopFrame& frame, const DesktopRegion& region) {
298 if (queue_.previous_frame() && !region.Equals(DesktopRegion(screen_pixel_bounds_))) {
336 DesktopRegion copy_region = region;
375 for (DesktopRegion::Iterator i(copy_region); !i.IsAtEnd(); i.Advance()) {
522 DesktopRegion region;
/external/webrtc/modules/desktop_capture/linux/
Dscreen_capturer_x11.cc358 DesktopRegion* updated_region = frame->mutable_updated_region(); in CaptureScreen()
379 for (DesktopRegion::Iterator it(*updated_region); !it.IsAtEnd(); in CaptureScreen()
429 for (DesktopRegion::Iterator it(last_invalid_region_); !it.IsAtEnd(); in SynchronizeFrame()
Dscreen_capturer_x11.h138 DesktopRegion last_invalid_region_;