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

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

Issue 8937019: Use XDamage in Virtual Me2Me. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve comment. Created 9 years 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
« no previous file with comments | « no previous file | remoting/host/capturer_linux.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef REMOTING_HOST_CAPTURER_H_
6 #define REMOTING_HOST_CAPTURER_H_ 6 #define REMOTING_HOST_CAPTURER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "remoting/base/capture_data.h" 10 #include "remoting/base/capture_data.h"
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 // CaptureCompletedCallback is called when the capturer has completed. 40 // CaptureCompletedCallback is called when the capturer has completed.
41 typedef base::Callback<void(scoped_refptr<CaptureData>)> 41 typedef base::Callback<void(scoped_refptr<CaptureData>)>
42 CaptureCompletedCallback; 42 CaptureCompletedCallback;
43 43
44 virtual ~Capturer() {}; 44 virtual ~Capturer() {};
45 45
46 // Create platform-specific capturer. 46 // Create platform-specific capturer.
47 static Capturer* Create(); 47 static Capturer* Create();
48 48
49 #if defined(OS_LINUX)
50 // Set whether the Capturer should try to use X DAMAGE support if it is
51 // available. This needs to be called before the Capturer is created.
52 // This is used by the Virtual Me2Me host, since the XDamage extension is
53 // known to work reliably in this case.
54
55 // TODO(lambroslambrou): This currently sets a global flag, referenced during
56 // Capturer::Create(). This is a temporary solution, until the
57 // DesktopEnvironment class is refactored to allow applications to control
58 // the creation of various stubs (including the Capturer) - see
59 // http://crbug.com/104544
60 static void EnableXDamage(bool enable);
61 #endif // defined(OS_LINUX)
62
49 // Called when the screen configuration is changed. 63 // Called when the screen configuration is changed.
50 virtual void ScreenConfigurationChanged() = 0; 64 virtual void ScreenConfigurationChanged() = 0;
51 65
52 // Return the pixel format of the screen. 66 // Return the pixel format of the screen.
53 virtual media::VideoFrame::Format pixel_format() const = 0; 67 virtual media::VideoFrame::Format pixel_format() const = 0;
54 68
55 // Clear out the invalid region. 69 // Clear out the invalid region.
56 virtual void ClearInvalidRegion() = 0; 70 virtual void ClearInvalidRegion() = 0;
57 71
58 // Invalidate the specified region. 72 // Invalidate the specified region.
(...skipping 18 matching lines...) Expand all
77 virtual void CaptureInvalidRegion( 91 virtual void CaptureInvalidRegion(
78 const CaptureCompletedCallback& callback) = 0; 92 const CaptureCompletedCallback& callback) = 0;
79 93
80 // Get the size of the most recently captured screen. 94 // Get the size of the most recently captured screen.
81 virtual const SkISize& size_most_recent() const = 0; 95 virtual const SkISize& size_most_recent() const = 0;
82 }; 96 };
83 97
84 } // namespace remoting 98 } // namespace remoting
85 99
86 #endif // REMOTING_HOST_CAPTURER_H_ 100 #endif // REMOTING_HOST_CAPTURER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/capturer_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698