diff options
author | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 16:54:48 +0000 |
---|---|---|
committer | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 16:54:48 +0000 |
commit | d8a6ca901e27fe58e1385492b0fc0cc8bbccaa10 (patch) | |
tree | 97322432de7e2381eb065cc3af19d53abba6e2f3 /remoting/host/capturer_gdi.h | |
parent | 804443aef39615edd5b731aa5bfb3c611aeae697 (diff) | |
download | chromium_src-d8a6ca901e27fe58e1385492b0fc0cc8bbccaa10.zip chromium_src-d8a6ca901e27fe58e1385492b0fc0cc8bbccaa10.tar.gz chromium_src-d8a6ca901e27fe58e1385492b0fc0cc8bbccaa10.tar.bz2 |
Revert 76747 - Let the host change resolution.
The screen size flows through the video pipeline, instead of
being set statically when that pipeline is constructed.
Only the Windows host actually detects when the screen size has changed.
BUG=72469
TEST=none
Review URL: http://codereview.chromium.org/6573005
TBR=simonmorris@chromium.org
Review URL: http://codereview.chromium.org/6610018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/capturer_gdi.h')
-rw-r--r-- | remoting/host/capturer_gdi.h | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/remoting/host/capturer_gdi.h b/remoting/host/capturer_gdi.h index 634520e..72aa261 100644 --- a/remoting/host/capturer_gdi.h +++ b/remoting/host/capturer_gdi.h @@ -26,31 +26,6 @@ class CapturerGdi : public Capturer { virtual void ScreenConfigurationChanged(); private: - struct VideoFrameBuffer { - VideoFrameBuffer(void* data, const gfx::Size& size, int bytes_per_pixel, - int bytes_per_row) - : data(data), size(size), bytes_per_pixel(bytes_per_pixel), - bytes_per_row(bytes_per_row) { - } - VideoFrameBuffer() { - data = 0; - size = gfx::Size(0, 0); - bytes_per_pixel = 0; - bytes_per_row = 0; - } - void* data; - gfx::Size size; - int bytes_per_pixel; - int bytes_per_row; - }; - - // Make sure that the current buffer has the same size as the screen. - void UpdateBufferCapture(const gfx::Size& size); - - // Allocate memory for a buffer of a given size, freeing any memory previously - // allocated for that buffer. - void ReallocateBuffer(int buffer_index, const gfx::Size& size); - virtual void CalculateInvalidRects(); virtual void CaptureRects(const InvalidRects& rects, CaptureCompletedCallback* callback); @@ -59,24 +34,13 @@ class CapturerGdi : public Capturer { // Generates an image in the current buffer. void CaptureImage(); - // Gets the current screen size and calls ScreenConfigurationChanged - // if the screen size has changed. - void MaybeChangeScreenConfiguration(); - - // Gets the screen size. - gfx::Size GetScreenSize(); - // Gdi specific information about screen. HDC desktop_dc_; HDC memory_dc_; HBITMAP target_bitmap_[kNumBuffers]; - // The screen size attached to the device contexts through which the screen - // is captured. - gfx::Size dc_size_; - // We have two buffers for the screen images as required by Capturer. - VideoFrameBuffer buffers_[kNumBuffers]; + void* buffers_[kNumBuffers]; // Class to calculate the difference between two screen bitmaps. scoped_ptr<Differ> differ_; |