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

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

Issue 4971003: Inject MessageLoop into Capturer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
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 class Differ; 15 class Differ;
16 16
17 // CapturerGdi captures 32bit RGB using GDI. 17 // CapturerGdi captures 32bit RGB using GDI.
18 // 18 //
19 // CapturerGdi is doubled buffered as required by Capturer. See 19 // CapturerGdi is doubled buffered as required by Capturer. See
20 // remoting/host/capturer.h. 20 // remoting/host/capturer.h.
21 class CapturerGdi : public Capturer { 21 class CapturerGdi : public Capturer {
22 public: 22 public:
23 CapturerGdi(); 23 CapturerGdi(MessageLoop* message_loop);
awong 2010/11/16 00:42:12 explicit
24 virtual ~CapturerGdi(); 24 virtual ~CapturerGdi();
25 25
26 virtual void ScreenConfigurationChanged(); 26 virtual void ScreenConfigurationChanged();
27 27
28 private: 28 private:
29 virtual void CalculateInvalidRects(); 29 virtual void CalculateInvalidRects();
30 virtual void CaptureRects(const InvalidRects& rects, 30 virtual void CaptureRects(const InvalidRects& rects,
31 CaptureCompletedCallback* callback); 31 CaptureCompletedCallback* callback);
32 32
33 void ReleaseBuffers(); 33 void ReleaseBuffers();
(...skipping 13 matching lines...) Expand all
47 47
48 // True if we should force a fullscreen capture. 48 // True if we should force a fullscreen capture.
49 bool capture_fullscreen_; 49 bool capture_fullscreen_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(CapturerGdi); 51 DISALLOW_COPY_AND_ASSIGN(CapturerGdi);
52 }; 52 };
53 53
54 } // namespace remoting 54 } // namespace remoting
55 55
56 #endif // REMOTING_HOST_CAPTURER_GDI_H_ 56 #endif // REMOTING_HOST_CAPTURER_GDI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698