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

Side by Side Diff: remoting/host/capturer_gdi.h

Issue 2711001: Fix chromoting build issues on Windows (Closed)
Patch Set: fixed gyp Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « remoting/chromoting.gyp ('k') | remoting/host/capturer_gdi.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_CAPTURER_GDI_H_ 5 #ifndef REMOTING_HOST_CAPTURER_GDI_H_
6 #define REMOTING_HOST_CAPTURER_GDI_H_ 6 #define REMOTING_HOST_CAPTURER_GDI_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 typedef HBITMAP BitmapRef; 9 typedef HBITMAP BitmapRef;
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "remoting/host/capturer.h" 11 #include "remoting/host/capturer.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 // CapturerGdi captures 24bit RGB using GDI. 15 // CapturerGdi captures 24bit RGB using GDI.
16 // 16 //
17 // CapturerGdi is doubled buffered as required by Capturer. See 17 // CapturerGdi is doubled buffered as required by Capturer. See
18 // remoting/host/capturer.h. 18 // remoting/host/capturer.h.
19 class CapturerGdi : public Capturer { 19 class CapturerGdi : public Capturer {
20 public: 20 public:
21 CapturerGdi(); 21 CapturerGdi();
22 virtual ~CapturerGdi(); 22 virtual ~CapturerGdi();
23 23
24 virtual void CaptureFullScreen(Task* done_task); 24 virtual void CaptureFullScreen(Task* done_task);
25 virtual void CaptureDirtyRects(Task* done_task); 25 virtual void CaptureDirtyRects(Task* done_task);
26 virtual void CaptureRect(const gfx::Rect& rect, Task* done_task); 26 virtual void CaptureRect(const gfx::Rect& rect, Task* done_task);
27 virtual void GetData(const uint8* planes[]) const; 27 virtual void GetData(const uint8* planes[]) const;
28 virtual void GetDataStride(int strides[]) const; 28 virtual void GetDataStride(int strides[]) const;
29 virtual void GetWidth() const; 29 virtual int GetWidth() const;
30 virtual void GetHeight() const; 30 virtual int GetHeight() const;
31 31
32 private: 32 private:
33 // Initialize GDI structures. 33 // Initialize GDI structures.
34 void InitializeBuffers(); 34 void InitializeBuffers();
35 // Generates an image in the current buffer. 35 // Generates an image in the current buffer.
36 void CaptureImage(); 36 void CaptureImage();
37 37
38 // Gdi specific information about screen. 38 // Gdi specific information about screen.
39 HDC desktop_dc_; 39 HDC desktop_dc_;
40 HDC memory_dc_; 40 HDC memory_dc_;
41 HBITMAP target_bitmap_[kNumBuffers]; 41 HBITMAP target_bitmap_[kNumBuffers];
42 42
43 // We have two buffers for the screen images as required by Capturer. 43 // We have two buffers for the screen images as required by Capturer.
44 void* buffers_[kNumBuffers]; 44 void* buffers_[kNumBuffers];
45 bool initialized_; // Set to 'true' if buffers are initialized. 45 bool initialized_; // Set to 'true' if buffers are initialized.
46 46
47 DISALLOW_COPY_AND_ASSIGN(CapturerGdi); 47 DISALLOW_COPY_AND_ASSIGN(CapturerGdi);
48 }; 48 };
49 49
50 } // namespace remoting 50 } // namespace remoting
51 51
52 #endif // REMOTING_HOST_CAPTURER_GDI_H_ 52 #endif // REMOTING_HOST_CAPTURER_GDI_H_
OLDNEW
« no previous file with comments | « remoting/chromoting.gyp ('k') | remoting/host/capturer_gdi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698