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

Unified Diff: webrtc/modules/desktop_capture/desktop_frame.cc

Issue 1845113002: DirectX based screen capturer logic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Lint errors Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/desktop_frame.cc
diff --git a/webrtc/modules/desktop_capture/desktop_frame.cc b/webrtc/modules/desktop_capture/desktop_frame.cc
index 6bc7b2e38f646f85972926544cd0e35f29e21764..5a37a2ddca7ebdf76f50dc64a4261a7a0dbf3684 100644
--- a/webrtc/modules/desktop_capture/desktop_frame.cc
+++ b/webrtc/modules/desktop_capture/desktop_frame.cc
@@ -28,6 +28,54 @@ DesktopFrame::DesktopFrame(DesktopSize size,
DesktopFrame::~DesktopFrame() {}
+const DesktopSize& DesktopFrame::size() const {
+ return size_;
+}
+
+int DesktopFrame::stride() const {
+ return stride_;
+}
+
+uint8_t* DesktopFrame::data() const {
+ return data_;
+}
+
+SharedMemory* DesktopFrame::shared_memory() const {
+ return shared_memory_;
+}
+
+const DesktopRegion& DesktopFrame::updated_region() const {
+ return updated_region_;
+}
+
+DesktopRegion* DesktopFrame::mutable_updated_region() {
+ return &updated_region_;
+}
+
+const DesktopVector& DesktopFrame::dpi() const {
+ return dpi_;
+}
+
+void DesktopFrame::set_dpi(const DesktopVector& dpi) {
+ dpi_ = dpi;
+}
+
+int64_t DesktopFrame::capture_time_ms() const {
+ return capture_time_ms_;
+}
+
+void DesktopFrame::set_capture_time_ms(int64_t time_ms) {
+ capture_time_ms_ = time_ms;
+}
+
+const DesktopRegion* DesktopFrame::shape() const {
+ return shape_.get();
+}
+
+void DesktopFrame::set_shape(DesktopRegion* shape) {
+ shape_.reset(shape);
+}
+
void DesktopFrame::CopyPixelsFrom(uint8_t* src_buffer, int src_stride,
const DesktopRect& dest_rect) {
assert(DesktopRect::MakeSize(size()).ContainsRect(dest_rect));

Powered by Google App Engine
This is Rietveld 408576698