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

Unified Diff: media/video/capture/screen/screen_capturer_helper.h

Issue 13983010: Use webrtc::DesktopCapturer for screen capturer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: q Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: media/video/capture/screen/screen_capturer_helper.h
diff --git a/media/video/capture/screen/screen_capturer_helper.h b/media/video/capture/screen/screen_capturer_helper.h
index 7b5e27ee9b32b06d5da4a0cd5b90a2c0e87b74d1..045d368694781eab6d0b69182d01051c40d593f1 100644
--- a/media/video/capture/screen/screen_capturer_helper.h
+++ b/media/video/capture/screen/screen_capturer_helper.h
@@ -9,6 +9,8 @@
#include "base/synchronization/lock.h"
#include "media/base/media_export.h"
#include "third_party/skia/include/core/SkRegion.h"
+#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
+#include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
namespace media {
@@ -25,21 +27,21 @@ class MEDIA_EXPORT ScreenCapturerHelper {
void ClearInvalidRegion();
// Invalidate the specified region.
- void InvalidateRegion(const SkRegion& invalid_region);
+ void InvalidateRegion(const webrtc::DesktopRegion& invalid_region);
// Invalidate the entire screen, of a given size.
- void InvalidateScreen(const SkISize& size);
+ void InvalidateScreen(const webrtc::DesktopSize& size);
// Invalidate the entire screen, using the size of the most recently
// captured screen.
void InvalidateFullScreen();
// Swap the given region with the stored invalid region.
- void SwapInvalidRegion(SkRegion* invalid_region);
+ void SwapInvalidRegion(webrtc::DesktopRegion* invalid_region);
// Access the size of the most recently captured screen.
- const SkISize& size_most_recent() const;
- void set_size_most_recent(const SkISize& size);
+ const webrtc::DesktopSize& size_most_recent() const;
+ void set_size_most_recent(const webrtc::DesktopSize& size);
// Lossy compression can result in color values leaking between pixels in one
// block. If part of a block changes, then unchanged parts of that block can
@@ -69,7 +71,7 @@ class MEDIA_EXPORT ScreenCapturerHelper {
base::Lock invalid_region_lock_;
// The size of the most recently captured screen.
- SkISize size_most_recent_;
+ webrtc::DesktopSize size_most_recent_;
// The log (base 2) of the size of the grid to which the invalid region is
// expanded.

Powered by Google App Engine
This is Rietveld 408576698