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

Unified Diff: remoting/host/capturer.cc

Issue 4476003: Add VideoPacket struct for video packets. Refactor Decode interface to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 10 years, 1 month 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
« no previous file with comments | « remoting/host/capturer.h ('k') | remoting/host/capturer_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer.cc
diff --git a/remoting/host/capturer.cc b/remoting/host/capturer.cc
index 9e63041fa4a9cc4def1a11ac7a22e6f02563343a..b66e577260909e1a72fc60740145ec6ec4bcc03c 100644
--- a/remoting/host/capturer.cc
+++ b/remoting/host/capturer.cc
@@ -13,7 +13,7 @@ namespace remoting {
Capturer::Capturer()
: width_(0),
height_(0),
- pixel_format_(PIXEL_FORMAT_INVALID),
+ pixel_format_(media::VideoFrame::INVALID),
bytes_per_row_(0),
current_buffer_(0) {
}
@@ -21,6 +21,21 @@ Capturer::Capturer()
Capturer::~Capturer() {
}
+// Return the width of the screen.
+int Capturer::width() const {
+ return width_;
+}
+
+// Return the height of the screen.
+int Capturer::height() const {
+ return height_;
+}
+
+// Return the pixel format of the screen.
+media::VideoFrame::Format Capturer::pixel_format() const {
+ return pixel_format_;
+}
+
void Capturer::ClearInvalidRects() {
AutoLock auto_inval_rects_lock(inval_rects_lock_);
inval_rects_.clear();
« no previous file with comments | « remoting/host/capturer.h ('k') | remoting/host/capturer_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698