diff options
author | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 11:51:08 +0000 |
---|---|---|
committer | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 11:51:08 +0000 |
commit | 467aca55f38b251b636f638d61408d420d570c11 (patch) | |
tree | fda9063580b467a4a21fd8f1a1bd317991ce1a0b /remoting/base/capture_data.h | |
parent | ab0fb9834c6f3b3ee9d86a8c5a6ba3a5b69b2ac8 (diff) | |
download | chromium_src-467aca55f38b251b636f638d61408d420d570c11.zip chromium_src-467aca55f38b251b636f638d61408d420d570c11.tar.gz chromium_src-467aca55f38b251b636f638d61408d420d570c11.tar.bz2 |
Tidy up after CL 6573005.
Replace width/height pairs with gfx::Size objects.
Avoid overloading Capturer::InvalidateFullScreen.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6635039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/capture_data.h')
-rw-r--r-- | remoting/base/capture_data.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/remoting/base/capture_data.h b/remoting/base/capture_data.h index dd6c4b9..1922c9c 100644 --- a/remoting/base/capture_data.h +++ b/remoting/base/capture_data.h @@ -27,8 +27,7 @@ struct DataPlanes { class CaptureData : public base::RefCountedThreadSafe<CaptureData> { public: CaptureData(const DataPlanes &data_planes, - int width, - int height, + const gfx::Size& size, media::VideoFrame::Format format); // Get the data_planes data of the last capture. @@ -38,15 +37,8 @@ class CaptureData : public base::RefCountedThreadSafe<CaptureData> { // written into |rects|. const InvalidRects& dirty_rects() const { return dirty_rects_; } - // TODO(simonmorris): The next two methods should be replaced by a - // gfx::Size size(), and objects that store that size should also - // use a gfx::Size to do so. - - // Get the width of the image captured. - int width() const { return width_; } - - // Get the height of the image captured. - int height() const { return height_; } + // Return the size of the image captured. + gfx::Size size() const { return size_; } // Get the pixel format of the image captured. media::VideoFrame::Format pixel_format() const { return pixel_format_; } @@ -57,8 +49,7 @@ class CaptureData : public base::RefCountedThreadSafe<CaptureData> { private: const DataPlanes data_planes_; InvalidRects dirty_rects_; - int width_; - int height_; + gfx::Size size_; media::VideoFrame::Format pixel_format_; friend class base::RefCountedThreadSafe<CaptureData>; |